mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-27 18:45:05 +08:00
👷 implement testcase
This commit is contained in:
parent
f80ba8451f
commit
20c3c24a6d
@ -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.rule import to_me
|
||||||
from nonebot.plugin import on_command
|
from nonebot.plugin import on_command
|
||||||
from nonebot.adapters.feishu import Bot as FeishuBot, MessageSegment, MessageEvent
|
from nonebot.adapters.feishu import Bot as FeishuBot, MessageSegment, MessageEvent
|
||||||
|
|
||||||
helper = on_command("ding_helper", to_me())
|
helper = on_command("114514")
|
||||||
|
|
||||||
|
|
||||||
@helper.handle()
|
@helper.handle()
|
||||||
async def ding_helper(bot: FeishuBot, event: MessageEvent):
|
async def ding_helper(bot: FeishuBot, event: MessageEvent):
|
||||||
message = MessageSegment.text("114514")
|
message = MessageSegment.text("1919810")
|
||||||
await helper.finish(message)
|
await helper.finish(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user