Fix missing args causing config issues
This commit is contained in:
parent
b1d763d425
commit
ee7b194d83
|
@ -1,8 +1,9 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'restart',
|
name: 'restart',
|
||||||
description: '(Owner Only) Shuts down the bot.',
|
description: 'Restarts the bot',
|
||||||
async execute(client, message) {
|
async execute(client, message, args, config) {
|
||||||
if (message.author.id == 309427567004483586 || message.author.id == 475558313376088064) {
|
if (message.author.id == config.ownerID) {
|
||||||
|
console.log("Anitrox is restarting now!")
|
||||||
await message.channel.send("<a:NyabotWorking:697147309531594843> Restarting...")
|
await message.channel.send("<a:NyabotWorking:697147309531594843> Restarting...")
|
||||||
try {
|
try {
|
||||||
client.destroy();
|
client.destroy();
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "stop",
|
name: "stop",
|
||||||
description: "IT'S TIME TO STOP!... the bot",
|
description: "IT'S TIME TO STOP!... the bot",
|
||||||
async execute(_, message, config) {
|
async execute(_, message, args, config) {
|
||||||
if (message.author.id == config.ownerID) {
|
if (message.author.id == config.ownerID) {
|
||||||
await message.channel.send({embed: {
|
await message.channel.send({embed: {
|
||||||
"title": "<a:AnitroxWorking:697147309531594843> **Shutting Down...**",
|
"title": "<a:AnitroxWorking:697147309531594843> **Shutting Down...**",
|
||||||
|
|
Reference in New Issue