From 05c31a17ef95da35c6da96fc22f11088f07927ca Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Fri, 26 Jul 2024 17:15:20 +0800 Subject: [PATCH] Update main.py --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 4bbae3a..21248b2 100644 --- a/main.py +++ b/main.py @@ -23,7 +23,10 @@ class HelloWorldPlugin: self.context.register_commands("helloworld", "helloworld", "内置测试指令。", 1, self.helloworld) """ - 机器人程序会调用此函数。 + 指令处理函数。 + + - 需要接收两个参数:message: AstrMessageEvent, context: Context + - 返回 CommandResult 对象 """ def helloworld(self, message: AstrMessageEvent, context: Context): return CommandResult().message("Hello, World!")