diff --git a/commands/restart.js b/commands/restart.js index 237e03c..2c78ca6 100644 --- a/commands/restart.js +++ b/commands/restart.js @@ -1,8 +1,9 @@ module.exports = { name: 'restart', - description: '(Owner Only) Shuts down the bot.', - async execute(client, message) { - if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) { + description: 'Restarts the bot', + async execute(client, message, args, config) { + if (message.author.id == config.ownerID) { + console.log("Anitrox is restarting now!") await message.channel.send(" Restarting...") try { client.destroy(); diff --git a/commands/stop.js b/commands/stop.js index 5fa179c..f47c4cb 100644 --- a/commands/stop.js +++ b/commands/stop.js @@ -1,7 +1,7 @@ module.exports = { name: "stop", description: "IT'S TIME TO STOP!... the bot", - async execute(_, message, config) { + async execute(_, message, args, config) { if (message.author.id == config.ownerID) { await message.channel.send({embed: { "title": " **Shutting Down...**",