🐛 fix echo message error

This commit is contained in:
yanyongyu 2021-12-25 18:46:44 +08:00
parent 7ebae277d1
commit d773fea709

View File

@ -1,11 +1,11 @@
from nonebot.rule import to_me
from nonebot.adapters import Message
from nonebot.params import CommandArg
from nonebot.plugin import on_command
from nonebot.params import EventMessage
echo = on_command("echo", to_me())
@echo.handle()
async def echo_escape(message: Message = EventMessage()):
async def echo_escape(message: Message = CommandArg()):
await echo.send(message=message)