mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-01 01:25:07 +08:00
11 lines
243 B
Python
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())
|