nonebot-plugin-osubot 6.22.2__py3-none-any.whl → 6.23.0__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 +1 -0
- nonebot_plugin_osubot/data/osu/1849145.osz +0 -0
- nonebot_plugin_osubot/data/osu/1849145.zip +0 -0
- nonebot_plugin_osubot/draw/bp.py +0 -4
- nonebot_plugin_osubot/draw/score.py +0 -8
- nonebot_plugin_osubot/draw/templates/t.html +58 -0
- nonebot_plugin_osubot/matcher/guess.py +7 -7
- nonebot_plugin_osubot/matcher/pr.py +0 -4
- nonebot_plugin_osubot/schema/score.py +1 -0
- {nonebot_plugin_osubot-6.22.2.dist-info → nonebot_plugin_osubot-6.23.0.dist-info}/METADATA +1 -1
- {nonebot_plugin_osubot-6.22.2.dist-info → nonebot_plugin_osubot-6.23.0.dist-info}/RECORD +12 -9
- {nonebot_plugin_osubot-6.22.2.dist-info → nonebot_plugin_osubot-6.23.0.dist-info}/WHEEL +0 -0
nonebot_plugin_osubot/api.py
CHANGED
|
Binary file
|
|
Binary file
|
nonebot_plugin_osubot/draw/bp.py
CHANGED
|
@@ -29,8 +29,6 @@ async def draw_bp(
|
|
|
29
29
|
source: str,
|
|
30
30
|
) -> BytesIO:
|
|
31
31
|
scores = await get_user_scores(uid, mode, "best", source=source, legacy_only=not is_lazer)
|
|
32
|
-
if not is_lazer:
|
|
33
|
-
scores = [i for i in scores if any(mod.acronym == "CL" for mod in i.mods)]
|
|
34
32
|
if mods:
|
|
35
33
|
mods_ls = get_mods_list(scores, mods)
|
|
36
34
|
if low_bound > len(mods_ls):
|
|
@@ -50,8 +48,6 @@ async def draw_bp(
|
|
|
50
48
|
# 判断是否开启lazer模式
|
|
51
49
|
if is_lazer:
|
|
52
50
|
score_info.legacy_total_score = score_info.total_score
|
|
53
|
-
if not is_lazer and Mod(acronym="CL") in score_info.mods:
|
|
54
|
-
score_info.mods.remove(Mod(acronym="CL"))
|
|
55
51
|
if score_info.ruleset_id == 3 and not is_lazer:
|
|
56
52
|
score_info.accuracy = cal_legacy_acc(score_info.statistics)
|
|
57
53
|
if not is_lazer:
|
|
@@ -79,8 +79,6 @@ async def draw_score(
|
|
|
79
79
|
scores = await get_user_scores(uid, mode, "recent", source=source, legacy_only=not is_lazer, limit=best)
|
|
80
80
|
if not scores:
|
|
81
81
|
raise NetworkError("未查询到游玩记录")
|
|
82
|
-
if not is_lazer:
|
|
83
|
-
scores = [i for i in scores if Mod(acronym="CL") in i.mods]
|
|
84
82
|
if project in ("recent", "pr"):
|
|
85
83
|
if len(scores) < best:
|
|
86
84
|
raise NetworkError("未查询到游玩记录")
|
|
@@ -149,10 +147,6 @@ async def get_score_data(
|
|
|
149
147
|
]
|
|
150
148
|
else:
|
|
151
149
|
score_ls = await get_ppysb_map_scores(map_json["checksum"], uid, mode)
|
|
152
|
-
if not is_lazer:
|
|
153
|
-
score_ls = [i for i in score_ls if Mod(acronym="CL") in i.mods]
|
|
154
|
-
for i in score_ls:
|
|
155
|
-
i.mods.remove(Mod(acronym="CL"))
|
|
156
150
|
if not score_ls:
|
|
157
151
|
raise NetworkError("未查询到游玩记录")
|
|
158
152
|
if mods:
|
|
@@ -804,8 +798,6 @@ def cal_legacy_rank(score_info: UnifiedScore, is_hidden: bool):
|
|
|
804
798
|
def cal_score_info(is_lazer: bool, score_info: UnifiedScore) -> UnifiedScore:
|
|
805
799
|
if is_lazer:
|
|
806
800
|
score_info.legacy_total_score = score_info.total_score
|
|
807
|
-
if not is_lazer and Mod(acronym="CL") in score_info.mods:
|
|
808
|
-
score_info.mods = [i for i in score_info.mods if i.acronym != "CL"]
|
|
809
801
|
if score_info.ruleset_id == 3 and not is_lazer:
|
|
810
802
|
score_info.accuracy = cal_legacy_acc(score_info.statistics)
|
|
811
803
|
if not is_lazer:
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<head>
|
|
2
|
+
<meta charset="UTF-8">
|
|
3
|
+
<title>Awesome-pyecharts</title>
|
|
4
|
+
<script type="text/javascript" src="./echarts.min.js"></script>
|
|
5
|
+
</head>
|
|
6
|
+
<body >
|
|
7
|
+
<div id="1" class="chart-container" style="width:900px; height:500px; "></div>
|
|
8
|
+
<script>
|
|
9
|
+
const chart = echarts.init(
|
|
10
|
+
document.getElementById('1'), 'white', {renderer: 'canvas'}
|
|
11
|
+
);
|
|
12
|
+
const option = {
|
|
13
|
+
"animation": false,
|
|
14
|
+
title: {
|
|
15
|
+
text: 'title',
|
|
16
|
+
left: 'center' // 标题水平居中
|
|
17
|
+
},
|
|
18
|
+
xAxis: {
|
|
19
|
+
type: 'category',
|
|
20
|
+
data: ['2023-09-10', '2023-09-11', '2023-09-12', '2023-09-13', '2023-09-14', '2023-09-15', '2023-09-16', '2023-09-17', '2023-09-18', '2023-09-19', '2023-09-20', '2023-09-21', '2023-09-22', '2023-09-23', '2023-09-24', '2023-09-25', '2023-09-26', '2023-09-27', '2023-09-28', '2023-09-29', '2023-09-30', '2023-10-01', '2023-10-02', '2023-10-03', '2023-10-04', '2023-10-05', '2023-10-06', '2023-10-07', '2023-10-08', '2023-10-09', '2023-10-10', '2023-10-11', '2023-10-12', '2023-10-13', '2023-10-14', '2023-10-15', '2023-10-16', '2023-10-17', '2023-10-18', '2023-10-19', '2023-10-20', '2023-10-21', '2023-10-22', '2023-10-23', '2023-10-24', '2023-10-25', '2023-10-26', '2023-11-04', '2023-11-05', '2023-11-06', '2023-11-07', '2023-11-08', '2023-11-09', '2023-11-10', '2023-11-11', '2023-11-14', '2023-11-15', '2023-11-16', '2023-11-17', '2023-11-18', '2023-11-19', '2023-11-21', '2023-11-22', '2023-11-23', '2023-11-24', '2023-11-25', '2023-11-26', '2023-11-27', '2023-11-28', '2023-11-29', '2023-11-30', '2023-12-01', '2023-12-02', '2023-12-03', '2023-12-04', '2023-12-05', '2023-12-06', '2023-12-07', '2023-12-08', '2023-12-10', '2023-12-11', '2023-12-13', '2023-12-14', '2023-12-15', '2023-12-16', '2023-12-17', '2023-12-18', '2023-12-19', '2023-12-20', '2023-12-21', '2023-12-22', '2023-12-23', '2023-12-24', '2023-12-25', '2023-12-26', '2023-12-27', '2023-12-28', '2023-12-29', '2023-12-30', '2023-12-31', '2024-01-02', '2024-01-03', '2024-01-04', '2024-01-05', '2024-01-06', '2024-01-07', '2024-01-08', '2024-01-09', '2024-01-10', '2024-01-12', '2024-01-13', '2024-01-14', '2024-01-15', '2024-01-16', '2024-01-17', '2024-01-18', '2024-01-19', '2024-01-20', '2024-01-21', '2024-01-23', '2024-01-24', '2024-01-25', '2024-01-26', '2024-01-27', '2024-01-28', '2024-01-29', '2024-01-30', '2024-01-31', '2024-02-01', '2024-02-02', '2024-02-03', '2024-02-04', '2024-02-05', '2024-02-06', '2024-02-07', '2024-02-08', '2024-02-09', '2024-02-10', '2024-02-11', '2024-02-12', '2024-02-13', '2024-02-14', '2024-02-15', '2024-02-16', '2024-02-17', '2024-02-18', '2024-02-19', '2024-02-20', '2024-02-21', '2024-02-22', '2024-02-23', '2024-02-24', '2024-02-25', '2024-02-26', '2024-02-27', '2024-02-28', '2024-03-01', '2024-03-03', '2024-03-03', '2024-03-04', '2024-03-05', '2024-03-06', '2024-03-07', '2024-03-08', '2024-03-09', '2024-03-10', '2024-03-11', '2024-03-12', '2024-03-13', '2024-03-14', '2024-03-15', '2024-03-16', '2024-03-17', '2024-03-18', '2024-03-19', '2024-03-20', '2024-03-21', '2024-03-22', '2024-03-23', '2024-03-24', '2024-03-25', '2024-03-26', '2024-03-27', '2024-03-28', '2024-03-29', '2024-03-30', '2024-03-31', '2024-04-01', '2024-04-02', '2024-04-03', '2024-04-04', '2024-04-05', '2024-04-06', '2024-04-07', '2024-04-08', '2024-04-09', '2024-04-10', '2024-04-11', '2024-04-12', '2024-04-13', '2024-04-14', '2024-04-15', '2024-04-17', '2024-04-18', '2024-04-19', '2024-04-20', '2024-04-21', '2024-04-22', '2024-04-23', '2024-04-25', '2024-04-26', '2024-04-27', '2024-04-28', '2024-04-29', '2024-04-30', '2024-05-01', '2024-05-02', '2024-05-03', '2024-05-04', '2024-05-05', '2024-05-06', '2024-05-07', '2024-05-08', '2024-05-09', '2024-05-10', '2024-05-11', '2024-05-12', '2024-05-13', '2024-05-14', '2024-05-15', '2024-05-16', '2024-05-17', '2024-05-18', '2024-05-19', '2024-05-20', '2024-05-21', '2024-05-22', '2024-05-23', '2024-05-24', '2024-05-25', '2024-05-26', '2024-05-27', '2024-05-28', '2024-05-29', '2024-06-08', '2024-06-09', '2024-06-10', '2024-06-11', '2024-06-12', '2024-06-13', '2024-06-14', '2024-06-15', '2024-06-16', '2024-06-17', '2024-06-18', '2024-06-19', '2024-06-20', '2024-06-21', '2024-06-22', '2024-06-23', '2024-06-24', '2024-06-25', '2024-06-26', '2024-06-27', '2024-06-28', '2024-06-29', '2024-06-30', '2024-07-01', '2024-07-02', '2024-07-03', '2024-07-04', '2024-07-05', '2024-07-06', '2024-07-07', '2024-07-08', '2024-07-09', '2024-07-10', '2024-07-11', '2024-07-12', '2024-07-13', '2024-07-14', '2024-07-15', '2024-07-16', '2024-07-17', '2024-07-18', '2024-07-19', '2024-07-20', '2024-07-21', '2024-07-22', '2024-07-23', '2024-07-24', '2024-07-25', '2024-07-26', '2024-07-27', '2024-07-28', '2024-07-29', '2024-07-30', '2024-07-31', '2024-08-01', '2024-08-02', '2024-08-03', '2024-08-04', '2024-08-05', '2024-08-06', '2024-08-07', '2024-08-08', '2024-08-09', '2024-08-10', '2024-08-11', '2024-08-12', '2024-08-13', '2024-08-14', '2024-08-15', '2024-08-16', '2024-08-17', '2024-08-18', '2024-08-19', '2024-08-20', '2024-08-21', '2024-08-23', '2024-08-25', '2024-08-26', '2024-08-27', '2024-08-28', '2024-08-29', '2024-08-30']
|
|
21
|
+
},
|
|
22
|
+
yAxis: [{
|
|
23
|
+
type: 'value',
|
|
24
|
+
scale: true,
|
|
25
|
+
name: 'pp'
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
type: 'value',
|
|
29
|
+
scale: true,
|
|
30
|
+
alignTicks: true,
|
|
31
|
+
inverse: true,
|
|
32
|
+
nameLocation: 'start',
|
|
33
|
+
name: 'rank'
|
|
34
|
+
}],
|
|
35
|
+
legend: {
|
|
36
|
+
top: 30,
|
|
37
|
+
left: 'center',
|
|
38
|
+
data: ['pp', 'rank']
|
|
39
|
+
},
|
|
40
|
+
series: [
|
|
41
|
+
{
|
|
42
|
+
name: 'pp',
|
|
43
|
+
type: 'line',
|
|
44
|
+
data: [35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 35.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 63.0, 65.0, 65.0, 65.0, 65.0, 65.0, 65.0, 65.0, 65.0, 217.0, 279.0, 502.0, 502.0, 502.0, 502.0, 502.0, 594.0, 645.0, 675.0, 711.0, 711.0, 734.0, 734.0, 760.0, 760.0, 760.0, 760.0, 760.0, 760.0, 760.0, 760.0, 760.0, 760.0, 760.0, 760.0, 760.0, 760.0, 760.0, 773.0, 773.0, 773.0, 780.0, 780.0, 780.0, 780.0, 780.0, 786.0, 786.0, 786.0, 786.0, 786.0, 846.0, 846.0, 846.0, 846.0, 846.0, 846.0, 846.0, 846.0, 846.0, 846.0, 846.0, 884.0, 884.0, 884.0, 884.0, 884.0, 884.0, 884.0, 884.0, 884.0, 884.0, 901.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0, 918.0],
|
|
45
|
+
yAxisIndex: 0,
|
|
46
|
+
connectNulls: true
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'rank',
|
|
50
|
+
type: 'line',
|
|
51
|
+
data: [597621, 598017, 598412, 598767, 599153, 599495, 599903, 600412, 600872, 601316, 601679, 602046, 602400, 602790, 603231, 603760, 604147, 604497, 604820, 605196, 605577, 606022, 606488, 606853, 607191, 607557, 607913, 608261, 608681, 609189, 609639, 610012, 610323, 610642, 610970, 611454, 611952, 612305, 612572, 612889, 613222, 613566, 614023, 614580, 614970, 615316, 615640, 618935, 619325, 619730, 620037, 620351, 620701, 621013, 621284, 622414, 622694, 622977, 623326, 623619, 623980, 624757, 625055, 625356, 625664, 625971, 626366, 626791, 627138, 627423, 627712, 628022, 628337, 628720, 629199, 629589, 629898, 630255, 630600, 631390, 631936, 633019, 633590, 634155, 634735, 635357, 636031, 636623, 637181, 637746, 638261, 638809, 638605, 639212, 639770, 640255, 640827, 641344, 641896, 642430, 643496, 643933, 644375, 644850, 644850, 645880, 646435, 646927, 647343, 648158, 648600, 649131, 649686, 650155, 650600, 651045, 651475, 651957, 652499, 653539, 653971, 654374, 654812, 655251, 655682, 656172, 656601, 657000, 657822, 658591, 659287, 660112, 660941, 661668, 662235, 662789, 663393, 664001, 664666, 665370, 666053, 666615, 667178, 667714, 668259, 668887, 669565, 670199, 670736, 671250, 671776, 672296, 672932, 672932, 674074, 674503, 675478, 676604, 676604, 677239, 677775, 678202, 678720, 679203, 679741, 680402, 681106, 681673, 682155, 682631, 683145, 683670, 684280, 684917, 685457, 685457, 701150, 701651, 702135, 702795, 703522, 704087, 704631, 705183, 705739, 706353, 707034, 707670, 708247, 708749, 709234, 709779, 710305, 710950, 711583, 712212, 712710, 713224, 713735, 714246, 714922, 715662, 716697, 717180, 717673, 718171, 718757, 719415, 719919, 720831, 721296, 721774, 722332, 722973, 723572, 724099, 724663, 725187, 725693, 726334, 726995, 727524, 722529, 723092, 723640, 724227, 724924, 725686, 726264, 726868, 517992, 473344, 364793, 365036, 365375, 365644, 365934, 333701, 317654, 309231, 299124, 299380, 293440, 293604, 288836, 289058, 289313, 289520, 289718, 289897, 290101, 290283, 290491, 290714, 290904, 291090, 291279, 291481, 291701, 288439, 288649, 288876, 287321, 287500, 287716, 287924, 288139, 286780, 286979, 287181, 287349, 287536, 272991, 273177, 273370, 273535, 273713, 273880, 274026, 274197, 274394, 274601, 274776, 266252, 266401, 266549, 266721, 266909, 267071, 267252, 267425, 267610, 267803, 264244, 260838, 261041, 261208, 261373, 261565, 261748, 261950, 262150, 262353, 262457, 262622, 262785, 262954, 263153, 263354, 263533, 263696, 263858, 264027, 264196, 264371, 264534, 264743, 264946, 265108, 265452, 265827, 266022, 266220, 266373, 266559, 266726],
|
|
52
|
+
yAxisIndex: 1,
|
|
53
|
+
connectNulls: true
|
|
54
|
+
}
|
|
55
|
+
]};
|
|
56
|
+
chart.setOption(option);
|
|
57
|
+
</script>
|
|
58
|
+
</body>
|
|
@@ -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.beatmapset.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.beatmapset.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.beatmapset.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.beatmapset.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.beatmapset.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.beatmapset.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.beatmapset.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)
|
|
@@ -43,8 +43,6 @@ async def _recent(event: Event, state: T_State):
|
|
|
43
43
|
f"在查找用户:{state['username']} {NGM[state['mode']]}模式"
|
|
44
44
|
f" {lazer_mode}{mods} 最近{state['range']}成绩时 {str(e)}"
|
|
45
45
|
).finish(reply_to=True)
|
|
46
|
-
if not player.lazer_mode:
|
|
47
|
-
scores = [i for i in scores if any(mod.acronym == "CL" for mod in i.mods)]
|
|
48
46
|
for score in scores:
|
|
49
47
|
cal_score_info(player.lazer_mode, score)
|
|
50
48
|
pic = await draw_pfm("relist", state["user"], scores, scores, mode, state["source"], is_lazer=player.lazer_mode)
|
|
@@ -99,8 +97,6 @@ async def _pr(event: Event, state: T_State):
|
|
|
99
97
|
f"在查找用户:{state['username']} {NGM[state['mode']]}模式"
|
|
100
98
|
f" {lazer_mode}{mods} 最近{state['range']}成绩时 {str(e)}"
|
|
101
99
|
).finish(reply_to=True)
|
|
102
|
-
if not player.lazer_mode:
|
|
103
|
-
scores = [i for i in scores if any(mod.acronym == "CL" for mod in i.mods)]
|
|
104
100
|
for score_info in scores:
|
|
105
101
|
cal_score_info(player.lazer_mode, score_info)
|
|
106
102
|
pic = await draw_pfm(
|
|
@@ -1,12 +1,14 @@
|
|
|
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=8NnLtAFR4-ING4Ja6vR5TfU1VDXOitp0aczGmZBPl54,16400
|
|
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
|
+
nonebot_plugin_osubot/data/osu/1849145.osz,sha256=enbHOvDu6ZkvQBM7gtvgZBY-r0a7z87pG62Xm9hXUSI,6933013
|
|
6
|
+
nonebot_plugin_osubot/data/osu/1849145.zip,sha256=k957Du9QVliv1rt6ku3sKDoTIOeyJkFtUqufXzD4WLE,6933013
|
|
5
7
|
nonebot_plugin_osubot/database/__init__.py,sha256=7CDo9xU_DGLQ6uTj_mU_Px92phg_DMU5mP6WvgOxFLY,101
|
|
6
8
|
nonebot_plugin_osubot/database/models.py,sha256=VF_MxR70eRbiIHtqWjpE_Vea4xR38X0RJiQIO96mjsY,1595
|
|
7
9
|
nonebot_plugin_osubot/draw/__init__.py,sha256=dRELA2Vi4gTe8v48q0iHXLDOEj7Unk-_ChDXJp3qkhg,265
|
|
8
10
|
nonebot_plugin_osubot/draw/bmap.py,sha256=GzEiUEkcwdX6ixZ-qmM8TQQf0imD8taur3eX4lJ5wVg,5128
|
|
9
|
-
nonebot_plugin_osubot/draw/bp.py,sha256=
|
|
11
|
+
nonebot_plugin_osubot/draw/bp.py,sha256=EffKW5HcbqQheGRzr8VAU5q6OJ1je21XxVJ2JTmPL9E,8948
|
|
10
12
|
nonebot_plugin_osubot/draw/catch_preview.py,sha256=uSYoTqfdxRy4anpH9Uhj8NntPo008pzw1t6xRMTBBkI,1397
|
|
11
13
|
nonebot_plugin_osubot/draw/catch_preview_templates/css/style.css,sha256=2I1VwycLhKJMxwjHj19zAV6MBkFMLu_qLunpoiRlGlM,3919
|
|
12
14
|
nonebot_plugin_osubot/draw/catch_preview_templates/js/beatmap/beatmap.js,sha256=xh6RUz3D40-HJHu0KGqac_eAIHGoAR12bF58V9ft7iQ,5784
|
|
@@ -42,13 +44,14 @@ nonebot_plugin_osubot/draw/info.py,sha256=i2YcJmSdTpwhZl_nDe7GJv4jQTB8_9oBfpq2Zw
|
|
|
42
44
|
nonebot_plugin_osubot/draw/map.py,sha256=4M8xRd0dIbC5g1s8I4eTZ3vRglM6r_TSznFOZ62K2wk,8654
|
|
43
45
|
nonebot_plugin_osubot/draw/match_history.py,sha256=GBJl6lAA27U7NSMC2isEzD_YsoIPAeG6ijDu7Oflcl0,997
|
|
44
46
|
nonebot_plugin_osubot/draw/rating.py,sha256=pA7mGLI4IujmYB6kQf_tSkR7mZGpUAVLRLyaAsZhqTM,20397
|
|
45
|
-
nonebot_plugin_osubot/draw/score.py,sha256=
|
|
47
|
+
nonebot_plugin_osubot/draw/score.py,sha256=65XjTD5nZ3lJt6yvlv2DWcpu14IKFkqWmD88Q0RnuvQ,29218
|
|
46
48
|
nonebot_plugin_osubot/draw/static.py,sha256=wdlzNO3xyiauKiMLr_h-B9uAsFU7fX_Y-fOusYKZP3k,4132
|
|
47
49
|
nonebot_plugin_osubot/draw/taiko_preview.py,sha256=tqhuHSdxUJEuXqKHMJDeSLdusuJhSnMMiaG5FbUnaJw,11441
|
|
48
50
|
nonebot_plugin_osubot/draw/templates/bpa_chart.html,sha256=R-fO46HtmC4y3brMFGz6MQkna8ke7WGHVIgUnvcY248,7012
|
|
49
51
|
nonebot_plugin_osubot/draw/templates/echarts.min.js,sha256=IF32ooP8NPIzQg_fs7lVHpwG92JcCPE1TZAEyFSgGZU,1022939
|
|
50
52
|
nonebot_plugin_osubot/draw/templates/mod_chart.html,sha256=Iz71KM5v9z_Rt2vqJ5WIZumRIHgDfcGIUmWGvVGZ-nQ,1508
|
|
51
53
|
nonebot_plugin_osubot/draw/templates/pp_rank_line_chart.html,sha256=Gyf-GR8ZBlWQTks0TlB3M8EWUBMVwiUaesFAmDISxLo,1417
|
|
54
|
+
nonebot_plugin_osubot/draw/templates/t.html,sha256=_A4c7lR3zfjIWoeR38jBMtuUCA6SFEYNZWPAkbNfHPk,10597
|
|
52
55
|
nonebot_plugin_osubot/draw/utils.py,sha256=6QDbByPQZCxI0k_i5MsExyWZ-sHgJUw6nEWLv85IgLY,15826
|
|
53
56
|
nonebot_plugin_osubot/exceptions.py,sha256=N_FsEk-9Eu2QnuznhdfWn6OoyA1HH73Q7bUaY89gVi0,40
|
|
54
57
|
nonebot_plugin_osubot/file.py,sha256=GhG54EdVsxFf8_8GZOPh4YGvw9iw5bAX9JFz4Mg4kMg,4379
|
|
@@ -61,7 +64,7 @@ nonebot_plugin_osubot/matcher/bind.py,sha256=QQJc2S7XFo5tu4CPloIET6fKaeiQixgb8M7
|
|
|
61
64
|
nonebot_plugin_osubot/matcher/bp.py,sha256=GidJfuZ9lJ7LwMq126DDOwMksNUOz4Bkab83OlKg8t8,3983
|
|
62
65
|
nonebot_plugin_osubot/matcher/bp_analyze.py,sha256=L2ccAi7TQvpD036DyA27D8wuiqBBkcfLT0ldk_Apv8w,3820
|
|
63
66
|
nonebot_plugin_osubot/matcher/getbg.py,sha256=Ar2yIST556MYRxzuXCLSDAMAmESRENN1fCty-kdH7PI,699
|
|
64
|
-
nonebot_plugin_osubot/matcher/guess.py,sha256=
|
|
67
|
+
nonebot_plugin_osubot/matcher/guess.py,sha256=QmD-a88pnPfSSBAvSpD2tlHDGMRpYWqtxfNuLsHuBYM,24144
|
|
65
68
|
nonebot_plugin_osubot/matcher/history.py,sha256=ZYkVJHdXuVJmhovRhwxFdqNp0o2uJJOACAZhhutyS3w,1577
|
|
66
69
|
nonebot_plugin_osubot/matcher/info.py,sha256=8CJHTOMTx_nzJ4ZwXo6ZfBwCuO3DtLprRX7jnMtPilk,858
|
|
67
70
|
nonebot_plugin_osubot/matcher/map.py,sha256=sFpOoFv63y-NOkCJhE6aW0DRYDl_8SoQOPsdq50QxT0,1404
|
|
@@ -71,7 +74,7 @@ nonebot_plugin_osubot/matcher/medal.py,sha256=OlJTwBvh0kGx_KWhjksozI910c8QdaVFBg
|
|
|
71
74
|
nonebot_plugin_osubot/matcher/mu.py,sha256=l3Ebz47o46EvN2nvo9-zzQI4CTaLMcd5XW0qljqSGIM,445
|
|
72
75
|
nonebot_plugin_osubot/matcher/osu_help.py,sha256=64rOkYEOETvU8AF__0xLZjVRs3cTac0D1XEultPK_kM,728
|
|
73
76
|
nonebot_plugin_osubot/matcher/osudl.py,sha256=yLEblYnLprTf2T00FiRWJ8CuCd0IHyUY9Ka68yAKOXo,872
|
|
74
|
-
nonebot_plugin_osubot/matcher/pr.py,sha256=
|
|
77
|
+
nonebot_plugin_osubot/matcher/pr.py,sha256=xGjQvEJHmIZkq9luu8TtbjBB8FykGI4Wzi_-eXghOjQ,4951
|
|
75
78
|
nonebot_plugin_osubot/matcher/preview.py,sha256=n9wgdNG9SF_JQ78nShTsTElJkBDJQr67DRc8Q9sVcCo,1896
|
|
76
79
|
nonebot_plugin_osubot/matcher/rank.py,sha256=sFEim3cR_vswzLmbagjqy-ypolcprAxQpawiSEcFqEI,3619
|
|
77
80
|
nonebot_plugin_osubot/matcher/rating.py,sha256=JY1Q1ELU3Y1FhQ7kVWVkgVsYEVxkAcxjsoMcwC_u234,450
|
|
@@ -402,9 +405,9 @@ nonebot_plugin_osubot/schema/beatmap.py,sha256=UnobfZEHq1V2HG-A4j3BECubO-dB1JzTM
|
|
|
402
405
|
nonebot_plugin_osubot/schema/match.py,sha256=lR3pGNVR9K_5GZAdOLG6Ki-W3fwJvgMlNhYOzKNE3lg,494
|
|
403
406
|
nonebot_plugin_osubot/schema/ppysb/__init__.py,sha256=JK2Z4n44gUJPVKdETMJYJ5uIw-4a8T50y6j5n-YrlYM,1375
|
|
404
407
|
nonebot_plugin_osubot/schema/sayo_beatmap.py,sha256=lS1PQZ-HvHl0VhkzlI0-pNLeJrLYWVqmKAo6xZr5I2U,959
|
|
405
|
-
nonebot_plugin_osubot/schema/score.py,sha256=
|
|
408
|
+
nonebot_plugin_osubot/schema/score.py,sha256=gxF_RVSUOyj7EF_q3XeHhNj5qg19MW-B1aePjnTmi08,3233
|
|
406
409
|
nonebot_plugin_osubot/schema/user.py,sha256=sxNmqymG_kIVuGuzfchSv9UML6NPG70cqo2_h5xDIpM,2250
|
|
407
410
|
nonebot_plugin_osubot/utils/__init__.py,sha256=pyv8XxBcCOeQVDj1E4dgvktzcefgQXfKBlarsYGx1sg,815
|
|
408
|
-
nonebot_plugin_osubot-6.
|
|
409
|
-
nonebot_plugin_osubot-6.
|
|
410
|
-
nonebot_plugin_osubot-6.
|
|
411
|
+
nonebot_plugin_osubot-6.23.0.dist-info/WHEEL,sha256=B19PGBCYhWaz2p_UjAoRVh767nYQfk14Sn4TpIZ-nfU,87
|
|
412
|
+
nonebot_plugin_osubot-6.23.0.dist-info/METADATA,sha256=XK7OxlxWEiM1vCKm4_4A8u6vRMh6ZQXl-OrdF9zxq8A,4476
|
|
413
|
+
nonebot_plugin_osubot-6.23.0.dist-info/RECORD,,
|
|
File without changes
|