mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 17:15:05 +08:00
11 lines
267 B
Python
11 lines
267 B
Python
|
from nonebot.rule import to_me
|
||
|
from nonebot.plugin import on_command
|
||
|
from nonebot.typing import Bot, Event
|
||
|
|
||
|
say = on_command("say", to_me())
|
||
|
|
||
|
|
||
|
@say.handle()
|
||
|
async def repeat(bot: Bot, event: Event, state: dict):
|
||
|
await bot.send(message=event.message, event=event)
|