This commit is contained in:
2025-02-18 23:49:16 +01:00
parent e86fa6635a
commit a6a10d9110

View File

@@ -159,7 +159,7 @@ class MessagesProc:
if current_deep > 5: if current_deep > 5:
return [] return []
message = next((msg for msg in cls.MESSAGE_HISTORY if msg["id"] == thread_id), None) message = next((message for message in cls.MESSAGE_HISTORY if message["id"] == thread_id), None)
if message is None: if message is None:
return [] return []
@@ -208,7 +208,7 @@ class MessagesProc:
reply_parent_message_id=event.message_id reply_parent_message_id=event.message_id
) )
except Exception as e: except Exception as e:
logger.error(f"Failed to get completion: {e}") logger.error("Failed to get completion: {}", e, exc_info=True)
await twitch.send_chat_message( await twitch.send_chat_message(
event.broadcaster_user_id, event.broadcaster_user_id,