加入问题领域类型。

This commit is contained in:
liuwei
2025-02-24 12:03:01 +08:00
parent 965c531156
commit c35e7fccf5

View File

@@ -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} 答案 "