codinglab-io / discord-bot

Discord bot for Codinglab's server.
https://discord.com/invite/codinglab-174169014568878080
MIT License
19 stars 14 forks source link

fix: fire event 'ready' on modules #50

Closed neolectron closed 1 year ago

neolectron commented 1 year ago

Renamed branch for #49

Problem

ClientEvent ready is not fire when we attach listener while the client is already ready.

Since every modules are loaded after the client is ready, and they can listen for ready ClientEvent, it should fire as soon as it is attached.

Solution

Drawback

None