jo hau rein die dscheise
This commit is contained in:
@ -2,11 +2,11 @@ import cleverbot from "./lib/cleverbot";
|
||||
|
||||
export default bot => {
|
||||
bot._trigger.set("chatbot", new bot.trigger({
|
||||
call: /^(?![!./[])(.*uwe.*)/i,
|
||||
call: /^(?![!./[])(.*uw(e|i).*)/i,
|
||||
set: "uwe",
|
||||
f: e => {
|
||||
const chat = e.message
|
||||
.replace(/uwe/gi, "")
|
||||
.replace(/uw(e|i)/gi, "")
|
||||
.split("?")
|
||||
.join("");
|
||||
cleverbot.ask(chat)
|
||||
|
@ -1,5 +1,7 @@
|
||||
import { admins, getLevel } from "../admin";
|
||||
import fetch from "../fetch";
|
||||
import { cookieJar } from "../fetch";
|
||||
import { wrapper, clients } from "../wrapper";
|
||||
|
||||
import vm from "vm";
|
||||
|
||||
@ -8,7 +10,12 @@ let context = vm.createContext({
|
||||
e: null,
|
||||
bot: null,
|
||||
admins: null,
|
||||
fetch: fetch
|
||||
fetch: fetch,
|
||||
cookieJar: cookieJar,
|
||||
console: console,
|
||||
wrapper: {
|
||||
wrapper, clients
|
||||
}
|
||||
});
|
||||
export default bot => {
|
||||
bot._trigger.set("sandbox_debug", new bot.trigger({
|
||||
@ -36,4 +43,4 @@ export default bot => {
|
||||
}
|
||||
}
|
||||
}));
|
||||
};
|
||||
};
|
||||
|
@ -25,7 +25,7 @@ insert into nxy_quotes
|
||||
|
||||
export default bot => {
|
||||
bot._trigger.set("qrnd", new bot.trigger({
|
||||
call: /^(\.|\/)qrnd$/i,
|
||||
call: /^(\.|\/)q(rnd)?$/i,
|
||||
set: "all",
|
||||
f: e => {
|
||||
fetch("https://nxy.totally.rip/api/quotes.php?c=nick,item")
|
||||
|
Reference in New Issue
Block a user