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)