mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 12:05:54 +00:00
19 lines
468 B
Python
19 lines
468 B
Python
from ..aamgr import AbstractCommandNode, Context
|
|
|
|
|
|
@AbstractCommandNode.register(
|
|
parent=None,
|
|
name="help",
|
|
description="显示自定义的帮助信息",
|
|
usage="!help",
|
|
aliases=[],
|
|
privilege=1
|
|
)
|
|
class HelpCommand(AbstractCommandNode):
|
|
@classmethod
|
|
def process(cls, ctx: Context) -> tuple[bool, list]:
|
|
import config
|
|
reply = [(config.help_message) + "\n请输入 !cmds 查看指令列表"]
|
|
|
|
return True, reply
|
|
|