mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
20 lines
410 B
Python
20 lines
410 B
Python
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
|