Enhance TwitchBot message sending by integrating event loop management. Updated send_twitch_message to utilize the existing event loop for asynchronous message sending, improving reliability and error handling. Added timeout handling for message sending operations.

This commit is contained in:
2026-03-10 19:59:44 +01:00
parent 1bf24d299c
commit ce5f60a2d7
2 changed files with 116 additions and 124 deletions
+2
View File
@@ -158,8 +158,10 @@ def _isConfigured():
class TwitchBot():
_eventsub = None
_loop = None
async def _connect(self):
self._loop = asyncio.get_event_loop()
with webapp.app_context():
if _isConfigured():
try: