MitchellAW/FlandersBOT

Move DB connection from on_ready()

MitchellAW opened this issue · 1 comments

Currently, FlandersBOT connects to the database using the on_ready() event, this fires multiple times and does not ensure that the db connection is established before querying any tables. The connection needs to be created before the bot connects.

Fixed with: 3aaa566
Now ensures db pool connects before bot launches.