summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
author8cy <[email protected]>2020-06-03 10:20:47 -0700
committer8cy <[email protected]>2020-06-03 10:20:47 -0700
commit60d6e9a717869c29508b7ffdcd3de97402af91b5 (patch)
treecc5251cf285d6508932eef4c59e94ec665aeb84c /src/commands
parenttake down api (diff)
downloaddep-core-60d6e9a717869c29508b7ffdcd3de97402af91b5.tar.xz
dep-core-60d6e9a717869c29508b7ffdcd3de97402af91b5.zip
owner can remove darling, change website cmd url
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/bot/website.ts2
-rw-r--r--src/commands/zerotwo/darling.ts6
2 files changed, 4 insertions, 4 deletions
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))