1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 04:31:56 +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.songs = [];
serverQueue.connection.dispatcher.end('Stop'); serverQueue.connection.dispatcher.end('Stop');
} }
if (msg.content === '>url') { if (msg.content.startsWith('>eval')) {
msg.channel.send(`${serverQueue.songs[0].url}`)
}
if (msg.content === '>eval') {
msg.channel.send(eval(args.join(' '))); msg.channel.send(eval(args.join(' ')));
} }
} }