diff --git a/config.js b/config.js index c8ef1a2..23b3220 100644 --- a/config.js +++ b/config.js @@ -12,6 +12,7 @@ module.exports = { commands: ['back', 'clear', 'filter', 'loop', 'pause', 'resume', 'seek', 'shuffle', 'skip', 'stop', 'volume'] }, maxVol: 100, + loopMessage: false, discordPlayer: {} } }; \ No newline at end of file diff --git a/src/events.js b/src/events.js index 3210419..9f4a9b8 100644 --- a/src/events.js +++ b/src/events.js @@ -7,6 +7,7 @@ player.on('connectionError', (queue, error) => { }); player.on('trackStart', (queue, track) => { + if (!client.config.opt.loopMessage && queue.repeatMode !== 0) return; queue.metadata.send(`Started playing ${track.title} in **${queue.connection.channel.name}** 🎧`); });