From cf96ab3ffe09d1985b4024335fbb26508cd5d9dd Mon Sep 17 00:00:00 2001 From: Snowykami Date: Tue, 17 Dec 2024 21:14:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=83=AD=E9=87=8D=E8=BD=BD=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=EF=BC=8C=E5=BC=BA=E8=B0=83=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E5=BC=8F=E7=BC=96=E7=A8=8B=E9=A3=8E=E6=A0=BC?= =?UTF-8?q?=E4=BB=A5=E5=87=8F=E5=B0=91=E5=89=AF=E4=BD=9C=E7=94=A8=E5=BD=B1?= =?UTF-8?q?=E5=93=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh/dev/extension.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/zh/dev/extension.md b/docs/zh/dev/extension.md index 90805065..8499d498 100755 --- a/docs/zh/dev/extension.md +++ b/docs/zh/dev/extension.md @@ -118,7 +118,8 @@ async def get_bot_info(b: Bot) -> str: :::warning 框架无法完全消除之前插件带来的副作用,当开发测试中效果不符合预期时请重启机器人实例 -为了更好地使用热重载功能,可以使用函数式的编程风格,以减少副作用的影响 + +为了更好地让热重载功能正常工作,尽可能使用函数式的编程风格,以减少副作用的影响 ::: 将`MARSHOAI_DEVMODE`环境变量设置为`true`,然后在配置的插件目录`MARSHOAI_PLUGIN_DIRS`下开发插件,当插件发生变化时,机器人会自动变动的插件。