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