mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Update
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user