From 804f26da63d7c400732a77163cd80e5c8c5bbcef Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 21 Jul 2020 15:29:57 -0400 Subject: Included video tutorial and log when the music is done --- README.md | 2 ++ bot.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f142d5..2654ecb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # DLMP3 Bot (Discord Local MP3) A Discord bot that plays local mp3 audio tracks. Written in Discord.JS. +[Video Tutorial](https://www.youtube.com/watch?v=7X3FAhYW31I) + (Originally for Alee's birthday) If there's anything wrong, feel free to make a fork and put a pull request. diff --git a/bot.js b/bot.js index 8fd55e0..b3cdd6e 100644 --- a/bot.js +++ b/bot.js @@ -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(); -- cgit v1.2.3