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
7e6a6a03ef
commit
9e7d75927b
16
index.js
16
index.js
@ -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!')
|
||||||
|
Loading…
Reference in New Issue
Block a user