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
d9e7d8d3ad
commit
f64f5dba92
5
index.js
5
index.js
@ -17,6 +17,7 @@ client.on('message', async msg => {
|
|||||||
msg.channel.send('-help to see my commands.')
|
msg.channel.send('-help to see my commands.')
|
||||||
}
|
}
|
||||||
if (msg.content.startsWith('>')) {
|
if (msg.content.startsWith('>')) {
|
||||||
|
if (msg.author.id !== '360363051792203779') return msg.channel.send(':x: Developement commands are not avaiable for public usage!')
|
||||||
if (msg.author.id === '360363051792203779') {
|
if (msg.author.id === '360363051792203779') {
|
||||||
if (msg.content === '>devstop') {
|
if (msg.content === '>devstop') {
|
||||||
serverQueue.songs = [];
|
serverQueue.songs = [];
|
||||||
@ -25,6 +26,9 @@ client.on('message', async msg => {
|
|||||||
if (msg.content === '>url') {
|
if (msg.content === '>url') {
|
||||||
msg.channel.send(`${serverQueue.songs[0].url}`)
|
msg.channel.send(`${serverQueue.songs[0].url}`)
|
||||||
}
|
}
|
||||||
|
if (msg.content === '>eval') {
|
||||||
|
msg.channel.send(eval(args.join(' ')));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (msg.content.startsWith(`${PREFIX}`)) {
|
if (msg.content.startsWith(`${PREFIX}`)) {
|
||||||
@ -65,6 +69,7 @@ client.on('message', async msg => {
|
|||||||
.addField('```-ping```', 'See the current ping for Musix', true)
|
.addField('```-ping```', 'See the current ping for Musix', true)
|
||||||
.addField('```-info```', 'Display info and instructions.', true)
|
.addField('```-info```', 'Display info and instructions.', true)
|
||||||
.addField('```-help```', 'Display the help.', true)
|
.addField('```-help```', 'Display the help.', true)
|
||||||
|
.addField('Developement command prefix: >', 'Developement commands are not avaiable to public usage!', true)
|
||||||
.setAuthor('Musix', 'https://cdn.discordapp.com/avatars/572405135658188800/04c6f22b7600ddecfbc245dd3ec10f9f.png?size=2048')
|
.setAuthor('Musix', 'https://cdn.discordapp.com/avatars/572405135658188800/04c6f22b7600ddecfbc245dd3ec10f9f.png?size=2048')
|
||||||
.setColor('#b50002')
|
.setColor('#b50002')
|
||||||
msg.channel.send(embed);
|
msg.channel.send(embed);
|
||||||
|
Loading…
Reference in New Issue
Block a user