Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f9deabfce0 | |||
| 0a822bf440 |
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
|
||||
|
||||
|
||||
@ -207,7 +207,7 @@ def create_admin_commands():
|
||||
await target.send_message(message)
|
||||
|
||||
@cmd_admin.assign("all")
|
||||
async def _(target: DepLongTaskTarget, ready: Query[bool] = Query("ready"), page: int = 1):
|
||||
async def _(target: DepLongTaskTarget, ready: Query[bool] = Query("all.ready"), page: int = 1):
|
||||
if not is_puzzle_admin(target):
|
||||
return await target.send_message(UniMessage.text("你没有权限查看所有的哦"))
|
||||
async with puzzle_manager() as manager:
|
||||
@ -276,7 +276,7 @@ def create_admin_commands():
|
||||
description: str | None = None,
|
||||
flag: str | None = None,
|
||||
image: Image | None = None,
|
||||
remove_image: Query[bool] = Query("--remove-image"),
|
||||
remove_image: Query[bool] = Query("modify.remove-image"),
|
||||
):
|
||||
if raw_id == "":
|
||||
return await target.send_message(
|
||||
|
||||
Reference in New Issue
Block a user