From 7a26c1a3727b7072835680687ebb38473e1a09cc Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Tue, 5 May 2020 15:17:58 -0700 Subject: 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 --- src/commands/zerotwo/darling.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/commands/zerotwo/darling.ts') 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()) } }) -- cgit v1.2.3