diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-07-21 15:29:57 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-07-21 15:29:57 -0400 |
| commit | 804f26da63d7c400732a77163cd80e5c8c5bbcef (patch) | |
| tree | 5c09b7ca94b2f6021edd629b4bc9c0e89c6184db /bot.js | |
| parent | e52b6d6067a51dd89084aecd7962a50b8f3abe0c (diff) | |
| download | DLAP-804f26da63d7c400732a77163cd80e5c8c5bbcef.tar.gz DLAP-804f26da63d7c400732a77163cd80e5c8c5bbcef.tar.bz2 DLAP-804f26da63d7c400732a77163cd80e5c8c5bbcef.zip | |
Included video tutorial and log when the music is done
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -57,6 +57,7 @@ function playAudio() { dispatcher.on('error', console.error); dispatcher.on('finish', () => { + console.log('Music has finished playing.'); playAudio(); }); @@ -72,7 +73,7 @@ client.on('ready', () => { console.log(`Owner ID: ${config.botOwner}`); console.log(`Voice Channel: ${config.voiceChannel}`); console.log(`Status Channel: ${config.statusChannel}\n`); - + client.user.setStatus('online'); console.log('Connected to the voice channel.'); playAudio(); |
