From 20c3c24a6d7272f72fe561feea50759e707274c7 Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Sun, 4 Jul 2021 14:17:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20implement=20testcase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_plugins/test_feishu.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_plugins/test_feishu.py b/tests/test_plugins/test_feishu.py index fdd2e2fa..3dee1ce1 100644 --- a/tests/test_plugins/test_feishu.py +++ b/tests/test_plugins/test_feishu.py @@ -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)