From a551d6b4aed20da54c0be4499dd89da8790b099c Mon Sep 17 00:00:00 2001
From: Loic Bersier <loic.bersier1@gmail.com>
Date: Tue, 18 Sep 2018 15:18:50 +0200
Subject: [PATCH] Added message when bot leave channel

---
 commands/fun/music.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/commands/fun/music.js b/commands/fun/music.js
index 378848c..49ce065 100644
--- a/commands/fun/music.js
+++ b/commands/fun/music.js
@@ -31,12 +31,14 @@ module.exports = class MusicCommand extends Command {
 //  If user say "stop" make the bot leave voice channel
             if (ytblink == 'stop') {
                 voiceChannel.leave()
+                message.say('I leaved the channel');
             } else
             voiceChannel.join().then(connection => {
                 const stream = ytdl(ytblink, { filter: 'audioonly' });
                 const dispatcher = connection.playStream(stream);
 //  End at then end of the audio stream
                 dispatcher.on('end', () => voiceChannel.leave());
+                message.say('Music ended, Leaved the channel');
             });
         }
     }
\ No newline at end of file