nonebot-plugin-maimaidx 3.0.6__tar.gz → 3.0.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.
Files changed (83) hide show
  1. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/PKG-INFO +1 -1
  2. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/commands/depend.py +1 -1
  3. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/commands/mai_alias.py +1 -1
  4. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/commands/mai_guess.py +5 -5
  5. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/commands/mai_search.py +2 -2
  6. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/handler.py +1 -1
  7. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/image/song.py +4 -8
  8. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx.egg-info/PKG-INFO +1 -1
  9. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/pyproject.toml +1 -1
  10. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/LICENSE +0 -0
  11. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/README.md +0 -0
  12. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/__init__.py +0 -0
  13. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/commands/__init__.py +0 -0
  14. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/commands/mai_base.py +0 -0
  15. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/commands/mai_score.py +0 -0
  16. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/commands/mai_table.py +0 -0
  17. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/config.py +0 -0
  18. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/constants.py +0 -0
  19. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/alias_ws_push.py +0 -0
  20. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/divingfish/client.py +0 -0
  21. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/divingfish/exceptions.py +0 -0
  22. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/divingfish/models/__init__.py +0 -0
  23. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/divingfish/models/music.py +0 -0
  24. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/divingfish/models/score.py +0 -0
  25. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/exceptions.py +0 -0
  26. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/http.py +0 -0
  27. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/lxns/client.py +0 -0
  28. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/lxns/exceptions.py +0 -0
  29. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/lxns/models/__init__.py +0 -0
  30. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/lxns/models/base.py +0 -0
  31. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/lxns/models/collection.py +0 -0
  32. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/lxns/models/enum.py +0 -0
  33. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/lxns/models/music.py +0 -0
  34. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/lxns/models/oauth.py +0 -0
  35. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/lxns/models/player.py +0 -0
  36. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/lxns/models/score.py +0 -0
  37. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/yuzuchan/client.py +0 -0
  38. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/yuzuchan/exceptions.py +0 -0
  39. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/yuzuchan/models/__init__.py +0 -0
  40. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/yuzuchan/models/alias.py +0 -0
  41. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/yuzuchan/models/enum.py +0 -0
  42. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/yuzuchan/models/message.py +0 -0
  43. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/clients/yuzuchan/models/status.py +0 -0
  44. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/database/qq.py +0 -0
  45. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/handler_error.py +0 -0
  46. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/image/__init__.py +0 -0
  47. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/image/assets.py +0 -0
  48. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/image/base.py +0 -0
  49. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/image/best50.py +0 -0
  50. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/image/chart.py +0 -0
  51. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/image/info.py +0 -0
  52. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/image/plate_table.py +0 -0
  53. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/image/rating_table.py +0 -0
  54. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/image/score.py +0 -0
  55. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/image/tools.py +0 -0
  56. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/image/update_table.py +0 -0
  57. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/__init__.py +0 -0
  58. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/alias.py +0 -0
  59. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/alias_list.py +0 -0
  60. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/models/__init__.py +0 -0
  61. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/models/alias.py +0 -0
  62. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/models/best50.py +0 -0
  63. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/models/enum.py +0 -0
  64. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/models/guess.py +0 -0
  65. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/models/player.py +0 -0
  66. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/models/score.py +0 -0
  67. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/models/song.py +0 -0
  68. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/music_list.py +0 -0
  69. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/play_result.py +0 -0
  70. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/merge/player.py +0 -0
  71. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/service/__init__.py +0 -0
  72. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/service/diving_fish.py +0 -0
  73. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/service/lxns.py +0 -0
  74. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/service/yuzuchan.py +0 -0
  75. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/tool.py +0 -0
  76. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/core/utils/calc.py +0 -0
  77. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/maimaidxhelp.png +0 -0
  78. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx/resources.py +0 -0
  79. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx.egg-info/SOURCES.txt +0 -0
  80. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx.egg-info/dependency_links.txt +0 -0
  81. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx.egg-info/requires.txt +0 -0
  82. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/nonebot_plugin_maimaidx.egg-info/top_level.txt +0 -0
  83. {nonebot_plugin_maimaidx-3.0.6 → nonebot_plugin_maimaidx-3.0.8}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-maimaidx
3
- Version: 3.0.6
3
+ Version: 3.0.8
4
4
  Summary: maimaidx plugin for nonebot2
5
5
  Author-email: Yuri-YuzuChaN <806235364@qq.com>
6
6
  License-Expression: MIT
@@ -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
 
@@ -232,4 +232,4 @@ async def _(bot: Bot, match: Match[str] = RegexMatched()):
232
232
  await alias.alias_global_change(False, group_id)
233
233
  await alias_global_switch.finish("已全局关闭maimai别名推送")
234
234
  else:
235
- await alias_global_switch.finish()
235
+ return
@@ -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
- await guess_music_start.finish()
74
+ return
75
75
  else:
76
- await guess_music_start.finish()
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
- await guess_music_pic.finish()
106
+ return
107
107
  else:
108
- await guess_music_pic.finish()
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
- await guess_music_solve.finish()
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
@@ -40,7 +40,7 @@ async def _(
40
40
  r += f"{f'「{song.song_id}」':<7} {song.song_name}\n"
41
41
  image = MessageSegment.text(r)
42
42
  else:
43
- image = await draw_song_list(songs, page)
43
+ image = draw_song_list(songs, page)
44
44
  await search.send(image, reply_message=True)
45
45
 
46
46
 
@@ -123,7 +123,7 @@ async def _(
123
123
  msg = (
124
124
  f"未找到别名为「{name}」的歌曲,但找到「{len(result)}」个相似标题的曲目:\n"
125
125
  )
126
- msg += await draw_song_list(result, int(page))
126
+ msg += draw_song_list(result, int(page))
127
127
  await search_alias_song.finish(msg, reply_message=True)
128
128
 
129
129
 
@@ -320,7 +320,7 @@ def draw_rating_table_text(rating: str) -> MessageSegment:
320
320
  return MessageSegment.image(image)
321
321
 
322
322
 
323
- async def draw_song_list(songs: list[Song], page: int) -> MessageSegment:
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 - 50,
155
- 20,
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",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-maimaidx
3
- Version: 3.0.6
3
+ Version: 3.0.8
4
4
  Summary: maimaidx plugin for nonebot2
5
5
  Author-email: Yuri-YuzuChaN <806235364@qq.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nonebot-plugin-maimaidx"
3
- version = "3.0.6"
3
+ version = "3.0.8"
4
4
  authors = [
5
5
  { name="Yuri-YuzuChaN", email="806235364@qq.com" },
6
6
  ]