👷 implement testcase

This commit is contained in:
StarHeartHunt 2021-07-04 14:17:59 +08:00
parent f80ba8451f
commit 20c3c24a6d

View File

@ -1,12 +1,12 @@
from nonebot.adapters.feishu.event import GroupMessageEvent, PrivateMessageEvent
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("ding_helper", to_me())
helper = on_command("114514")
@helper.handle()
async def ding_helper(bot: FeishuBot, event: MessageEvent):
message = MessageSegment.text("114514")
message = MessageSegment.text("1919810")
await helper.finish(message)