$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.
1
bot.Command({
2
name: "kill",
3
code: `
4
$shutdown
5
`
6
})
Copied!

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

1
bot.Command({
2
name: "kill",
3
code: `
4
$shutdown[shutting down...]
5
`
6
})
Copied!
Last modified 3mo ago
Copy link