nonebot-plugin-osubot 6.22.0__py3-none-any.whl → 6.22.2__py3-none-any.whl

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.

Potentially problematic release.


This version of nonebot-plugin-osubot might be problematic. Click here for more details.

@@ -200,7 +200,6 @@ async def get_user_scores(
200
200
  ),
201
201
  beatmap=UnifiedBeatmap(
202
202
  id=i.beatmap.id,
203
- user_id=i.beatmap.user_id,
204
203
  set_id=i.beatmap.set_id,
205
204
  artist=i.beatmap.artist,
206
205
  title=i.beatmap.title,
@@ -59,7 +59,7 @@ async def get_random_beatmap_set(binded_id, group_id) -> (UnifiedScore, str):
59
59
  continue
60
60
  bp_info = await get_user_scores(user.osu_id, NGM[str(user.osu_mode)], "best")
61
61
  # 过滤掉已猜过的歌曲
62
- unguessed_scores = [(score, user.osu_name) for score in bp_info if score.beatmapset.id not in guessed_songs]
62
+ unguessed_scores = [(score, user.osu_name) for score in bp_info if score.beatmap.id not in guessed_songs]
63
63
  available_scores.extend(unguessed_scores)
64
64
  except NetworkError:
65
65
  continue # 跳过网络错误的用户,继续尝试其他用户
@@ -100,7 +100,7 @@ async def _(
100
100
  await UniMessage.text(f"在查找用户:{state['username']} {NGM[state['mode']]}模式bp时 {str(e)}").finish(
101
101
  reply_to=True
102
102
  )
103
- filtered_bp_ls = [i for i in bp_ls if i.beatmapset.id not in guess_song_cache[group_id]]
103
+ filtered_bp_ls = [i for i in bp_ls if i.beatmap.id not in guess_song_cache[group_id]]
104
104
  if not filtered_bp_ls:
105
105
  await UniMessage.text(state["username"] + "的bp已经被你们猜过一遍了 -_-").finish(reply_to=True)
106
106
  selected_score = random.choice(filtered_bp_ls)
@@ -113,7 +113,7 @@ async def _(
113
113
  await UniMessage.text(f"在查找用户:{state['username']} {NGM[state['mode']]}模式bp时 {str(e)}").finish(
114
114
  reply_to=True
115
115
  )
116
- filtered_bp_ls = [i for i in bp_ls if i.beatmapset.id not in guess_song_cache[group_id]]
116
+ filtered_bp_ls = [i for i in bp_ls if i.beatmap.id not in guess_song_cache[group_id]]
117
117
  if not filtered_bp_ls:
118
118
  await UniMessage.text(state["username"] + "的bp已经被你们猜过一遍了 -_-").finish(reply_to=True)
119
119
  selected_score = random.choice(filtered_bp_ls)
@@ -363,7 +363,7 @@ async def _(
363
363
  await UniMessage.text(f"在查找用户:{state['username']} {NGM[state['mode']]}模式bp时 {str(e)}").finish(
364
364
  reply_to=True
365
365
  )
366
- filtered_bp_ls = [i for i in bp_ls if i.beatmapset.id not in guess_song_cache[session_id]]
366
+ filtered_bp_ls = [i for i in bp_ls if i.beatmap.id not in guess_song_cache[session_id]]
367
367
  if not filtered_bp_ls:
368
368
  await UniMessage.text(state["username"] + "的bp已经被你们猜过一遍了 -_-").finish(reply_to=True)
369
369
  selected_score = random.choice(filtered_bp_ls)
@@ -376,7 +376,7 @@ async def _(
376
376
  await UniMessage.text(f"在查找用户:{state['username']} {NGM[state['mode']]}模式bp时 {str(e)}").finish(
377
377
  reply_to=True
378
378
  )
379
- filtered_bp_ls = [i for i in bp_ls if i.beatmapset.id not in guess_song_cache[session_id]]
379
+ filtered_bp_ls = [i for i in bp_ls if i.beatmap.id not in guess_song_cache[session_id]]
380
380
  if not filtered_bp_ls:
381
381
  await UniMessage.text(state["username"] + "的bp已经被你们猜过一遍了 -_-").finish(reply_to=True)
382
382
  selected_score = random.choice(filtered_bp_ls)
@@ -442,7 +442,7 @@ async def _(
442
442
  await UniMessage.text(f"在查找用户:{state['username']} {NGM[state['mode']]}模式bp时 {str(e)}").finish(
443
443
  reply_to=True
444
444
  )
445
- filtered_bp_ls = [i for i in bp_ls if i.beatmapset.id not in guess_song_cache[session_id]]
445
+ filtered_bp_ls = [i for i in bp_ls if i.beatmap.id not in guess_song_cache[session_id]]
446
446
  if not filtered_bp_ls:
447
447
  await UniMessage.text(state["username"] + "的bp已经被你们猜过一遍了 -_-").finish(reply_to=True)
448
448
  selected_score = random.choice(filtered_bp_ls)
@@ -455,7 +455,7 @@ async def _(
455
455
  await UniMessage.text(f"在查找用户:{state['username']} {NGM[state['mode']]}模式bp时 {str(e)}").finish(
456
456
  reply_to=True
457
457
  )
458
- filtered_bp_ls = [i for i in bp_ls if i.beatmapset.id not in guess_song_cache[session_id]]
458
+ filtered_bp_ls = [i for i in bp_ls if i.beatmap.id not in guess_song_cache[session_id]]
459
459
  if not filtered_bp_ls:
460
460
  await UniMessage.text(state["username"] + "的bp已经被你们猜过一遍了 -_-").finish(reply_to=True)
461
461
  selected_score = random.choice(filtered_bp_ls)
@@ -113,7 +113,7 @@ class UnifiedBeatmap(Base):
113
113
  ar: float
114
114
  hp: float
115
115
  stars: float
116
- user_id: int
116
+ user_id: Optional[int] = None
117
117
 
118
118
 
119
119
  class UnifiedScore(Base):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nonebot-plugin-osubot
3
- Version: 6.22.0
3
+ Version: 6.22.2
4
4
  Summary: OSUbot in NoneBot2
5
5
  License: AGPL-3.0
6
6
  Author-email: yaowan233 <572473053@qq.com>
@@ -1,5 +1,5 @@
1
1
  nonebot_plugin_osubot/__init__.py,sha256=Q-mTTnOIdKiKG6JrVm-kqpPrAhOP9lWyiKHNRqA7gpc,1478
2
- nonebot_plugin_osubot/api.py,sha256=-KTefbeRJJwXD0I2hywJfD3ogpLyrrphJoZGoru_3U4,16410
2
+ nonebot_plugin_osubot/api.py,sha256=0o6Gp_4YzVtYDDRJYoIl4yTW8gy4eSY0LY8COkzkOBo,16363
3
3
  nonebot_plugin_osubot/beatmap_stats_moder.py,sha256=mNNTufc-gvO4NdYa3TnealSZI4-LBoiTlb599SeLBck,2915
4
4
  nonebot_plugin_osubot/config.py,sha256=Ub2s5Ny09-d1ZwT6x8cirB6zWy0brtO-oZV3W0qEM5Q,311
5
5
  nonebot_plugin_osubot/database/__init__.py,sha256=7CDo9xU_DGLQ6uTj_mU_Px92phg_DMU5mP6WvgOxFLY,101
@@ -61,7 +61,7 @@ nonebot_plugin_osubot/matcher/bind.py,sha256=QQJc2S7XFo5tu4CPloIET6fKaeiQixgb8M7
61
61
  nonebot_plugin_osubot/matcher/bp.py,sha256=GidJfuZ9lJ7LwMq126DDOwMksNUOz4Bkab83OlKg8t8,3983
62
62
  nonebot_plugin_osubot/matcher/bp_analyze.py,sha256=L2ccAi7TQvpD036DyA27D8wuiqBBkcfLT0ldk_Apv8w,3820
63
63
  nonebot_plugin_osubot/matcher/getbg.py,sha256=Ar2yIST556MYRxzuXCLSDAMAmESRENN1fCty-kdH7PI,699
64
- nonebot_plugin_osubot/matcher/guess.py,sha256=QmD-a88pnPfSSBAvSpD2tlHDGMRpYWqtxfNuLsHuBYM,24144
64
+ nonebot_plugin_osubot/matcher/guess.py,sha256=_1J8QyV8f1p8VA0K0gZGpbVueBQcogKd2TJyjzWUHcU,24123
65
65
  nonebot_plugin_osubot/matcher/history.py,sha256=ZYkVJHdXuVJmhovRhwxFdqNp0o2uJJOACAZhhutyS3w,1577
66
66
  nonebot_plugin_osubot/matcher/info.py,sha256=8CJHTOMTx_nzJ4ZwXo6ZfBwCuO3DtLprRX7jnMtPilk,858
67
67
  nonebot_plugin_osubot/matcher/map.py,sha256=sFpOoFv63y-NOkCJhE6aW0DRYDl_8SoQOPsdq50QxT0,1404
@@ -402,9 +402,9 @@ nonebot_plugin_osubot/schema/beatmap.py,sha256=UnobfZEHq1V2HG-A4j3BECubO-dB1JzTM
402
402
  nonebot_plugin_osubot/schema/match.py,sha256=lR3pGNVR9K_5GZAdOLG6Ki-W3fwJvgMlNhYOzKNE3lg,494
403
403
  nonebot_plugin_osubot/schema/ppysb/__init__.py,sha256=JK2Z4n44gUJPVKdETMJYJ5uIw-4a8T50y6j5n-YrlYM,1375
404
404
  nonebot_plugin_osubot/schema/sayo_beatmap.py,sha256=lS1PQZ-HvHl0VhkzlI0-pNLeJrLYWVqmKAo6xZr5I2U,959
405
- nonebot_plugin_osubot/schema/score.py,sha256=Qtvs5Hfvw5m2b00e8ZjrcrLGDyL4lqDspRwrkORY-xU,3172
405
+ nonebot_plugin_osubot/schema/score.py,sha256=uqIKLKgnvnQKuJBFcmmioKeiU4ThG6uKsxMFHRov_dA,3189
406
406
  nonebot_plugin_osubot/schema/user.py,sha256=sxNmqymG_kIVuGuzfchSv9UML6NPG70cqo2_h5xDIpM,2250
407
407
  nonebot_plugin_osubot/utils/__init__.py,sha256=pyv8XxBcCOeQVDj1E4dgvktzcefgQXfKBlarsYGx1sg,815
408
- nonebot_plugin_osubot-6.22.0.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
409
- nonebot_plugin_osubot-6.22.0.dist-info/METADATA,sha256=VsdL1bH40h2QTlFxd3MxYe48g5QgvzFSClziBS9u5EA,4476
410
- nonebot_plugin_osubot-6.22.0.dist-info/RECORD,,
408
+ nonebot_plugin_osubot-6.22.2.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
409
+ nonebot_plugin_osubot-6.22.2.dist-info/METADATA,sha256=r8dWpeauzF1KpCvDzmDWgZn7-ZogwLblTfKIn8r6jng,4476
410
+ nonebot_plugin_osubot-6.22.2.dist-info/RECORD,,