From eff788084852ca6f6d2eac3d2416e44b1c9b3077 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Wed, 5 Feb 2025 22:57:33 +0800 Subject: [PATCH] Update main.py --- main.py | 1 + 1 file changed, 1 insertion(+) 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}!") # 发送一条纯文本消息