$shutdown
Shut down your bot with a command. Accepts brackets for a feedback message before shutting down. Supports embeds!

FUNCTION USAGE

  • $shutdown
  • $shutdown[]
  • $shutdown[message]

Properties:

[] - Leaving blank will simply shutdown the bot silently. Same as no brackets. message - The message response to be sent to the channel before shutting down.
Highly recommended to add limiters to a command intended to shutdown your bot as a dev command.
Example 1: Shutting down your bot silently.
bot.Command({
name: "kill",
code: `
$shutdown
`
})

Example 2: The bot will respond with "shutting down..." before shutting down all processes.

bot.Command({
name: "kill",
code: `
$shutdown[shutting down...]
`
})
Copy link
Outline