fix llm gojncqwofjkwelfhjkolwe poll
This commit is contained in:
1 parent
28c60a94f3
commit
d7ed3d4634
1 file changed
+6
-1
@@ -332,8 +332,13 @@ async def guest_middleware(handler, event, data):
|
|||||||
last_command_time[user_id][1] = False
|
last_command_time[user_id][1] = False
|
||||||
last_command_time[user_id][2] = []
|
last_command_time[user_id][2] = []
|
||||||
|
|
||||||
if result.startswith("[") and ":" in result:
|
if ":" in result and ("poll" in result or "quiz" in result):
|
||||||
|
pw = ["[poll]", "poll", "quiz"]
|
||||||
rl = result.split("\n")
|
rl = result.split("\n")
|
||||||
|
for i, line in enumerate(rl):
|
||||||
|
if any(line.startswith(w) for w in pw):
|
||||||
|
rl = rl[i:]
|
||||||
|
break
|
||||||
poll_type = rl[0].split(":")[0].replace("[", "").replace("]", "")
|
poll_type = rl[0].split(":")[0].replace("[", "").replace("]", "")
|
||||||
poll_name = rl[0].split(":")[1]
|
poll_name = rl[0].split(":")[1]
|
||||||
if len(rl) > 1:
|
if len(rl) > 1:
|
||||||
|
|||||||
Reference in new issue
Block a user