mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 21:13:18 +00:00
Update index.js
This commit is contained in:
parent
477707c341
commit
397ad03821
4
index.js
4
index.js
@ -183,8 +183,7 @@ Please provide a value to select one of the search results ranging from __1-10__
|
|||||||
}
|
}
|
||||||
msg.channel.send(':x: Unknown command! Type -help for the list of commands!')
|
msg.channel.send(':x: Unknown command! Type -help for the list of commands!')
|
||||||
return;
|
return;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
const args = msg.content.split(' ');
|
const args = msg.content.split(' ');
|
||||||
const searchString = args.slice(1).join(' ');
|
const searchString = args.slice(1).join(' ');
|
||||||
const url = args[1] ? args[1].replace(/<(.+)>/g, '$1') : '';
|
const url = args[1] ? args[1].replace(/<(.+)>/g, '$1') : '';
|
||||||
@ -194,6 +193,7 @@ Please provide a value to select one of the search results ranging from __1-10__
|
|||||||
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 think you forgot what you wanted to play!');
|
if (!args[1]) return msg.channel.send(':x: I think you forgot what you wanted to play!');
|
||||||
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!');
|
||||||
|
Loading…
Reference in New Issue
Block a user