Fix missing args causing config issues

This commit is contained in:
IDeletedSystem64 2022-03-29 18:53:55 -05:00
parent b1d763d425
commit ee7b194d83
2 changed files with 5 additions and 4 deletions

View File

@ -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("<a:NyabotWorking:697147309531594843> Restarting...")
try {
client.destroy();

View File

@ -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": "<a:AnitroxWorking:697147309531594843> **Shutting Down...**",