Stopping the bot


Sometimes you need to stop your bot. If you're running a script like forever this may automatically restart your bot, otherwise it will just shut the whole bot down.

For information on how to *restart* the bot check out this article on restarting the bot automatically


Action 1: send a message to the channel so you know the bot has recognized the command

Action 2: stop the bot using a script. Its good practice to log to console that the bot is stopping, again to confirm that the action is recognized.

console.log("text") is used to print text directly to the bots console logs. Anything inside the " " will be printed directly. If you choose to use a variable instead you would use console.log(tempVars("name"))

results matching ""

    No results matching ""