bot.readyCommand
A command that gets executed by the bot, if the bot is back online (after bot was restarted) and connected to Discord again.
This command will have the bot send a given message to the given channel when it turns online.

Usage:

1
bot.readyCommand({ //command
2
channel: "channel ID", //The channel where the bot will log
3
code: `your code` //Message sent to <channel>
4
})
Copied!

Example command:

1
bot.readyCommand({
2
channel: "772414449839636490",
3
code: `I'm online and ready!`
4
})
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub