From 6a68db70f5832114c4a3e07a3b75575a8c1fd40e Mon Sep 17 00:00:00 2001 From: bk_office <2680813175@qq.com> Date: Sat, 25 Apr 2026 15:45:41 +0800 Subject: [PATCH] fixed args --- konabot/plugins/marchtoy/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/konabot/plugins/marchtoy/__init__.py b/konabot/plugins/marchtoy/__init__.py index 844e7be..903b226 100644 --- a/konabot/plugins/marchtoy/__init__.py +++ b/konabot/plugins/marchtoy/__init__.py @@ -4,11 +4,11 @@ from nonebot_plugin_alconna import UniMessage from nonebot.params import CommandArg import konabot.plugins.marchtoy.gl_render as render import io -cmd_marchtoy = on_command("march", priority=10, block=True) +cmd_marchtoy = on_command("march") @cmd_marchtoy.handle() async def _(args: Message = CommandArg()): if cmd := args.extract_plain_text(): - img = await render.render(cmd, 256, 256) + img = await render.render(cmd, (256, 256)) buffer = io.BytesIO() img.save(buffer, format="PNG") buffer.seek(0)