From b13976c9a06ef453ded07733e519281031194807 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Thu, 23 Jan 2025 21:50:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=B7=BB=E5=8A=A0=E6=B4=BB=E5=85=A8?= =?UTF-8?q?=E5=AE=B6=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/qq_plugins/check.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/qq_plugins/check.py b/src/qq_plugins/check.py index 66a0c2f..65b6cb0 100644 --- a/src/qq_plugins/check.py +++ b/src/qq_plugins/check.py @@ -14,7 +14,7 @@ with open(os.getcwd() + '/src/ai_chat/config/chat_ai.yaml', 'r', encoding='utf-8 menu = ['/今日运势','/图','/点歌','/摸摸头','/群老婆','/今日老婆', "/开启ai","/关闭ai","/角色列表","/添加人设", "/更新人设", "/删除人设", "/切换人设", "/管理员注册", - '/待办', '/test','/天气','我喜欢你', "❤", "/待办查询", "/新建待办", "/删除待办" ,"/cf"] + '/待办', '/test','/天气','我喜欢你', "❤", "/待办查询", "/新建待办", "/删除待办" ,"/cf", "/奶龙", "奶龙"] async def check_value_in_menu(message: MessageEvent) -> bool: @@ -46,7 +46,7 @@ text_list = [ ] -love = on_keyword({"我喜欢你", "❤"}, rule=to_me(), priority=10, block=True) +love = on_keyword({"我喜欢你", "❤"}, rule=to_me(), priority=10, block=False) @love.handle() async def spread_love(): await love.finish("我也喜欢你。") @@ -56,3 +56,15 @@ test = on_command("test", rule=to_me(), priority=10, block=True) async def bot_on_ready(): await test.finish("\nBoost & Magnum, ready fight!!!") +nai_loong = on_keyword({"奶龙"}, rule=to_me(), priority=10, block=False) +@nai_loong.handle() +async def not_nai_loong(): + await nai_loong.finish(message=Message(random.choice(text_list1))) + +text_list1 = [ + "我是?你是?😨", + "你才是奶龙😡", + "你是奶龙?🤔我是奶龙?😨你才是奶龙!😱", + "今夜星光闪闪✨️我爱你的心满满🤩", + "唐", +]