aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-07-22 20:31:44 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-07-22 20:31:44 -0400
commitdcb067c69eb84852814092306936fcc14262b7d1 (patch)
treea2e91c7b7c76e156b66af686af70a886191a870f
parent265cd7f6cbec1088d1ec78a2b715860180ae23ea (diff)
downloadDLAP-dcb067c69eb84852814092306936fcc14262b7d1.tar.gz
DLAP-dcb067c69eb84852814092306936fcc14262b7d1.tar.bz2
DLAP-dcb067c69eb84852814092306936fcc14262b7d1.zip
That\'s all folks!
-rw-r--r--bot.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/bot.js b/bot.js
index eb7f9e0..8a9182c 100644
--- a/bot.js
+++ b/bot.js
@@ -97,7 +97,7 @@ bot.on('message', async msg => {
const helpEmbed = new Discord.MessageEmbed()
.setAuthor(`${bot.user.username} Help`)
.setDescription(`Currently playing \`${audio}\`.`)
- .addField(`Commands`, `${config.prefix}help\n${config.prefix}ping\n${config.prefix}git\n${config.prefix}playing\n${config.prefix}about\n`)
+ .addField(`Public Commands`, `${config.prefix}help\n${config.prefix}ping\n${config.prefix}git\n${config.prefix}playing\n${config.prefix}about\n`)
.setFooter('© Copyright 2020 Andrew Lee. Licensed with GPL-3.0.')
.setColor('#0066ff')
@@ -158,6 +158,12 @@ bot.on('message', async msg => {
if (command == 'stop') {
await msg.reply('Powering off...');
+ const statusEmbed = new Discord.MessageEmbed()
+ .setTitle('That\'s all folks!')
+ .setColor('#0066ff')
+ let statusChannel = bot.channels.cache.get(config.statusChannel);
+ if (!statusChannel) return console.error('The status channel does not exist! Skipping.');
+ statusChannel.send(statusEmbed);
console.log('Powering off...');
dispatcher.destroy();
bot.destroy();