onReady
Triggers when the bot comes online (ready).
Add The Event: bot.addEvent("onReady")
Type: readyCommand
Base Code
bot.command({
type: "readyCommand", // onReady type.
channel: "channelID", // The channel which the message gets sent in.
code: `code` // The code to run when the bot is ready.
})
Example
bot.command({
type: "readyCommand",
channel: "39459438494840494",
code: `I am ready to go! #proUptime`
})
Last updated
Was this helpful?