mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 00:23:17 +00:00
Update index.js
This commit is contained in:
parent
de81037f05
commit
477707c341
5
index.js
5
index.js
@ -53,7 +53,7 @@ client.on('message', async msg => {
|
|||||||
msg.channel.send(embed);
|
msg.channel.send(embed);
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
if(msg.content === `${PREFIX}invite`) {
|
if (msg.content === `${PREFIX}invite`) {
|
||||||
msg.channel.send('Invite me with: https://bit.ly/2V3D0p7')
|
msg.channel.send('Invite me with: https://bit.ly/2V3D0p7')
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
@ -68,6 +68,7 @@ client.on('message', async msg => {
|
|||||||
command = command.slice(PREFIX.length)
|
command = command.slice(PREFIX.length)
|
||||||
|
|
||||||
if (command === 'play') {
|
if (command === 'play') {
|
||||||
|
return msg.channel.send(':x: I\'m sorry but Musix is currently unavaiable to playing music. :cry:')
|
||||||
if (!args[1]) return msg.channel.send(':x: I\'m sorry but you didn\'t specify a song');
|
if (!args[1]) return msg.channel.send(':x: I\'m sorry but you didn\'t specify a song');
|
||||||
const voiceChannel = msg.member.voiceChannel;
|
const voiceChannel = msg.member.voiceChannel;
|
||||||
if (!voiceChannel) return msg.channel.send(':x: I\'m sorry but you need to be in a voice channel to play music!');
|
if (!voiceChannel) return msg.channel.send(':x: I\'m sorry but you need to be in a voice channel to play music!');
|
||||||
@ -171,7 +172,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']
|
||||||
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')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user