From 3d70a0c6253e01a9a156141b92e15bb3ea665e2e Mon Sep 17 00:00:00 2001 From: JakelooCheng Date: Sun, 27 Apr 2025 11:29:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=B5=8B=E8=AF=95=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 18aab67..f98fe5d 100644 --- a/main.py +++ b/main.py @@ -128,7 +128,9 @@ class MyPlugin(Star): conn.close() yield event.plain_result(f"昵称修改成功!\n新的昵称为:{name}") - + @filter.command("测试") + async def test(self, event: AstrMessageEvent, name: str): + yield event.plain_result(f"测试结果")