diff --git a/main.py b/main.py index 6ae49e3..ef91eb1 100644 --- a/main.py +++ b/main.py @@ -9,5 +9,6 @@ class MyPlugin(Star): # 注册指令的装饰器。指令名为 helloworld。注册成功后,发送 `/helloworld` 就会触发这个指令,并回复 `你好, {user_name}!` @filter.command("helloworld") async def helloworld(self, event: AstrMessageEvent): + '''这是一个 hello world 指令''' # 这是 handler 的描述,将会被解析方便用户了解插件内容。建议填写。 user_name = event.get_sender_name() yield event.plain_result(f"Hello, {user_name}!") # 发送一条纯文本消息