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.
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.