mirror of
https://gitlab.com/qwerinope/qweribot.git
synced 2026-02-04 09:26:58 +01:00
Compare commits
3 Commits
6a71806881
...
64dd8e6dd5
| Author | SHA1 | Date | |
|---|---|---|---|
|
64dd8e6dd5
|
|||
|
2bc1d2b953
|
|||
|
07c619f54d
|
11
README.md
11
README.md
@@ -130,6 +130,17 @@ Welcome message in the context of this project means 2 things:
|
||||
|
||||
The personalized message can be set by using the channel point redemption. The message cannot be longer than 200 characters.
|
||||
|
||||
### TTS
|
||||
|
||||
There are 2 types of TTS supported:
|
||||
|
||||
- Microsoft Sam
|
||||
- DecTalk
|
||||
|
||||
Microsoft s(c)am is currently only used by `a_n_i_v` and `a_n_e_e_v`. Whenever the aniv clankers say something MS Sam will pronounce their message.
|
||||
|
||||
Dectalk is available for 25k channel points. If your message is longer than 2 minutes your message will get scammed. I'm not sorry, 100% deserved.
|
||||
|
||||
### Chatterbot/streamerbot
|
||||
|
||||
This depends on if the `CHATTER_IS_STREAMER` environment variable is set.
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import { getUserRecord } from "db/dbUser";
|
||||
import items, { changeItemCount } from "items";
|
||||
import { Command, sendMessage } from "lib/commandUtils";
|
||||
import { ANIVNAMES } from "lib/handleAnivMessage";
|
||||
import logger from "lib/logger";
|
||||
import parseCommandArgs from "lib/parseCommandArgs";
|
||||
import { timeout } from "lib/timeout";
|
||||
import User from "user";
|
||||
|
||||
export default new Command({
|
||||
@@ -10,6 +12,11 @@ export default new Command({
|
||||
aliases: ["give"],
|
||||
usertype: "chatter",
|
||||
execution: async (msg, user) => {
|
||||
if (Array.from<string>(ANIVNAMES).includes(msg.chatterName)) {
|
||||
await sendMessage("CLANKERS CAN'T GIVE ITEMS UltraMad UltraMad UltraMad");
|
||||
await timeout(user, "STUPID CLANKER", 30);
|
||||
return;
|
||||
}
|
||||
const args = parseCommandArgs(msg.messageText);
|
||||
if (!args[0]) {
|
||||
await sendMessage("Please specify a user", msg.messageId);
|
||||
|
||||
@@ -6,7 +6,7 @@ import { timeout } from "lib/timeout";
|
||||
import type User from "user";
|
||||
import { playMSTTS } from "web/alerts/serverFunctions";
|
||||
|
||||
const ANIVNAMES: anivBots[] = ["a_n_e_e_v", "a_n_i_v"];
|
||||
export const ANIVNAMES: anivBots[] = ["a_n_e_e_v", "a_n_i_v"];
|
||||
|
||||
type anivMessageStore = {
|
||||
[key: string]: string;
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { sendMessage } from "lib/commandUtils";
|
||||
import PointRedeem from "pointRedeems";
|
||||
import { sendMessage } from "lib/commandUtils";
|
||||
import { playDecTalk } from "web/alerts/serverFunctions";
|
||||
|
||||
export default new PointRedeem({
|
||||
name: "dectalk",
|
||||
cost: 25000,
|
||||
title: "Dectalk TTS",
|
||||
color: "#FF0000",
|
||||
input: true,
|
||||
prompt: "I HECKIN LOVE DECTALK TTS!!!",
|
||||
async execution(msg) {
|
||||
|
||||
Reference in New Issue
Block a user