summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
author8cy <[email protected]>2020-05-05 15:17:58 -0700
committer8cy <[email protected]>2020-05-05 15:17:58 -0700
commit7a26c1a3727b7072835680687ebb38473e1a09cc (patch)
tree1faf5a6cb771737570c04fc813fd5f266c95fe7c /src/commands
parentadd genservers (diff)
downloaddep-core-7a26c1a3727b7072835680687ebb38473e1a09cc.tar.xz
dep-core-7a26c1a3727b7072835680687ebb38473e1a09cc.zip
add build scripts, remove dist
- remove some db errors, namely ones that are bs like no on doc type errors - move ws to spike - remove copy npm scripts i think - remove .env and package
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/zerotwo/darling.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands/zerotwo/darling.ts b/src/commands/zerotwo/darling.ts
index bc0dc25..5a409c8 100644
--- a/src/commands/zerotwo/darling.ts
+++ b/src/commands/zerotwo/darling.ts
@@ -48,6 +48,7 @@ module.exports = class DarlingZeroTwo extends Command {
if (error) {
console.log(error)
} else if (guild && darlingName == 'remove') {
+ // @ts-ignore linting error shows that channelID doesnt exist when it does
if (msg.author.id == guild.userID) {
await Darling.findOneAndDelete({ guildID: msg.guild.id })
msg.say('The current darling has been removed. ' + emoji.random())
@@ -57,6 +58,7 @@ module.exports = class DarlingZeroTwo extends Command {
} else if (!guild && darlingName == 'remove') {
msg.reply('There is no darling set in this server. ' + emoji.random())
} else if (guild && darlingName == 'set') {
+ // @ts-ignore linting error shows that channelID doesnt exist when it does
msg.reply(`I already have a darling! It\'s <@${guild.userID}>! ` + emoji.random())
} else if (!guild && darlingName == 'set') {
await darling.save()
@@ -73,6 +75,7 @@ module.exports = class DarlingZeroTwo extends Command {
} else if (!guild) {
msg.reply('I haven\'t found my darling yet! To set one, do `uwu!darling set`. ' + emoji.random())
} else if (guild) {
+ // @ts-ignore linting error shows that channelID doesnt exist when it does
msg.reply(`My darling is <@${guild.userID}>. ` + emoji.random())
}
})