mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 09:05:04 +08:00
🐛 fix echo message error
This commit is contained in:
parent
7ebae277d1
commit
d773fea709
@ -1,11 +1,11 @@
|
|||||||
from nonebot.rule import to_me
|
from nonebot.rule import to_me
|
||||||
from nonebot.adapters import Message
|
from nonebot.adapters import Message
|
||||||
|
from nonebot.params import CommandArg
|
||||||
from nonebot.plugin import on_command
|
from nonebot.plugin import on_command
|
||||||
from nonebot.params import EventMessage
|
|
||||||
|
|
||||||
echo = on_command("echo", to_me())
|
echo = on_command("echo", to_me())
|
||||||
|
|
||||||
|
|
||||||
@echo.handle()
|
@echo.handle()
|
||||||
async def echo_escape(message: Message = EventMessage()):
|
async def echo_escape(message: Message = CommandArg()):
|
||||||
await echo.send(message=message)
|
await echo.send(message=message)
|
||||||
|
Loading…
Reference in New Issue
Block a user