From f61399020379b2065ef3b02f3583aedd01596e70 Mon Sep 17 00:00:00 2001 From: Flummi Date: Thu, 23 Nov 2017 07:01:16 +0100 Subject: [PATCH] ... --- src/inc/trigger/coins.js | 2 +- src/inc/trigger/drugs.js | 4 +-- src/inc/trigger/kernel.js | 2 +- src/inc/trigger/useless_nxy.js | 28 ++++++++-------- src/inc/trigger/useless_uwe.js | 60 ++++++++++++++++++++-------------- 5 files changed, 54 insertions(+), 42 deletions(-) diff --git a/src/inc/trigger/coins.js b/src/inc/trigger/coins.js index c905c47..21a359a 100644 --- a/src/inc/trigger/coins.js +++ b/src/inc/trigger/coins.js @@ -16,7 +16,7 @@ const markets = { module.exports = bot => { bot._trigger.set("coins", { - call: /^(.|\/)(btc|eth|xmr)/i, + call: /^(\.|\/)(btc|eth|xmr)/i, level: 0, active: true, clients: ["irc", "tg"], diff --git a/src/inc/trigger/drugs.js b/src/inc/trigger/drugs.js index dd7d3e9..0221e86 100644 --- a/src/inc/trigger/drugs.js +++ b/src/inc/trigger/drugs.js @@ -13,7 +13,7 @@ Object.keys(data).forEach(cur => { module.exports = bot => { bot._trigger.set("dope", { - call: /^(.|\/)dope/i, + call: /^(\.|\/)dope/i, level: 0, active: true, clients: ["irc", "tg"], @@ -35,7 +35,7 @@ module.exports = bot => { }); bot._trigger.set("meth", { - call: /^(.|\/)meth/i, + call: /^(\.|\/)meth/i, level: 0, active: true, clients: ["irc", "tg"], diff --git a/src/inc/trigger/kernel.js b/src/inc/trigger/kernel.js index 7bea066..a4d492e 100644 --- a/src/inc/trigger/kernel.js +++ b/src/inc/trigger/kernel.js @@ -4,7 +4,7 @@ const feed = "https://www.kernel.org/releases.json"; module.exports = bot => { bot._trigger.set("kernel", { - call: /^(.|\/)kernel/i, + call: /^(\.|\/)kernel/i, level: 0, active: true, clients: ["irc", "tg"], diff --git a/src/inc/trigger/useless_nxy.js b/src/inc/trigger/useless_nxy.js index a275b8c..81ebaf4 100644 --- a/src/inc/trigger/useless_nxy.js +++ b/src/inc/trigger/useless_nxy.js @@ -17,7 +17,7 @@ Object.keys(data).forEach(cur => { module.exports = bot => { bot._trigger.set("kiss", { - call: /^(.|\/)kiss/i, + call: /^(\.|\/)kiss/i, level: 0, active: true, clients: ["irc", "tg"], @@ -30,7 +30,7 @@ module.exports = bot => { }); bot._trigger.set("hug", { - call: /^(.|\/)hug/i, + call: /^(\.|\/)hug/i, level: 0, active: true, clients: ["irc", "tg"], @@ -43,7 +43,7 @@ module.exports = bot => { }); bot._trigger.set("kill", { - call: /^(.|\/)kill/i, + call: /^(\.|\/)kill/i, level: 0, active: true, clients: ["irc", "tg"], @@ -68,7 +68,7 @@ module.exports = bot => { }); bot._trigger.set("yiff", { - call: /^(.|\/)yiff/i, + call: /^(\.|\/)yiff/i, level: 0, active: true, clients: ["irc", "tg"], @@ -85,7 +85,7 @@ module.exports = bot => { }); bot._trigger.set("bier", { - call: /^(.|\/)bier/i, + call: /^(\.|\/)bier/i, level: 0, active: true, clients: ["irc", "tg"], @@ -98,7 +98,7 @@ module.exports = bot => { }); bot._trigger.set("fucken", { - call: /^(.|\/)fucken/i, + call: /^(\.|\/)fucken/i, level: 0, active: true, clients: ["irc", "tg"], @@ -111,7 +111,7 @@ module.exports = bot => { }); bot._trigger.set("hack", { - call: /^(.|\/)hack/i, + call: /^(\.|\/)hack/i, level: 0, active: true, clients: ["irc", "tg"], @@ -124,7 +124,7 @@ module.exports = bot => { }); bot._trigger.set("spit", { - call: /^(.|\/)spit/i, + call: /^(\.|\/)spit/i, level: 0, active: true, clients: ["irc", "tg"], @@ -137,7 +137,7 @@ module.exports = bot => { }); bot._trigger.set("assume", { - call: /^(.|\/)assume/i, + call: /^(\.|\/)assume/i, level: 0, active: true, clients: ["irc", "tg"], @@ -150,7 +150,7 @@ module.exports = bot => { }); bot._trigger.set("jn", { - call: /^(.|\/)jn/i, + call: /^(\.|\/)jn/i, level: 0, active: true, clients: ["irc", "tg"], @@ -160,7 +160,7 @@ module.exports = bot => { }); bot._trigger.set("choose", { - call: /^(.|\/)choose .*/i, + call: /^(\.|\/)choose .*/i, level: 0, active: true, clients: ["irc", "tg"], @@ -204,7 +204,7 @@ module.exports = bot => { }); bot._trigger.set("meme", { - call: /^(.|\/)meme .*/i, + call: /^(\.|\/)meme .*/i, level: 0, active: true, clients: ["irc", "tg"], @@ -217,7 +217,7 @@ module.exports = bot => { }); bot._trigger.set("slap", { - call: /^(.|\/)slap/i, + call: /^(\.|\/)slap/i, level: 0, active: true, clients: ["irc", "tg"], @@ -232,7 +232,7 @@ module.exports = bot => { }); bot._trigger.set("fw", { - call: /^(.|\/)fw .*/i, + call: /^(\.|\/)fw .*/i, level: 0, active: true, clients: ["irc", "tg"], diff --git a/src/inc/trigger/useless_uwe.js b/src/inc/trigger/useless_uwe.js index e9b6c0c..577d5f6 100644 --- a/src/inc/trigger/useless_uwe.js +++ b/src/inc/trigger/useless_uwe.js @@ -20,7 +20,7 @@ Object.keys(data).forEach(cur => { module.exports = bot => { bot._trigger.set("abschieben", { - call: /^(.|\/)abschieben/i, + call: /^(\.|\/)abschieben/i, level: 0, active: true, clients: ["irc", "tg"], @@ -33,7 +33,7 @@ module.exports = bot => { }); bot._trigger.set("butterkaese", { - call: /^(.|\/)butterkäse/i, + call: /^(\.|\/)butterkäse/i, level: 0, active: true, clients: ["irc", "tg"], @@ -46,7 +46,7 @@ module.exports = bot => { }); bot._trigger.set("notschlachten", { - call: /^(.|\/)notschlachten/i, + call: /^(\.|\/)notschlachten/i, level: 0, active: true, clients: ["irc", "tg"], @@ -59,7 +59,7 @@ module.exports = bot => { }); bot._trigger.set("lachs", { - call: /^(.|\/)lachs/i, + call: /^(\.|\/)lachs/i, level: 0, active: true, clients: ["irc", "tg"], @@ -69,7 +69,7 @@ module.exports = bot => { }); bot._trigger.set("kaffee", { - call: /^(.|\/)kaffee/i, + call: /^(\.|\/)kaffee/i, level: 0, active: true, clients: ["irc", "tg"], @@ -84,7 +84,7 @@ module.exports = bot => { }); bot._trigger.set("tee", { - call: /^(.|\/)tee/i, + call: /^(\.|\/)tee/i, level: 0, active: true, clients: ["irc", "tg"], @@ -98,8 +98,8 @@ module.exports = bot => { } }); - bot._trigger.set("quotes", { - call: /^(.|\/)(boll|firecooler|kinski|stoll)$/i, + bot._trigger.set("uwe_quotes", { + call: /^(\.|\/)(boll|firecooler|kinski|stoll)$/i, level: 0, active: true, clients: ["irc", "tg"], @@ -110,7 +110,7 @@ module.exports = bot => { }); bot._trigger.set("wusel", { - call: /^(.|\/)wusel/i, + call: /^(\.|\/)wusel/i, level: 0, active: true, clients: ["irc", "tg"], @@ -123,7 +123,7 @@ module.exports = bot => { }); bot._trigger.set("mett", { - call: /^(.|\/)mett/i, + call: /^(\.|\/)mett/i, level: 0, active: true, clients: ["irc", "tg"], @@ -136,7 +136,7 @@ module.exports = bot => { }); bot._trigger.set("rotenburg", { - call: /^(.|\/)rotenburg/i, + call: /^(\.|\/)rotenburg/i, level: 0, active: true, clients: ["irc", "tg"], @@ -149,7 +149,7 @@ module.exports = bot => { }); bot._trigger.set("pee", { - call: /^(.|\/)pee/i, + call: /^(\.|\/)pee/i, level: 0, active: true, clients: ["irc", "tg"], @@ -182,7 +182,7 @@ module.exports = bot => { }); bot._trigger.set("haram", { - call: /^(.|\/)haram/i, + call: /^(\.|\/)haram/i, level: 0, active: true, clients: ["irc", "tg"], @@ -195,7 +195,7 @@ module.exports = bot => { }); bot._trigger.set("sacklutscher", { - call: /^(.|\/)lutschsack/i, + call: /^(\.|\/)lutschsack/i, level: 0, active: true, clients: ["irc", "tg"], @@ -238,7 +238,7 @@ module.exports = bot => { }); bot._trigger.set("wasser", { - call: /^(.|\/)wasser/i, + call: /^(\.|\/)wasser/i, level: 0, active: true, clients: ["irc", "tg"], @@ -251,7 +251,7 @@ module.exports = bot => { }); bot._trigger.set("normie", { - call: /^(.|\/)normie/i, + call: /^(\.|\/)normie/i, level: 0, active: true, clients: ["irc", "tg"], @@ -264,7 +264,7 @@ module.exports = bot => { }); bot._trigger.set("hyper", { - call: /^(.|\/)hyper$/i, + call: /^(\.|\/)hyper$/i, level: 0, active: true, clients: ["irc", "tg"], @@ -274,7 +274,7 @@ module.exports = bot => { }); bot._trigger.set("bark", { - call: /^(.|\/)bark$/i, + call: /^(\.|\/)bark$/i, level: 0, active: true, clients: ["irc", "tg"], @@ -284,7 +284,7 @@ module.exports = bot => { }); bot._trigger.set("meditieren", { - call: /^(.|\/)meditieren/i, + call: /^(\.|\/)meditieren/i, level: 0, active: true, clients: ["irc", "tg"], @@ -297,7 +297,7 @@ module.exports = bot => { }); bot._trigger.set("duden", { - call: /^(.|\/)duden/i, + call: /^(\.|\/)duden/i, level: 0, active: true, clients: ["irc", "tg"], @@ -310,7 +310,7 @@ module.exports = bot => { }); bot._trigger.set("kscht", { - call: /^(.|\/)kscht/i, + call: /^(\.|\/)kscht/i, level: 0, active: true, clients: ["irc", "tg"], @@ -323,7 +323,7 @@ module.exports = bot => { }); bot._trigger.set("bullenpisse", { - call: /^(.|\/)bullenpisse/i, + call: /^(\.|\/)bullenpisse/i, level: 0, active: true, clients: ["irc", "tg"], @@ -336,7 +336,7 @@ module.exports = bot => { }); bot._trigger.set("lungenkrebs", { - call: /^(.|\/)lungenkrebs/i, + call: /^(\.|\/)lungenkrebs/i, level: 0, active: true, clients: ["irc", "tg"], @@ -349,7 +349,7 @@ module.exports = bot => { }); bot._trigger.set("irpg", { - call: /^(.|\/)irpg/i, + call: /^(\.|\/)irpg/i, level: 0, active: true, clients: ["irc", "tg"], @@ -369,4 +369,16 @@ module.exports = bot => { } }); + bot._trigger.set("blah", { + call: /^[A-ZÄÖÜẞ](?: [A-ZÄÖÜẞ]){1,5}$/, + level: 0, + active: true, + clients: ["irc"], + f: e => { + let args = e.message.trim(); + if (args.toUpperCase() === args) + args.substring(2).split(" ").forEach(e.reply); + } + }); + }; \ No newline at end of file