nonebot-plugin-maimaimonitor 26.2.6__tar.gz → 26.2.8__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.8}/PKG-INFO +1 -1
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/README.md +3 -2
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/nonebot_plugin_maimaimonitor/constants.py +4 -1
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/nonebot_plugin_maimaimonitor.egg-info/PKG-INFO +1 -1
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/pyproject.toml +1 -1
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/LICENSE +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/nonebot_plugin_maimaimonitor/__init__.py +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/nonebot_plugin_maimaimonitor/client.py +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/nonebot_plugin_maimaimonitor/config.py +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/nonebot_plugin_maimaimonitor/maimai_plugin_v11.py +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/nonebot_plugin_maimaimonitor.egg-info/SOURCES.txt +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/nonebot_plugin_maimaimonitor.egg-info/dependency_links.txt +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/nonebot_plugin_maimaimonitor.egg-info/requires.txt +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/nonebot_plugin_maimaimonitor.egg-info/top_level.txt +0 -0
- {nonebot_plugin_maimaimonitor-26.2.6 → nonebot_plugin_maimaimonitor-26.2.8}/setup.cfg +0 -0
|
@@ -48,7 +48,7 @@ pip install nonebot-plugin-maimaimonitor
|
|
|
48
48
|
| `MAIMAI_BROADCAST_INTERVAL` | `int` | `300` | 广播轮询检测间隔(秒)|
|
|
49
49
|
| `MAIMAI_BROADCAST_ALL_GROUPS` | `bool` | `false` | 向bot所在所有群播报,谨慎使用 |
|
|
50
50
|
| `MAIMAI_BROADCAST_TIME_RANGES` | `str` | 无 | 推送时间白名单,格式如 `8-11,13-20`,空时不限制。左闭右开(`8-11` 包含 8 点不包含 11 点),跨天用 `22-6`(晚上 10 点到早上 6 点)|
|
|
51
|
-
| `MAIMAI_BROADCAST_SERVERS` | `list[str]` | `[]` | 要播报的服务器列表,可填 key 或名字(如 `["net","aime"]`)。留空默认全部服务(NET
|
|
51
|
+
| `MAIMAI_BROADCAST_SERVERS` | `list[str]` | `[]` | 要播报的服务器列表,可填 key 或名字(如 `["net","aime"]`)。留空默认全部服务(NET/会员/标题/公众号(NET)/公众号(二维码))都播报宕机提示 |
|
|
52
52
|
|
|
53
53
|
> **申请 Client ID**:Client ID 由您自行提供,任意 ASCII 字符串,联系 qwq@chongxi.us 或 chongxi3555@proton.me 获取对应私钥。
|
|
54
54
|
|
|
@@ -65,7 +65,8 @@ pip install nonebot-plugin-maimaimonitor
|
|
|
65
65
|
🟢 NET 42ms
|
|
66
66
|
🟢 会员 38ms
|
|
67
67
|
🟢 标题 45ms
|
|
68
|
-
🟢 公众号
|
|
68
|
+
🟢 公众号(NET) 51ms
|
|
69
|
+
🟢 公众号(二维码) 60ms
|
|
69
70
|
|
|
70
71
|
⏱ 当前延迟:42ms|服务器负载:流畅|延迟稳定
|
|
71
72
|
💬 服务器运行正常
|
|
@@ -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
|