aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-07-20 20:41:47 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-07-20 20:41:47 -0400
commit9f3b0e9a68ff2529ddc974c29614cc575b5a26c5 (patch)
tree590af544cf5be0109fd37e266d4fe99bc6aeed43 /bot.js
parentbf01a9299fe075d5ba6fc0a8e827256889302965 (diff)
downloadDLAP-9f3b0e9a68ff2529ddc974c29614cc575b5a26c5.tar.gz
DLAP-9f3b0e9a68ff2529ddc974c29614cc575b5a26c5.tar.bz2
DLAP-9f3b0e9a68ff2529ddc974c29614cc575b5a26c5.zip
Fixes on coding style
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/bot.js b/bot.js
index 0f7a87f..986ba19 100644
--- a/bot.js
+++ b/bot.js
@@ -56,7 +56,8 @@ client.on('ready', () => {
console.log(`Prefix: ${config.prefix}`);
console.log(`Owner ID: ${config.botOwner}`);
console.log(`Voice Channel: ${config.voiceChannel}`);
- console.log(`Status Channel: ${config.statusChannel}\n`)
+ console.log(`Status Channel: ${config.statusChannel}`);
+ console.log('\n');
client.user.setStatus('invisible');
console.log('Connected to the voice channel.');
@@ -105,7 +106,7 @@ client.on('message', async msg => {
}
if (command == 'skip') {
- msg.reply('Skipping `' + audio + '`...')
+ msg.reply('Skipping `' + audio + '`...');
dispatcher.pause();
dispatcher = null
playAudio();
@@ -114,13 +115,13 @@ client.on('message', async msg => {
if (command == 'leave') {
const channel = client.channels.cache.get(config.voiceChannel);
if (!channel) return console.error('The channel does not exist!');
- msg.reply('Leaving voice channel.')
+ msg.reply('Leaving voice channel.');
console.log('Leaving voice channel.');
channel.leave();
}
if (command == 'stop') {
- await msg.reply('Powering off...')
+ await msg.reply('Powering off...');
console.log('Powering off...');
client.destroy();
process.exit(0);