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:
parent
f64f5dba92
commit
d65d5aae9e
5
index.js
5
index.js
@ -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(' ')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user