fix: make AI parser async to prevent Discord heartbeat blocking
This commit is contained in:
@@ -333,7 +333,7 @@ async def routeCommand(message):
|
||||
total_steps = active_session.get("total_steps", 0)
|
||||
context = f"\n[Context: User is currently in active session for '{routine_name}', on step {current_step} of {total_steps}. They can say 'done', 'skip', 'pause', 'resume', or 'stop'.]"
|
||||
|
||||
parsed = ai_parser.parse(
|
||||
parsed = await ai_parser.parse(
|
||||
message.content + context, "command_parser", history=history
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user