summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author8cy <[email protected]>2020-07-16 21:37:42 -0700
committer8cy <[email protected]>2020-07-16 21:37:42 -0700
commit4eaa87739d3660bf47cd4600baca140b6a36af87 (patch)
treef7832104d73a26ca05335eea522607764d41ae4e /src
parentadd more perms (diff)
downloaddep-core-4eaa87739d3660bf47cd4600baca140b6a36af87.tar.xz
dep-core-4eaa87739d3660bf47cd4600baca140b6a36af87.zip
perms, aliases, ugycat
Diffstat (limited to 'src')
-rw-r--r--src/bot.ts12
-rw-r--r--src/commands/fun/say.ts1
-rw-r--r--src/commands/fun/uglycat.ts1
-rw-r--r--src/commands/server/poll.ts1
-rw-r--r--src/config.json2
5 files changed, 16 insertions, 1 deletions
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:[email protected]:47107/heroku_4qrjvmb9",
"validUsers": [