1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 00:23:17 +00:00

Update index.js

This commit is contained in:
MatteZ02 2019-06-05 16:29:58 +03:00
parent 7e6a6a03ef
commit 9e7d75927b

View File

@ -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!')