nonebot-plugin-maimaidx 2.1.2__tar.gz → 2.1.4__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_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/PKG-INFO +36 -5
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/README.md +35 -4
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/__init__.py +5 -1
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/command/mai_alias.py +17 -8
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/config.py +2 -1
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/libraries/maimaidx_model.py +1 -3
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/libraries/maimaidx_music.py +12 -5
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/libraries/maimaidx_music_info.py +1 -1
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/libraries/maimaidx_player_score.py +1 -1
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx.egg-info/PKG-INFO +36 -5
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/pyproject.toml +1 -1
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/LICENSE +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/command/__init__.py +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/command/mai_base.py +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/command/mai_guess.py +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/command/mai_score.py +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/command/mai_search.py +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/command/mai_table.py +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/libraries/image.py +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/libraries/maimaidx_api_data.py +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/libraries/maimaidx_best_50.py +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/libraries/maimaidx_error.py +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/libraries/maimaidx_update_plate.py +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/libraries/tool.py +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/maimaidxhelp.png +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx.egg-info/SOURCES.txt +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx.egg-info/dependency_links.txt +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx.egg-info/requires.txt +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx.egg-info/top_level.txt +0 -0
- {nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nonebot-plugin-maimaidx
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.4
|
|
4
4
|
Summary: maimaidx plugin for nonebot2
|
|
5
5
|
Author-email: Yuri-YuzuChaN <806235364@qq.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -39,12 +39,37 @@ Dynamic: license-file
|
|
|
39
39
|
|
|
40
40
|
## 重要更新
|
|
41
41
|
|
|
42
|
-
**2025-
|
|
42
|
+
**2025-08-16**
|
|
43
43
|
|
|
44
|
-
1.
|
|
44
|
+
1. 修改别名推送机制,请各开发者进行取舍
|
|
45
|
+
|
|
46
|
+
- 更新别名推送设置与指令,新增了 `MAIMAIDXALIASPUSH` 配置项,该设置将替代原先 `group_alias_switch.json` 文件的 `global_switch` 配置项
|
|
47
|
+
- 当设置为`false` 时,不再连接别名推送服务器,如果群组的推送为开启状态,也不再进行推送,**与原先一致**。**申请的别名通过审核了也不再推送**
|
|
48
|
+
|
|
49
|
+
``` ujson
|
|
50
|
+
{
|
|
51
|
+
"enable": [],
|
|
52
|
+
"disable": [88888888],
|
|
53
|
+
"global_switch": false // 该配置项将被代替并删除
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
- 不会接收到别名申请以及别名通过的消息,**如果服务器新增新的别名时无法实时获取最新的别名,仅能手动更新别名库**。
|
|
58
|
+
|
|
59
|
+
2. 指令 `全局开启/关闭别名推送` 的功能将修改为开关全部群组的推送开关。
|
|
60
|
+
3. 新增别名推送服务器代理地址,修改 `.env` 的 `MAIMAIDXALIASPROXY` 配置项即可,~~其实是忘记添加代理地址~~
|
|
61
|
+
|
|
62
|
+
## 温馨提示
|
|
63
|
+
|
|
64
|
+
**首次使用请务必看完 `README.MD` 所有内容**
|
|
65
|
+
|
|
66
|
+
- 不要再问为什么 `资源文件` 的 `plate` 和 `rating` 文件夹是空的或缺少文件
|
|
67
|
+
- 不要再问为什么 `资源文件` 的 `plate` 和 `rating` 文件夹是空的或缺少文件
|
|
68
|
+
- 不要再问为什么 `资源文件` 的 `plate` 和 `rating` 文件夹是空的或缺少文件
|
|
45
69
|
|
|
46
70
|
## 安装
|
|
47
71
|
|
|
72
|
+
|
|
48
73
|
1. 安装 `nonebot-plugin-maimaidx`
|
|
49
74
|
|
|
50
75
|
- 使用 `nb-cli` 安装
|
|
@@ -102,7 +127,13 @@ Dynamic: license-file
|
|
|
102
127
|
MAIMAIDXALIASPROXY=false
|
|
103
128
|
```
|
|
104
129
|
|
|
105
|
-
5.
|
|
130
|
+
5. 可选,是否开启别名推送,不需要请在 `.env` 文件中配置 `MAIMAIDXALIASPUSH` 为 `false`,**注意,该配置为 `false` 时,将不会实时更新别名库,仅会在别名查歌或者跨日更新数据的时候才会更新别名库。如果群组的推送为开启状态,也不再进行推送,推送指令也一并失效**
|
|
131
|
+
|
|
132
|
+
``` dotenv
|
|
133
|
+
MAIMAIDXALIASPUSH=false
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
6. 可选,是否将部分图片在保存在内存中,不需要请在 `.env` 文件中配置 `SAVEINMEM` 为 `false`
|
|
106
137
|
|
|
107
138
|
``` dotenv
|
|
108
139
|
SAVEINMEM=false
|
|
@@ -112,7 +143,7 @@ Dynamic: license-file
|
|
|
112
143
|
> 安装完插件需要使用定数表或完成表指令时,需私聊Bot使用 `更新定数表` 和 `更新完成表` 进行生成
|
|
113
144
|
|
|
114
145
|
> [!NOTE]
|
|
115
|
-
>
|
|
146
|
+
> 插件带有别名更新推送功能,默认开启全部群组推送,不需要请私聊Bot使用 `全局关闭别名推送` 指令关闭所有群组推送。群组需要单独使用请使用指令 `开启别名推送`。
|
|
116
147
|
|
|
117
148
|
## 指令
|
|
118
149
|
|
|
@@ -11,12 +11,37 @@
|
|
|
11
11
|
|
|
12
12
|
## 重要更新
|
|
13
13
|
|
|
14
|
-
**2025-
|
|
14
|
+
**2025-08-16**
|
|
15
15
|
|
|
16
|
-
1.
|
|
16
|
+
1. 修改别名推送机制,请各开发者进行取舍
|
|
17
|
+
|
|
18
|
+
- 更新别名推送设置与指令,新增了 `MAIMAIDXALIASPUSH` 配置项,该设置将替代原先 `group_alias_switch.json` 文件的 `global_switch` 配置项
|
|
19
|
+
- 当设置为`false` 时,不再连接别名推送服务器,如果群组的推送为开启状态,也不再进行推送,**与原先一致**。**申请的别名通过审核了也不再推送**
|
|
20
|
+
|
|
21
|
+
``` ujson
|
|
22
|
+
{
|
|
23
|
+
"enable": [],
|
|
24
|
+
"disable": [88888888],
|
|
25
|
+
"global_switch": false // 该配置项将被代替并删除
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
- 不会接收到别名申请以及别名通过的消息,**如果服务器新增新的别名时无法实时获取最新的别名,仅能手动更新别名库**。
|
|
30
|
+
|
|
31
|
+
2. 指令 `全局开启/关闭别名推送` 的功能将修改为开关全部群组的推送开关。
|
|
32
|
+
3. 新增别名推送服务器代理地址,修改 `.env` 的 `MAIMAIDXALIASPROXY` 配置项即可,~~其实是忘记添加代理地址~~
|
|
33
|
+
|
|
34
|
+
## 温馨提示
|
|
35
|
+
|
|
36
|
+
**首次使用请务必看完 `README.MD` 所有内容**
|
|
37
|
+
|
|
38
|
+
- 不要再问为什么 `资源文件` 的 `plate` 和 `rating` 文件夹是空的或缺少文件
|
|
39
|
+
- 不要再问为什么 `资源文件` 的 `plate` 和 `rating` 文件夹是空的或缺少文件
|
|
40
|
+
- 不要再问为什么 `资源文件` 的 `plate` 和 `rating` 文件夹是空的或缺少文件
|
|
17
41
|
|
|
18
42
|
## 安装
|
|
19
43
|
|
|
44
|
+
|
|
20
45
|
1. 安装 `nonebot-plugin-maimaidx`
|
|
21
46
|
|
|
22
47
|
- 使用 `nb-cli` 安装
|
|
@@ -74,7 +99,13 @@
|
|
|
74
99
|
MAIMAIDXALIASPROXY=false
|
|
75
100
|
```
|
|
76
101
|
|
|
77
|
-
5.
|
|
102
|
+
5. 可选,是否开启别名推送,不需要请在 `.env` 文件中配置 `MAIMAIDXALIASPUSH` 为 `false`,**注意,该配置为 `false` 时,将不会实时更新别名库,仅会在别名查歌或者跨日更新数据的时候才会更新别名库。如果群组的推送为开启状态,也不再进行推送,推送指令也一并失效**
|
|
103
|
+
|
|
104
|
+
``` dotenv
|
|
105
|
+
MAIMAIDXALIASPUSH=false
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
6. 可选,是否将部分图片在保存在内存中,不需要请在 `.env` 文件中配置 `SAVEINMEM` 为 `false`
|
|
78
109
|
|
|
79
110
|
``` dotenv
|
|
80
111
|
SAVEINMEM=false
|
|
@@ -84,7 +115,7 @@
|
|
|
84
115
|
> 安装完插件需要使用定数表或完成表指令时,需私聊Bot使用 `更新定数表` 和 `更新完成表` 进行生成
|
|
85
116
|
|
|
86
117
|
> [!NOTE]
|
|
87
|
-
>
|
|
118
|
+
> 插件带有别名更新推送功能,默认开启全部群组推送,不需要请私聊Bot使用 `全局关闭别名推送` 指令关闭所有群组推送。群组需要单独使用请使用指令 `开启别名推送`。
|
|
88
119
|
|
|
89
120
|
## 指令
|
|
90
121
|
|
{nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/__init__.py
RENAMED
|
@@ -32,7 +32,11 @@ async def get_music():
|
|
|
32
32
|
if maiconfig.maimaidxaliasproxy:
|
|
33
33
|
log.info('正在使用代理服务器访问别名服务器')
|
|
34
34
|
maiApi.load_token_proxy()
|
|
35
|
-
|
|
35
|
+
if maiconfig.maimaidxaliaspush:
|
|
36
|
+
log.opt(colors=True).info('别名推送为「<g>开启</g>」状态')
|
|
37
|
+
asyncio.ensure_future(ws_alias_server())
|
|
38
|
+
else:
|
|
39
|
+
log.opt(colors=True).info('别名推送为「<r>关闭</r>」状态')
|
|
36
40
|
log.info('正在获取maimai所有曲目信息')
|
|
37
41
|
await mai.get_music()
|
|
38
42
|
log.info('正在获取maimai牌子数据')
|
|
@@ -84,9 +84,12 @@ async def _(event: MessageEvent, message: Message = CommandArg()):
|
|
|
84
84
|
async def _(event: GroupMessageEvent, message: Message = CommandArg()):
|
|
85
85
|
try:
|
|
86
86
|
args = message.extract_plain_text().strip().split()
|
|
87
|
-
if len(args)
|
|
87
|
+
if len(args) < 2:
|
|
88
88
|
await alias_apply.finish('参数错误', reply_message=True)
|
|
89
|
-
song_id
|
|
89
|
+
song_id = args[0]
|
|
90
|
+
if not song_id.isdigit():
|
|
91
|
+
await alias_apply.finish('请输入正确的ID', reply_message=True)
|
|
92
|
+
alias_name = ' '.join(args[1:])
|
|
90
93
|
if not mai.total_list.by_id(song_id):
|
|
91
94
|
await alias_apply.finish(f'未找到ID「{song_id}」的曲目', reply_message=True)
|
|
92
95
|
|
|
@@ -207,12 +210,14 @@ async def _(event: GroupMessageEvent, match = RegexMatched()):
|
|
|
207
210
|
|
|
208
211
|
|
|
209
212
|
@alias_global_switch.handle()
|
|
210
|
-
async def _(match = RegexMatched()):
|
|
213
|
+
async def _(bot: Bot, match = RegexMatched()):
|
|
214
|
+
group = await bot.get_group_list()
|
|
215
|
+
group_id = [g['group_id'] for g in group]
|
|
211
216
|
if match.group(1) == '开启':
|
|
212
|
-
await alias.alias_global_change(True)
|
|
217
|
+
await alias.alias_global_change(True, group_id)
|
|
213
218
|
await alias_global_switch.finish('已全局开启maimai别名推送')
|
|
214
219
|
elif match.group(1) == '关闭':
|
|
215
|
-
await alias.alias_global_change(False)
|
|
220
|
+
await alias.alias_global_change(False, group_id)
|
|
216
221
|
await alias_global_switch.finish('已全局关闭maimai别名推送')
|
|
217
222
|
else:
|
|
218
223
|
await alias_global_switch.finish()
|
|
@@ -248,7 +253,7 @@ async def push_alias(push: PushAliasStatus):
|
|
|
248
253
|
await bot.send_group_msg(group_id=push.Status.GroupID, message=message)
|
|
249
254
|
return
|
|
250
255
|
|
|
251
|
-
if not
|
|
256
|
+
if not maiconfig.maimaidxaliaspush:
|
|
252
257
|
await mai.get_music_alias()
|
|
253
258
|
return
|
|
254
259
|
group_list = await bot.get_group_list()
|
|
@@ -284,11 +289,15 @@ async def push_alias(push: PushAliasStatus):
|
|
|
284
289
|
|
|
285
290
|
|
|
286
291
|
async def ws_alias_server():
|
|
287
|
-
log.info('正在连接别名推送服务器')
|
|
292
|
+
log.info('正在连接别名推送服务器')
|
|
293
|
+
if maiconfig.maimaidxaliasproxy:
|
|
294
|
+
wsapi = 'proxy.yuzuchan.xyz/maimaidxaliases'
|
|
295
|
+
else:
|
|
296
|
+
wsapi = 'www.yuzuchan.moe/api/maimaidx'
|
|
288
297
|
while True:
|
|
289
298
|
try:
|
|
290
299
|
async with httpx.AsyncClient(timeout=httpx.Timeout(60)) as session:
|
|
291
|
-
async with aconnect_ws(f'wss://
|
|
300
|
+
async with aconnect_ws(f'wss://{wsapi}/ws/{UUID}', session) as ws:
|
|
292
301
|
try:
|
|
293
302
|
log.success('别名推送服务器连接成功')
|
|
294
303
|
while True:
|
{nonebot_plugin_maimaidx-2.1.2 → nonebot_plugin_maimaidx-2.1.4}/nonebot_plugin_maimaidx/config.py
RENAMED
|
@@ -15,8 +15,9 @@ class Config(BaseModel):
|
|
|
15
15
|
maimaidxpath: str
|
|
16
16
|
maimaidxproberproxy: bool = False
|
|
17
17
|
maimaidxaliasproxy: bool = False
|
|
18
|
+
maimaidxaliaspush: bool = True
|
|
18
19
|
saveinmem: Optional[bool] = True
|
|
19
|
-
botName: str = list(driver.config.nickname)[0] if driver.config.nickname else '
|
|
20
|
+
botName: str = list(driver.config.nickname)[0] if driver.config.nickname else 'maimai'
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
maiconfig = get_plugin_config(Config)
|
|
@@ -526,7 +526,7 @@ class GroupAlias:
|
|
|
526
526
|
self.push.enable.append(gid)
|
|
527
527
|
if gid in self.push.disable:
|
|
528
528
|
self.push.disable.remove(gid)
|
|
529
|
-
await writefile(group_alias_file, self.push.model_dump(
|
|
529
|
+
await writefile(group_alias_file, self.push.model_dump())
|
|
530
530
|
return '群别名推送功能已开启'
|
|
531
531
|
|
|
532
532
|
async def off(self, gid: int) -> str:
|
|
@@ -535,13 +535,20 @@ class GroupAlias:
|
|
|
535
535
|
self.push.disable.append(gid)
|
|
536
536
|
if gid in self.push.enable:
|
|
537
537
|
self.push.enable.remove(gid)
|
|
538
|
-
await writefile(group_alias_file, self.push.model_dump(
|
|
538
|
+
await writefile(group_alias_file, self.push.model_dump())
|
|
539
539
|
return '群别名推送功能已关闭'
|
|
540
540
|
|
|
541
|
-
async def alias_global_change(self,
|
|
541
|
+
async def alias_global_change(self, switch: bool, group_list: List[int]):
|
|
542
542
|
"""修改全局开关"""
|
|
543
|
-
|
|
544
|
-
|
|
543
|
+
if switch:
|
|
544
|
+
self.push.disable.clear()
|
|
545
|
+
self.push.enable.clear()
|
|
546
|
+
self.push.enable.extend(group_list)
|
|
547
|
+
else:
|
|
548
|
+
self.push.enable.clear()
|
|
549
|
+
self.push.disable.clear()
|
|
550
|
+
self.push.disable.extend(group_list)
|
|
551
|
+
await writefile(group_alias_file, self.push.model_dump())
|
|
545
552
|
|
|
546
553
|
|
|
547
554
|
alias = GroupAlias()
|
|
@@ -39,7 +39,7 @@ async def draw_music_info(
|
|
|
39
39
|
player = await maiApi.query_user_b50(qqid=qqid)
|
|
40
40
|
else:
|
|
41
41
|
player = user
|
|
42
|
-
if music.basic_info.version
|
|
42
|
+
if music.basic_info.version == list(plate_to_dx_version.values())[-1]:
|
|
43
43
|
bestlist = player.charts.dx
|
|
44
44
|
isfull = bool(len(bestlist) == 15)
|
|
45
45
|
else:
|
|
@@ -379,7 +379,7 @@ def get_rise_score_list(
|
|
|
379
379
|
break
|
|
380
380
|
if not music:
|
|
381
381
|
return music, 0
|
|
382
|
-
new = random.sample(music,
|
|
382
|
+
new = random.sample(music, min(len(music), 5))
|
|
383
383
|
new.sort(key=lambda x: x.song_id, reverse=True)
|
|
384
384
|
return new, ra
|
|
385
385
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nonebot-plugin-maimaidx
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.4
|
|
4
4
|
Summary: maimaidx plugin for nonebot2
|
|
5
5
|
Author-email: Yuri-YuzuChaN <806235364@qq.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -39,12 +39,37 @@ Dynamic: license-file
|
|
|
39
39
|
|
|
40
40
|
## 重要更新
|
|
41
41
|
|
|
42
|
-
**2025-
|
|
42
|
+
**2025-08-16**
|
|
43
43
|
|
|
44
|
-
1.
|
|
44
|
+
1. 修改别名推送机制,请各开发者进行取舍
|
|
45
|
+
|
|
46
|
+
- 更新别名推送设置与指令,新增了 `MAIMAIDXALIASPUSH` 配置项,该设置将替代原先 `group_alias_switch.json` 文件的 `global_switch` 配置项
|
|
47
|
+
- 当设置为`false` 时,不再连接别名推送服务器,如果群组的推送为开启状态,也不再进行推送,**与原先一致**。**申请的别名通过审核了也不再推送**
|
|
48
|
+
|
|
49
|
+
``` ujson
|
|
50
|
+
{
|
|
51
|
+
"enable": [],
|
|
52
|
+
"disable": [88888888],
|
|
53
|
+
"global_switch": false // 该配置项将被代替并删除
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
- 不会接收到别名申请以及别名通过的消息,**如果服务器新增新的别名时无法实时获取最新的别名,仅能手动更新别名库**。
|
|
58
|
+
|
|
59
|
+
2. 指令 `全局开启/关闭别名推送` 的功能将修改为开关全部群组的推送开关。
|
|
60
|
+
3. 新增别名推送服务器代理地址,修改 `.env` 的 `MAIMAIDXALIASPROXY` 配置项即可,~~其实是忘记添加代理地址~~
|
|
61
|
+
|
|
62
|
+
## 温馨提示
|
|
63
|
+
|
|
64
|
+
**首次使用请务必看完 `README.MD` 所有内容**
|
|
65
|
+
|
|
66
|
+
- 不要再问为什么 `资源文件` 的 `plate` 和 `rating` 文件夹是空的或缺少文件
|
|
67
|
+
- 不要再问为什么 `资源文件` 的 `plate` 和 `rating` 文件夹是空的或缺少文件
|
|
68
|
+
- 不要再问为什么 `资源文件` 的 `plate` 和 `rating` 文件夹是空的或缺少文件
|
|
45
69
|
|
|
46
70
|
## 安装
|
|
47
71
|
|
|
72
|
+
|
|
48
73
|
1. 安装 `nonebot-plugin-maimaidx`
|
|
49
74
|
|
|
50
75
|
- 使用 `nb-cli` 安装
|
|
@@ -102,7 +127,13 @@ Dynamic: license-file
|
|
|
102
127
|
MAIMAIDXALIASPROXY=false
|
|
103
128
|
```
|
|
104
129
|
|
|
105
|
-
5.
|
|
130
|
+
5. 可选,是否开启别名推送,不需要请在 `.env` 文件中配置 `MAIMAIDXALIASPUSH` 为 `false`,**注意,该配置为 `false` 时,将不会实时更新别名库,仅会在别名查歌或者跨日更新数据的时候才会更新别名库。如果群组的推送为开启状态,也不再进行推送,推送指令也一并失效**
|
|
131
|
+
|
|
132
|
+
``` dotenv
|
|
133
|
+
MAIMAIDXALIASPUSH=false
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
6. 可选,是否将部分图片在保存在内存中,不需要请在 `.env` 文件中配置 `SAVEINMEM` 为 `false`
|
|
106
137
|
|
|
107
138
|
``` dotenv
|
|
108
139
|
SAVEINMEM=false
|
|
@@ -112,7 +143,7 @@ Dynamic: license-file
|
|
|
112
143
|
> 安装完插件需要使用定数表或完成表指令时,需私聊Bot使用 `更新定数表` 和 `更新完成表` 进行生成
|
|
113
144
|
|
|
114
145
|
> [!NOTE]
|
|
115
|
-
>
|
|
146
|
+
> 插件带有别名更新推送功能,默认开启全部群组推送,不需要请私聊Bot使用 `全局关闭别名推送` 指令关闭所有群组推送。群组需要单独使用请使用指令 `开启别名推送`。
|
|
116
147
|
|
|
117
148
|
## 指令
|
|
118
149
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|