mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 03:26:18 +08:00
13 lines
383 B
Python
13 lines
383 B
Python
from nonebot.typing import T_State
|
|
from nonebot.plugin import on_command
|
|
from nonebot.adapters.feishu import MessageEvent
|
|
from nonebot.adapters.feishu import Bot as FeishuBot
|
|
|
|
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)
|