nonebot2/nonebot/plugins/echo.py

12 lines
290 B
Python
Raw Normal View History

from nonebot.rule import to_me
2021-12-20 15:53:05 +08:00
from nonebot.adapters import Message
2021-12-25 18:46:44 +08:00
from nonebot.params import CommandArg
from nonebot.plugin import on_command
echo = on_command("echo", to_me())
@echo.handle()
2021-12-25 18:46:44 +08:00
async def echo_escape(message: Message = CommandArg()):
2021-12-20 15:53:05 +08:00
await echo.send(message=message)