nonebot-plugin-maimaidx 3.0.6__tar.gz → 3.0.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_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/PKG-INFO +1 -1
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/commands/depend.py +1 -1
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/commands/mai_alias.py +1 -1
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/commands/mai_guess.py +5 -5
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/commands/mai_search.py +1 -1
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/handler.py +1 -1
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/image/song.py +4 -8
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx.egg-info/PKG-INFO +1 -1
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/pyproject.toml +1 -1
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/LICENSE +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/README.md +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/__init__.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/commands/__init__.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/commands/mai_base.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/commands/mai_score.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/commands/mai_table.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/config.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/constants.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/alias_ws_push.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/divingfish/client.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/divingfish/exceptions.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/divingfish/models/__init__.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/divingfish/models/music.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/divingfish/models/score.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/exceptions.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/http.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/lxns/client.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/lxns/exceptions.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/lxns/models/__init__.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/lxns/models/base.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/lxns/models/collection.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/lxns/models/enum.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/lxns/models/music.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/lxns/models/oauth.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/lxns/models/player.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/lxns/models/score.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/yuzuchan/client.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/yuzuchan/exceptions.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/yuzuchan/models/__init__.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/yuzuchan/models/alias.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/yuzuchan/models/enum.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/yuzuchan/models/message.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/clients/yuzuchan/models/status.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/database/qq.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/handler_error.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/image/__init__.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/image/assets.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/image/base.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/image/best50.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/image/chart.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/image/info.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/image/plate_table.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/image/rating_table.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/image/score.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/image/tools.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/image/update_table.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/__init__.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/alias.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/alias_list.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/models/__init__.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/models/alias.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/models/best50.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/models/enum.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/models/guess.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/models/player.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/models/score.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/models/song.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/music_list.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/play_result.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/merge/player.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/service/__init__.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/service/diving_fish.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/service/lxns.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/service/yuzuchan.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/tool.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/utils/calc.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/maimaidxhelp.png +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/resources.py +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx.egg-info/SOURCES.txt +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx.egg-info/dependency_links.txt +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx.egg-info/requires.txt +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx.egg-info/top_level.txt +0 -0
- {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/setup.cfg +0 -0
|
@@ -171,7 +171,7 @@ async def process_regex(
|
|
|
171
171
|
if cmd == "曲师":
|
|
172
172
|
result = mai.total_list.filter(artist=name)
|
|
173
173
|
else:
|
|
174
|
-
result = mai.total_list.filter(charter=name)
|
|
174
|
+
result = mai.total_list.filter(charter=name, all_diff=False)
|
|
175
175
|
case _:
|
|
176
176
|
await matcher.finish("指令错误", reply_message=True)
|
|
177
177
|
|
|
@@ -71,9 +71,9 @@ async def _(event: GroupMessageEvent):
|
|
|
71
71
|
event.group_id not in guess.switch.enable
|
|
72
72
|
or guess._group[gid].end
|
|
73
73
|
):
|
|
74
|
-
|
|
74
|
+
return
|
|
75
75
|
else:
|
|
76
|
-
|
|
76
|
+
return
|
|
77
77
|
guess._group[gid].end = True
|
|
78
78
|
answer = MessageSegment.text("答案是:\n") + await draw_chart_info(
|
|
79
79
|
guess._group[gid].song
|
|
@@ -103,9 +103,9 @@ async def _(event: GroupMessageEvent):
|
|
|
103
103
|
await asyncio.sleep(1)
|
|
104
104
|
if gid in guess._group:
|
|
105
105
|
if gid not in guess.switch.enable or guess._group[gid].end:
|
|
106
|
-
|
|
106
|
+
return
|
|
107
107
|
else:
|
|
108
|
-
|
|
108
|
+
return
|
|
109
109
|
guess._group[gid].end = True
|
|
110
110
|
answer = MessageSegment.text("答案是:\n") + await draw_chart_info(
|
|
111
111
|
guess._group[gid].song
|
|
@@ -118,7 +118,7 @@ async def _(event: GroupMessageEvent):
|
|
|
118
118
|
async def _(event: GroupMessageEvent):
|
|
119
119
|
gid = event.group_id
|
|
120
120
|
if gid not in guess._group:
|
|
121
|
-
|
|
121
|
+
return
|
|
122
122
|
ans = event.get_plaintext().strip()
|
|
123
123
|
if ans.lower() in guess._group[gid].answer:
|
|
124
124
|
guess._group[gid].end = True
|
|
@@ -320,7 +320,7 @@ def draw_rating_table_text(rating: str) -> MessageSegment:
|
|
|
320
320
|
return MessageSegment.image(image)
|
|
321
321
|
|
|
322
322
|
|
|
323
|
-
|
|
323
|
+
def draw_song_list(songs: list[Song], page: int) -> MessageSegment:
|
|
324
324
|
"""
|
|
325
325
|
绘制曲目列表
|
|
326
326
|
|
|
@@ -43,9 +43,7 @@ def song_list(songs: list[Song], page: int) -> str:
|
|
|
43
43
|
pattern = assets._pattern_bg.resize((1000, 256))
|
|
44
44
|
for h in range((height // 256) + 1):
|
|
45
45
|
_im.alpha_composite(pattern, (0, (256 + 6) * h))
|
|
46
|
-
_im.alpha_composite(
|
|
47
|
-
assets._rainbow_bg.resize((550, 288)), (225, height - 435)
|
|
48
|
-
)
|
|
46
|
+
_im.alpha_composite(assets._rainbow_bg.resize((550, 288)), (225, height - 435))
|
|
49
47
|
_im.alpha_composite(
|
|
50
48
|
assets._rainbow_bottom_bg.resize((786, 164)),
|
|
51
49
|
(107, height - 260),
|
|
@@ -86,9 +84,7 @@ def song_list(songs: list[Song], page: int) -> str:
|
|
|
86
84
|
im.alpha_composite(cover, (x + 10, y + 10))
|
|
87
85
|
im.alpha_composite(version, (x + 315, y - 30))
|
|
88
86
|
im.alpha_composite(
|
|
89
|
-
assets._sl_diff_utg
|
|
90
|
-
if song.song_id > 100000
|
|
91
|
-
else assets._sl_diff_bg,
|
|
87
|
+
assets._sl_diff_utg if song.song_id > 100000 else assets._sl_diff_bg,
|
|
92
88
|
(x + 100, y + 95),
|
|
93
89
|
)
|
|
94
90
|
im.alpha_composite(type_, (x + 50, y + 75))
|
|
@@ -151,8 +147,8 @@ def song_list(songs: list[Song], page: int) -> str:
|
|
|
151
147
|
)
|
|
152
148
|
fot.draw(
|
|
153
149
|
500,
|
|
154
|
-
height -
|
|
155
|
-
|
|
150
|
+
height - 30,
|
|
151
|
+
18,
|
|
156
152
|
f"Designed by Yuri-YuzuChaN & BlueDeer233. Generated by {maiconfig.bot_name} BOT",
|
|
157
153
|
AssetsImage._default_text_color,
|
|
158
154
|
"mm",
|
|
File without changes
|
|
File without changes
|
{nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/config.py
RENAMED
|
File without changes
|
{nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/constants.py
RENAMED
|
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
|
|
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
|
|
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
|
{nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/core/tool.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.7}/nonebot_plugin_maimaidx/resources.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|