From c35e7fccf56d25b132a8a9d1ee2c37c790f11a45 Mon Sep 17 00:00:00 2001 From: liuwei Date: Mon, 24 Feb 2025 12:03:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E9=97=AE=E9=A2=98=E9=A2=86?= =?UTF-8?q?=E5=9F=9F=E7=B1=BB=E5=9E=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game_task/game_task_encyclopedia.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/game_task/game_task_encyclopedia.py b/game_task/game_task_encyclopedia.py index 8cde46e..c281361 100644 --- a/game_task/game_task_encyclopedia.py +++ b/game_task/game_task_encyclopedia.py @@ -114,6 +114,7 @@ def assign_random_task(group_id, player_id=None): holder_name = holder['player_name'] task = game_question_json("请出题!") + category = task["category"] question = task["question"] answer = task["answer"] score = int(task["score"]) @@ -135,7 +136,7 @@ def assign_random_task(group_id, player_id=None): return ( f"🎁 {holder_name},你的新任务来啦!\n" f"🎀 任务ID: {active_task_id}\n" - f"🎈 问题:{question}\n" + f"🎈 问题:[{category}]{question}\n" # f"🌈 群 {group_id} 等你作答\n" f"🌼 积分:{score} \n" f"🌈 作答格式(请手动@机器人):\n @a-bot /a {active_task_id} 答案 " @@ -145,7 +146,7 @@ def assign_random_task(group_id, player_id=None): f"🎁 新任务来啦!\n" f"🎀 任务ID: {active_task_id}\n" f"🌟 幸运玩家:{holder_name} \n" - f"🎈 问题:{question}\n" + f"🎈 问题:[{category}]{question}\n" # f"🌈 群 {group_id} 等你抢答\n" f"🌼 积分:{score} \n" f"🌈 作答格式(请手动@机器人):\n @a-bot /a {active_task_id} 答案 "