events/ready
ClientReady event handler — fires once after the bot successfully logs in.
On startup it immediately runs checkForPromotions and then
schedules it to repeat every 24 hours.
Variables
Section titled “Variables”
constname:ClientReady=Events.ClientReady
Defined in: events/ready.ts:14
Discord event name this module handles.
constonce:true=true
Defined in: events/ready.ts:16
When true, the event listener fires only once.
Functions
Section titled “Functions”execute()
Section titled “execute()”execute(
client):Promise<void>
Defined in: events/ready.ts:22
Logs the bot’s identity and starts the daily promotion-check interval.
Parameters
Section titled “Parameters”client
Section titled “client”The fully initialised TSClient.
Returns
Section titled “Returns”Promise<void>