From 14c5c7a2c315d158eb22f87d7997433b67992c43 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Mon, 23 Nov 2020 22:43:00 +0800 Subject: [Fix] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 舆情被写死了。。。暂时注释掉周末修复 --- ATRI/plugins/plugin_chat/__init__.py | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'ATRI') diff --git a/ATRI/plugins/plugin_chat/__init__.py b/ATRI/plugins/plugin_chat/__init__.py index edd7dc7..d2c3250 100644 --- a/ATRI/plugins/plugin_chat/__init__.py +++ b/ATRI/plugins/plugin_chat/__init__.py @@ -405,29 +405,29 @@ async def _(bot: Bot, event: Event, state: dict) -> None: # 舆情监听 -publicOpinion = on_message(rule=check_banlist(True)) -ban_temp_list = [] +#publicOpinion = on_message(rule=check_banlist(True)) +#ban_temp_list = [] -@publicOpinion.handle() -async def _(bot: Bot, event: Event, state: dict) -> None: - global ban_temp_list - msg = str(event.message) - user = str(event.user_id) +#@publicOpinion.handle() +#async def _(bot: Bot, event: Event, state: dict) -> None: + #global ban_temp_list + #msg = str(event.message) + #user = str(event.user_id) # 检查是否满足条件 - if countX(ban_temp_list, - user) == Textcheck().get_times(str(Textcheck().check(msg))): - ban_temp_list = list(set(ban_temp_list)) - ban(user) + #if countX(ban_temp_list, + #user) == Textcheck().get_times(str(Textcheck().check(msg))): + #ban_temp_list = list(set(ban_temp_list)) + #ban(user) - if Textcheck().check(msg) == "False": - return + #if Textcheck().check(msg) == "False": + #return - if Textcheck().check(msg): - if user in master: - await publicOpinion.finish("主人你给我注意点阿?!你这可是在死亡边缘试探呢!!") + #if Textcheck().check(msg): + #if user in master: + #await publicOpinion.finish("主人你给我注意点阿?!你这可是在死亡边缘试探呢!!") - ban_temp_list.append(int(user)) + #ban_temp_list.append(int(user)) - await publicOpinion.finish(Textcheck().check(msg)) + #await publicOpinion.finish(Textcheck().check(msg)) -- cgit v1.2.3