Discord lol
This commit is contained in:
@ -3,7 +3,7 @@ import cleverbot from "./lib/cleverbot";
|
||||
export default bot => {
|
||||
bot._trigger.set("chatbot", new bot.trigger({
|
||||
call: /.*uwe.*/i,
|
||||
clients: ["tg"],
|
||||
clients: ["tg", "discord"],
|
||||
active: true,
|
||||
f: e => {
|
||||
const chat = e.message
|
||||
|
@ -1,6 +1,7 @@
|
||||
import { cfg } from "./cfg";
|
||||
import { irc as irclib } from "../clients/irc";
|
||||
import { tg as tglib } from "../clients/tg";
|
||||
import { discord as discordlib } from "../clients/discord";
|
||||
|
||||
import util from "util";
|
||||
import EventEmitter from "events";
|
||||
@ -25,6 +26,13 @@ const wrapper = function () {
|
||||
client: new tglib(cfg.client[srv].val)
|
||||
});
|
||||
break;
|
||||
case "discord":
|
||||
clients.push({
|
||||
name: "discord",
|
||||
type: "discord",
|
||||
client: new discordlib(cfg.client[srv].val)
|
||||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user