优化 konaph UX 并添加文档
This commit is contained in:
4
konabot/docs/sys/konaph.txt
Normal file
4
konabot/docs/sys/konaph.txt
Normal file
@ -0,0 +1,4 @@
|
||||
指令介绍
|
||||
konaph - KonaBot 的 PuzzleHunt 管理工具
|
||||
|
||||
详细介绍请直接输入 konaph 获取使用指引(该指令权限仅对部分人开放。如果你有权限的话才有响应。建议在此方 BOT 私聊使用该指令。)
|
||||
@ -21,7 +21,7 @@ async def is_play_group(target: DepLongTaskTarget):
|
||||
|
||||
|
||||
cmd_submit = on_alconna(Alconna(
|
||||
"提交答案",
|
||||
"re:提交(?:答案|题解|[fF]lag)",
|
||||
Args["flag", str],
|
||||
), rule=is_play_group)
|
||||
|
||||
|
||||
@ -53,6 +53,7 @@ class Puzzle(BaseModel):
|
||||
result = result.text("\n\n").image(raw=self.get_image_path().read_bytes())
|
||||
|
||||
result = result.text("\n\n出题者:").at(self.author_id)
|
||||
result = result.text("\n\n输入「提交答案 答案」来提交你的解答")
|
||||
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user