mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-25 01:25:04 +08:00
13 lines
395 B
Python
13 lines
395 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("114514")
|
|
|
|
|
|
@helper.handle()
|
|
async def ding_helper(bot: FeishuBot, event: MessageEvent):
|
|
message = MessageSegment.text("1919810")
|
|
await helper.finish(message)
|