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.
Files changed (15) hide show
  1. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/PKG-INFO +1 -1
  2. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor/constants.py +4 -1
  3. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor.egg-info/PKG-INFO +1 -1
  4. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/pyproject.toml +1 -1
  5. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/LICENSE +0 -0
  6. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/README.md +0 -0
  7. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor/__init__.py +0 -0
  8. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor/client.py +0 -0
  9. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor/config.py +0 -0
  10. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor/maimai_plugin_v11.py +0 -0
  11. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor.egg-info/SOURCES.txt +0 -0
  12. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor.egg-info/dependency_links.txt +0 -0
  13. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor.egg-info/requires.txt +0 -0
  14. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/nonebot_plugin_maimaimonitor.egg-info/top_level.txt +0 -0
  15. {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-maimaimonitor
3
- Version: 26.2.6
3
+ Version: 26.2.7
4
4
  Summary: A NoneBot2 plugin to report maimai server status.
5
5
  Author: Chongxi3555
6
6
  License-Expression: MIT
@@ -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)):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-maimaimonitor
3
- Version: 26.2.6
3
+ Version: 26.2.7
4
4
  Summary: A NoneBot2 plugin to report maimai server status.
5
5
  Author: Chongxi3555
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nonebot-plugin-maimaimonitor"
3
- version = "26.2.6"
3
+ version = "26.2.7"
4
4
  description = "A NoneBot2 plugin to report maimai server status."
5
5
  license = "MIT"
6
6
  requires-python = ">=3.8"