nonebot2/nonebot/plugins/echo.py
2021-11-23 16:21:21 +08:00

11 lines
243 B
Python

from nonebot.rule import to_me
from nonebot.adapters import Event
from nonebot.plugin import on_command
echo = on_command("echo", to_me())
@echo.handle()
async def echo_escape(event: Event):
await echo.send(message=event.get_message())