1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 03:33:17 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-07-18 20:32:20 +03:00
parent e3b3178a5f
commit 02e69b9398

View File

@ -29,7 +29,7 @@ client.on('message', async msg => {
} else { } else {
} }
msg.channel.send(`I've been up & running for ${finalUptime}.`); return msg.channel.send(`I've been up & running for ${finalUptime}.`);
} }
if (msg.content === `${PREFIX}help`) { if (msg.content === `${PREFIX}help`) {
const embed = new Discord.RichEmbed() const embed = new Discord.RichEmbed()
@ -185,7 +185,7 @@ Please provide a value to select one of the search results ranging from __1-10__
return undefined; return undefined;
} }
if (msg.content === `${PREFIX}`) return; if (msg.content === `${PREFIX}`) return;
var coms = ['-play', '-queue', '-np', '-volume', '-pause', '-resume', '-stop', '-skip'] var coms = ['-play', '-queue', '-np', '-volume', '-pause', '-resume', '-stop', '-skip', '-uptime', '-ping']
for (var i = 0; i < coms.length; i++) { for (var i = 0; i < coms.length; i++) {
if (msg.content.includes(coms[i])) { if (msg.content.includes(coms[i])) {
if (!msg.member.roles.find(x => x.name === 'DJ')) { if (!msg.member.roles.find(x => x.name === 'DJ')) {