1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 05:10:17 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-07-30 16:02:25 +03:00
parent f64f5dba92
commit d65d5aae9e

View File

@ -23,10 +23,7 @@ client.on('message', async msg => {
serverQueue.songs = [];
serverQueue.connection.dispatcher.end('Stop');
}
if (msg.content === '>url') {
msg.channel.send(`${serverQueue.songs[0].url}`)
}
if (msg.content === '>eval') {
if (msg.content.startsWith('>eval')) {
msg.channel.send(eval(args.join(' ')));
}
}