Fix missing args causing config issues
This commit is contained in:
parent
b1d763d425
commit
ee7b194d83
|
@ -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();
|
||||
|
|
|
@ -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...**",
|
||||
|
|
Reference in New Issue