jo hau rein die dscheise

This commit is contained in:
Flummi
2019-08-14 01:30:58 +02:00
parent 771b3af362
commit 4aea18099f
6 changed files with 72 additions and 23 deletions

View File

@ -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)

View File

@ -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 => {
}
}
}));
};
};

View File

@ -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")