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.
- nonebot_plugin_osubot/api.py +0 -1
- nonebot_plugin_osubot/matcher/guess.py +7 -7
- nonebot_plugin_osubot/schema/score.py +1 -1
- {nonebot_plugin_osubot-6.22.0.dist-info → nonebot_plugin_osubot-6.22.2.dist-info}/METADATA +1 -1
- {nonebot_plugin_osubot-6.22.0.dist-info → nonebot_plugin_osubot-6.22.2.dist-info}/RECORD +6 -6
- {nonebot_plugin_osubot-6.22.0.dist-info → nonebot_plugin_osubot-6.22.2.dist-info}/WHEEL +0 -0
nonebot_plugin_osubot/api.py
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
nonebot_plugin_osubot/__init__.py,sha256=Q-mTTnOIdKiKG6JrVm-kqpPrAhOP9lWyiKHNRqA7gpc,1478
|
|
2
|
-
nonebot_plugin_osubot/api.py,sha256
|
|
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=
|
|
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=
|
|
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.
|
|
409
|
-
nonebot_plugin_osubot-6.22.
|
|
410
|
-
nonebot_plugin_osubot-6.22.
|
|
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,,
|
|
File without changes
|