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:
parent
7e6a6a03ef
commit
9e7d75927b
14
index.js
14
index.js
@ -32,6 +32,20 @@ client.on('message', msg => {
|
|||||||
msg.channel.send('Bot is currently online hosted!')
|
msg.channel.send('Bot is currently online hosted!')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (msg.content === '!restart') {
|
||||||
|
if (msg.member.username !== 'Matte') {
|
||||||
|
msg.channel.send(':x: I\'n´m sorry, You can\'t do that!')
|
||||||
|
}
|
||||||
|
if (msg.author.username === 'Matte') {
|
||||||
|
console.log('restarting...')
|
||||||
|
msg.channel.send('Restarting...')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (msg.content === 'Restarting...') {
|
||||||
|
if (msg.author.username === 'Musix') {
|
||||||
|
msg.author.crash('done')
|
||||||
|
}
|
||||||
|
}
|
||||||
if (msg.content === `${PREFIX}help`) {
|
if (msg.content === `${PREFIX}help`) {
|
||||||
const embed = new Discord.RichEmbed()
|
const embed = new Discord.RichEmbed()
|
||||||
.setTitle('Commands for Musix!')
|
.setTitle('Commands for Musix!')
|
||||||
|
Loading…
Reference in New Issue
Block a user