nonebot2/tests/test_plugins/test_feishu.py
2021-11-22 23:21:26 +08:00

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)