mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-27 04:37:13 +00:00
test: 测试工作流
This commit is contained in:
@@ -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