$reboot
Reboots the bot. MUST have the `main` property in your `package.json` match your main bot file name!

FUNCTION USAGE

    $reboot
    $reboot[]
    $reboot[feedback]

Properties:

[] - Leave blank to reboot with no feedback. Same as no brackets. feedback - The message to be sent to the channel before rebooting.
package.json must have main property defined as your main file to successfully reboot your bot!
main property in package.json matches my main bot file!

Example 1: Reboots the bot silently.

1
bot.Command({
2
name: "reboot",
3
code: `
4
$reboot
5
`
6
})
Copied!

Example 2: Reboots the bot silently.

1
bot.Command({
2
name: "reboot",
3
code: `
4
$reboot[]
5
`
6
})
Copied!

Example 3: Sends a plain text message to the channel before rebooting the bot.

1
bot.Command({
2
name: "reboot",
3
code: `
4
$reboot[$client[mention] is rebooting...]
5
`
6
})
Copied!

Example 4: Sends an embedded message to the channel before rebooting the bot.

1
bot.Command({
2
name: "reboot",
3
code: `
4
$reboot[
5
{color:FF0000}
6
{description:$client[mention] is rebooting...}
7
{footer:Executed by - $tag}
8
{thumbnail:$client[avatar]}]
9
]
10
`
11
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: