From 4eaa87739d3660bf47cd4600baca140b6a36af87 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Thu, 16 Jul 2020 21:37:42 -0700 Subject: perms, aliases, ugycat --- src/bot.ts | 12 ++++++++++++ src/commands/fun/say.ts | 1 + src/commands/fun/uglycat.ts | 1 + src/commands/server/poll.ts | 1 + src/config.json | 2 +- 5 files changed, 16 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/bot.ts b/src/bot.ts index 9ce71ad..7c7e5a6 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -194,6 +194,18 @@ client.on('message', async msg => { msg.react('731022085530583100') msg.react('732062891162992720') } + + if (msg.guild?.id == '663964105983393793') { + let variations = [ + "ugycat", + "ugy", + "ugly", + "uglycat", + "uglycatdrool", + "ugycatdrool" + ] + if (variations.includes(msg.content.toLowerCase())) msg.react('733301856054280253') + } }); // Register client diff --git a/src/commands/fun/say.ts b/src/commands/fun/say.ts index 985307a..7a610b4 100644 --- a/src/commands/fun/say.ts +++ b/src/commands/fun/say.ts @@ -38,6 +38,7 @@ module.exports = class SayFun extends Command { return msg.reply(`Insufficent permissions! ${emoji.random()}`).then(m => m.delete({ timeout: 3000 })) } } else { + msg.delete() //@ts-ignore return msg.reply(`Insufficent permissions! ${emoji.random()}`).then(m => m.delete({ timeout: 3000 })) } diff --git a/src/commands/fun/uglycat.ts b/src/commands/fun/uglycat.ts index 27a31fb..343bc2d 100644 --- a/src/commands/fun/uglycat.ts +++ b/src/commands/fun/uglycat.ts @@ -4,6 +4,7 @@ module.exports = class UglyCatFun extends Command { constructor(client: CommandoClient) { super(client, { name: 'uglycat', + aliases: ['ugycat'], group: 'fun', memberName: 'uglycat', description: 'Sends an ugly cat.', diff --git a/src/commands/server/poll.ts b/src/commands/server/poll.ts index 7f7d3b0..8eafcb9 100644 --- a/src/commands/server/poll.ts +++ b/src/commands/server/poll.ts @@ -45,6 +45,7 @@ module.exports = class PollServer extends Command { }) } } else { + msg.delete() //@ts-ignore return msg.reply(`Insufficent permissions! ${emoji.random()}`).then(m => m.delete({ timeout: 3000 })) } diff --git a/src/config.json b/src/config.json index 672e256..b9cbe1f 100644 --- a/src/config.json +++ b/src/config.json @@ -2,7 +2,7 @@ "secret":"Njk5NDczMjYzOTk4MjcxNDg5.XpU5oQ.btZuxVudhNllSQY6CxrXXtMJm9A", "secret-dev":"NzEyMDg4MzY5MjA2OTE5MjY5.XsMeEw.Yy0a8m2vZLDbPi7cZ8aqCalMR68", "yt-api-key":"AIzaSyCeG1lQAeInv4vjFv_eTL9IFAFNdQC9Nk8", - "version":"1.10.34", + "version":"1.10.35", "fortniteTrackerNetworkToken": "4cf21f95-5f1a-412a-b4a7-e5424adc314a", "mongodburi": "mongodb://sin:cSDZEygGZz232eJ5bS@ds047107.mlab.com:47107/heroku_4qrjvmb9", "validUsers": [ -- cgit v1.2.3