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)