mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
test: 测试工作流
This commit is contained in:
20
pkg/qqbot/cmds/func/test.py
Normal file
20
pkg/qqbot/cmds/func/test.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from ..mgr import AbstractCommandNode, Context
|
||||
|
||||
|
||||
@AbstractCommandNode.register(
|
||||
parent=None,
|
||||
name="test",
|
||||
description="测试指令",
|
||||
usage="!test",
|
||||
aliases=[],
|
||||
privilege=0
|
||||
)
|
||||
class TestCommand(AbstractCommandNode):
|
||||
@classmethod
|
||||
def process(cls, ctx: Context) -> tuple[bool, list]:
|
||||
reply = []
|
||||
|
||||
reply.append('测试指令')
|
||||
|
||||
return True, reply
|
||||
|
||||
Reference in New Issue
Block a user