项目文件夹

文件
wehub-resource-sync a2cb1f9821
CI / test (push) Has been cancelled
Wiki / validate (push) Has been cancelled
Deploy Wiki / Deploy to Cloudflare Pages (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:03:55 +08:00

19 行
510 B
Python

"""Slash command implementations.
Each command module exports a ``run(ctx, *args) -> int`` callable. Modules
that own multiple commands (``chat``, ``show``, ``session``) also expose
named ``cmd_<name>`` callables so the slash router can dispatch by
command keyword.
The :data:`SLASH_COMMANDS` registry lives in :mod:`.slash_router`.
"""
from .slash_router import SLASH_COMMANDS, Command, find_exact, match_commands
__all__ = [
"Command",
"SLASH_COMMANDS",
"find_exact",
"match_commands",
]