Multipurpose-discord-bot icon indicating copy to clipboard operation
Multipurpose-discord-bot copied to clipboard

Fixed restartbot and stopbot cmds & added a "pm2process" Variable to the config

Open ROB0520 opened this issue 3 years ago • 3 comments
trafficstars

Dont mind the first 2 commits, This was my first time making a fork

ROB0520 avatar Mar 10 '22 02:03 ROB0520

This might be a bit pointless I know that more than half use Replit, and pm2 does not work well there + they don't use pm2 to run this

There should be a better way implemented to "restart" and "stop" the bot

mooogah avatar Mar 14 '22 10:03 mooogah

Well alright then, Ill see if I can make it work on Replit aswell

ROB0520 avatar Mar 15 '22 00:03 ROB0520

Well alright then, Ill see if I can make it work on Replit aswell

I didn't mean specifically pm2.

You can introduce better ways to restart and stop the bot, as these methods were used to stop and restart the SHOP BOTS.

Example:

Stopbot

await message.reply("Shutting down the bot!");
client.destroy();

mooogah avatar Mar 15 '22 01:03 mooogah