mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-01 01:25:07 +08:00
12 lines
348 B
Python
12 lines
348 B
Python
from nonebot.plugin import on_command
|
|
from nonebot.typing import T_State
|
|
from nonebot.adapters.feishu import Bot as FeishuBot, MessageEvent
|
|
|
|
helper = on_command("say")
|
|
|
|
|
|
@helper.handle()
|
|
async def feishu_helper(bot: FeishuBot, event: MessageEvent, state: T_State):
|
|
message = event.get_message()
|
|
await helper.finish(message, at_sender=True)
|