From 60d6e9a717869c29508b7ffdcd3de97402af91b5 Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Wed, 3 Jun 2020 10:20:47 -0700 Subject: owner can remove darling, change website cmd url --- src/commands/bot/website.ts | 2 +- src/commands/zerotwo/darling.ts | 6 +++--- src/config.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/commands/bot/website.ts b/src/commands/bot/website.ts index c0008d2..afc1ef3 100644 --- a/src/commands/bot/website.ts +++ b/src/commands/bot/website.ts @@ -21,7 +21,7 @@ module.exports = class WebsiteBot extends Command { } run(msg: CommandoMessage) { let emb = new MessageEmbed() - .setDescription(`Here is <@217348698294714370>'s [website](https://cyne.cf/)! ${emoji.random()}`) + .setDescription(`Here is <@217348698294714370>'s [website](https://kyzer.co/)! ${emoji.random()}`) msg.say(emb) } }; diff --git a/src/commands/zerotwo/darling.ts b/src/commands/zerotwo/darling.ts index 5a409c8..d833537 100644 --- a/src/commands/zerotwo/darling.ts +++ b/src/commands/zerotwo/darling.ts @@ -49,17 +49,17 @@ module.exports = class DarlingZeroTwo extends Command { 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) { + if (msg.author.id == guild.userID || msg.author.id == msg.guild.owner.id) { await Darling.findOneAndDelete({ guildID: msg.guild.id }) msg.say('The current darling has been removed. ' + emoji.random()) } else { - msg.reply('Only my darling can remove the current darling. ' + emoji.random()) + msg.reply('Only my darling or the guild owner can remove the current darling. ' + emoji.random()) } } 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()) + msg.reply(`I already have a darling! It\'s <@${guild.userID}>! To set a new darling, either the current darling or the guild owner has to do \`uwu!darling remove\`. ` + emoji.random()) } else if (!guild && darlingName == 'set') { await darling.save() .then(result => console.log(result)) diff --git a/src/config.json b/src/config.json index 35367dd..d9c16f9 100644 --- a/src/config.json +++ b/src/config.json @@ -2,6 +2,6 @@ "secret":"Njk5NDczMjYzOTk4MjcxNDg5.XpU5oQ.btZuxVudhNllSQY6CxrXXtMJm9A", "secret-dev":"NzEyMDg4MzY5MjA2OTE5MjY5.XsMeEw.Yy0a8m2vZLDbPi7cZ8aqCalMR68", "yt-api-key":"AIzaSyCeG1lQAeInv4vjFv_eTL9IFAFNdQC9Nk8", - "version":"1.10.20", + "version":"1.10.21", "fortniteTrackerNetworkToken": "4cf21f95-5f1a-412a-b4a7-e5424adc314a" } \ No newline at end of file -- cgit v1.2.3