nonebot2/nonebot/plugins/echo.py

11 lines
243 B
Python
Raw Normal View History

from nonebot.rule import to_me
2021-11-23 16:21:21 +08:00
from nonebot.adapters import Event
from nonebot.plugin import on_command
echo = on_command("echo", to_me())
@echo.handle()
2021-11-23 16:21:21 +08:00
async def echo_escape(event: Event):
await echo.send(message=event.get_message())