summaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/commands/bot/website.ts2
-rw-r--r--src/commands/zerotwo/darling.ts6
-rw-r--r--src/config.json2
3 files changed, 5 insertions, 5 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))
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