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-06-05 16:29:58 +03:00
parent 7e6a6a03ef
commit 9e7d75927b

View File

@ -31,7 +31,21 @@ client.on('message', msg => {
if (msg.author.username === 'Matte') { if (msg.author.username === 'Matte') {
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!')