NovaXe / KagamiPy

A discord bot focussing on music playing functionality and fun commands for chatting.
2 stars 0 forks source link

Bot becomes unresponsive to sentinels and fails to toggle functionality #14

Open NovaXe opened 1 month ago

NovaXe commented 1 month ago

This is two issues but they were discovered at the same time so they've been combined here. The bot was failing to react in response to a sentinel but that was because the server had globals disabled. The toggle functionality command did not toggle the functionality and they remained off. After manual modification of the field the bot was slow to react and would sometimes skip reacting. After a restart the issue was resolved.

My best guess is that this is caused by some connection to the database either remaining open or being opened and closed, causing slow reading and writing. Investigate the connection pool and ensure that the connections get cleaned up properly whenever something goes wrong.

NovaXe commented 2 weeks ago

Potentially fixed in 0.6.6 with error handling improvements and database rollbacks