nonebot-plugin-maimaimonitor 26.2.6__tar.gz → 26.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/PKG-INFO +1 -1
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor/constants.py +4 -1
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor.egg-info/PKG-INFO +1 -1
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/pyproject.toml +1 -1
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/LICENSE +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/README.md +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor/__init__.py +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor/client.py +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor/config.py +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor/maimai_plugin_v11.py +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor.egg-info/SOURCES.txt +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor.egg-info/dependency_links.txt +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor.egg-info/requires.txt +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor.egg-info/top_level.txt +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/setup.cfg +0 -0
|
@@ -42,7 +42,7 @@ REPORT_MAPPING = {
|
|
|
42
42
|
|
|
43
43
|
OPERATOR_PATTERN = r'(?:华立|[Ss][Ee][Gg][Aa]|[Ss][Bb][Gg][Aa]|冯|老冯|服务器|机台|[Nn][Ee][Tt]|会员|标题|游戏)'
|
|
44
44
|
|
|
45
|
-
ANOMALY_VERB_PATTERN = r'(
|
|
45
|
+
ANOMALY_VERB_PATTERN = r'(?:炸|挂|死|坏|灰|飞|崩|寄|凉|废|完|烂|蹦|卡死|不行|掉线|断联)'
|
|
46
46
|
|
|
47
47
|
NORMAL_VERB_PATTERN = r'(?:好了|稳了|正常了|恢复了|回来了|活了|绿了|通了|好使了|没事了)'
|
|
48
48
|
|
|
@@ -85,6 +85,9 @@ def detect_guest(text: str) -> bool:
|
|
|
85
85
|
return False
|
|
86
86
|
|
|
87
87
|
def detect_anomaly(text: str) -> bool:
|
|
88
|
+
if any(w in text for w in UNCERTAIN_WORDS):
|
|
89
|
+
return False
|
|
90
|
+
|
|
88
91
|
for word in STANDALONE_ANOMALY:
|
|
89
92
|
idx = text.find(word)
|
|
90
93
|
if idx != -1 and not _has_negation(text, idx, idx + len(word)):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|