This commit is contained in:
Flummi
2018-02-28 04:34:52 +01:00
parent 2940b05518
commit 59be967f29
23 changed files with 96 additions and 26 deletions

View File

@@ -15,8 +15,7 @@ let _query_add = `
export default bot => {
bot._trigger.set("mcmaniac_add", new bot.trigger({
call: /Mc.*iaC/,
active: true,
clients: ["irc", "tg"],
set: "nxy",
f: e => {
const match = e.message.match(/(Mc\S+iaC?)/)[0];
sql.any(_query_add, [match])
@@ -27,8 +26,7 @@ export default bot => {
bot._trigger.set("mcmaniac_get", new bot.trigger({
call: /^(\.|\/)mcmaniac/i,
active: true,
clients: ["irc", "tg"],
set: "nxy",
f: e => {
const args = e.message.trim().substring(10);
let order = "id asc"