nonebot-plugin-cp-broadcast 2.2.0__tar.gz → 2.3.0__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.
Potentially problematic release.
This version of nonebot-plugin-cp-broadcast might be problematic. Click here for more details.
- {nonebot_plugin_cp_broadcast-2.2.0 → nonebot_plugin_cp_broadcast-2.3.0}/PKG-INFO +3 -2
- {nonebot_plugin_cp_broadcast-2.2.0 → nonebot_plugin_cp_broadcast-2.3.0}/nonebot_plugin_cp_broadcast/__init__.py +264 -266
- {nonebot_plugin_cp_broadcast-2.2.0 → nonebot_plugin_cp_broadcast-2.3.0}/nonebot_plugin_cp_broadcast/atcoder.py +116 -113
- {nonebot_plugin_cp_broadcast-2.2.0 → nonebot_plugin_cp_broadcast-2.3.0}/nonebot_plugin_cp_broadcast/codeforces.py +177 -179
- {nonebot_plugin_cp_broadcast-2.2.0 → nonebot_plugin_cp_broadcast-2.3.0}/nonebot_plugin_cp_broadcast/config.py +53 -45
- {nonebot_plugin_cp_broadcast-2.2.0 → nonebot_plugin_cp_broadcast-2.3.0}/nonebot_plugin_cp_broadcast/nowcoder.py +150 -145
- nonebot_plugin_cp_broadcast-2.3.0/nonebot_plugin_cp_broadcast/utils.py +40 -0
- {nonebot_plugin_cp_broadcast-2.2.0 → nonebot_plugin_cp_broadcast-2.3.0}/pyproject.toml +23 -23
- {nonebot_plugin_cp_broadcast-2.2.0 → nonebot_plugin_cp_broadcast-2.3.0}/LICENSE +0 -0
- {nonebot_plugin_cp_broadcast-2.2.0 → nonebot_plugin_cp_broadcast-2.3.0}/README.md +0 -0
- {nonebot_plugin_cp_broadcast-2.2.0 → nonebot_plugin_cp_broadcast-2.3.0}/nonebot_plugin_cp_broadcast/aiosqlite.py +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: nonebot-plugin-cp-broadcast
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Codeforces、牛客、AtCoder平台比赛查询,ACMer 必备
|
|
5
5
|
Home-page: https://github.com/HuParry/nonebot-plugin-cp-broadcast
|
|
6
6
|
License: MIT
|
|
7
7
|
Author: HuParry
|
|
8
|
-
Author-email:
|
|
8
|
+
Author-email: hu_parry@qq.com
|
|
9
9
|
Requires-Python: >=3.8
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -14,6 +14,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
18
|
Requires-Dist: aiosqlite (>=0.13.0,<0.14.0)
|
|
18
19
|
Requires-Dist: bs4 (>=0.0.1)
|
|
19
20
|
Requires-Dist: fake-useragent (>=1.1.3)
|
|
@@ -1,266 +1,264 @@
|
|
|
1
|
-
from .
|
|
2
|
-
|
|
3
|
-
from .
|
|
4
|
-
from .
|
|
5
|
-
from .
|
|
6
|
-
import
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
|
|
10
|
-
from
|
|
11
|
-
from nonebot.
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"@{botname} cf
|
|
32
|
-
"@{botname} cf
|
|
33
|
-
"@{botname} cf
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
msg2
|
|
89
|
-
n += 1
|
|
90
|
-
if n >= 2:
|
|
91
|
-
break
|
|
92
|
-
n = 0
|
|
93
|
-
msg3 =
|
|
94
|
-
|
|
95
|
-
if len(atc_list) > 0:
|
|
96
|
-
for each in atc_list:
|
|
97
|
-
if n == 0:
|
|
98
|
-
msg3
|
|
99
|
-
msg3
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
if len(
|
|
104
|
-
return
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
if n
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
global
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
if await
|
|
212
|
-
logger.info('
|
|
213
|
-
if await
|
|
214
|
-
logger.info('
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
logger.info('cf
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
await
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
cfBroadcast, "interval", minutes=cp_broadcast_cf_interval, id="cfBroadcast"
|
|
266
|
-
)
|
|
1
|
+
from nonebot.adapters.onebot.v11 import Event
|
|
2
|
+
|
|
3
|
+
from .config import *
|
|
4
|
+
from .codeforces import *
|
|
5
|
+
from .nowcoder import *
|
|
6
|
+
from .atcoder import *
|
|
7
|
+
from .aiosqlite import *
|
|
8
|
+
from .utils import *
|
|
9
|
+
import datetime
|
|
10
|
+
from datetime import timedelta
|
|
11
|
+
from nonebot.plugin import on_fullmatch
|
|
12
|
+
from nonebot import require, get_bot
|
|
13
|
+
from nonebot.rule import to_me
|
|
14
|
+
from nonebot.log import logger
|
|
15
|
+
import asyncio
|
|
16
|
+
|
|
17
|
+
cp_broadcast_list = cp_broadcast_config.cp_broadcast_list
|
|
18
|
+
cp_broadcast_botname = cp_broadcast_config.cp_broadcast_botname
|
|
19
|
+
cp_broadcast_time = cp_broadcast_config.cp_broadcast_time
|
|
20
|
+
cp_broadcast_updatetime = cp_broadcast_config.cp_broadcast_updatetime
|
|
21
|
+
cp_broadcast_cf_list = cp_broadcast_config.cp_broadcast_cf_list
|
|
22
|
+
cp_broadcast_cf_interval = cp_broadcast_config.cp_broadcast_cf_interval
|
|
23
|
+
|
|
24
|
+
from nonebot.plugin import PluginMetadata
|
|
25
|
+
|
|
26
|
+
__plugin_meta__ = PluginMetadata(
|
|
27
|
+
name="算法竞赛比赛查询",
|
|
28
|
+
description="可以查询牛客、atcoder、codeforces平台的今天和近几天的比赛信息",
|
|
29
|
+
usage= \
|
|
30
|
+
"cf->查询cf比赛\n" \
|
|
31
|
+
"@{botname} cf查询+id->查询某人信息\n" \
|
|
32
|
+
"@{botname} cf监视+id->监视某人rating变化\n" \
|
|
33
|
+
"@{botname} cf监视移除+id->不再监视某人rating变化\n" \
|
|
34
|
+
"@{botname} cf监视列表->展示已监视的选手id\n" \
|
|
35
|
+
"@{botname} cf排名->展示已监视选手的排名\n" \
|
|
36
|
+
"@{botname} cf监视备注->给某个监视选手备注\n" \
|
|
37
|
+
"nc/牛客->查询牛客比赛\n" \
|
|
38
|
+
"atc->查询atcoder比赛\n" \
|
|
39
|
+
"today->查询今天的比赛\n" \
|
|
40
|
+
"next->查询明天之后的部分比赛\n"
|
|
41
|
+
"update->更新比赛数据\n" \
|
|
42
|
+
"about->{botname}的一些信息\n",
|
|
43
|
+
type="application",
|
|
44
|
+
homepage="https://github.com/HuParry/nonebot-plugin-cp-broadcast",
|
|
45
|
+
config=Config,
|
|
46
|
+
supported_adapters={"nonebot.adapters.onebot.v11"},
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
try:
|
|
50
|
+
scheduler = require("nonebot_plugin_apscheduler").scheduler
|
|
51
|
+
except BaseException:
|
|
52
|
+
scheduler = None
|
|
53
|
+
|
|
54
|
+
logger.opt(colors=True).info(
|
|
55
|
+
"已检测到软依赖<y>nonebot_plugin_apscheduler</y>, <g>开启定时任务功能</g>"
|
|
56
|
+
if scheduler
|
|
57
|
+
else "未检测到软依赖<y>nonebot_plugin_apscheduler</y>, <r>禁用定时任务功能</r>"
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
###列表下标0为比赛名称、下标1为比赛时间、下标2为比赛链接
|
|
62
|
+
|
|
63
|
+
async def ans_today(): # today
|
|
64
|
+
cf_list = await codeforces.get_today_data()
|
|
65
|
+
nc_list = await nowcoder.get_today_data()
|
|
66
|
+
atc_list = await atcoder.get_today_data()
|
|
67
|
+
|
|
68
|
+
msg = []
|
|
69
|
+
n = 0
|
|
70
|
+
if len(cf_list) > 0:
|
|
71
|
+
for each in cf_list:
|
|
72
|
+
if n == 0:
|
|
73
|
+
msg.append(cf_title)
|
|
74
|
+
msg.append(to_context(each))
|
|
75
|
+
|
|
76
|
+
n += 1
|
|
77
|
+
if n >= 2:
|
|
78
|
+
break
|
|
79
|
+
n = 0
|
|
80
|
+
msg2 = []
|
|
81
|
+
|
|
82
|
+
if len(nc_list) > 0:
|
|
83
|
+
# second = '{:.3f}'.format(time.time())
|
|
84
|
+
# second2 = int(float(second)*1000)
|
|
85
|
+
for data in nc_list:
|
|
86
|
+
if n == 0:
|
|
87
|
+
msg2.append(nc_title)
|
|
88
|
+
msg2.append(to_context(data))
|
|
89
|
+
n += 1
|
|
90
|
+
if n >= 2:
|
|
91
|
+
break
|
|
92
|
+
n = 0
|
|
93
|
+
msg3 = []
|
|
94
|
+
|
|
95
|
+
if len(atc_list) > 0:
|
|
96
|
+
for each in atc_list:
|
|
97
|
+
if n == 0:
|
|
98
|
+
msg3.append(atc_title)
|
|
99
|
+
msg3.append(to_context(each))
|
|
100
|
+
|
|
101
|
+
if len(cf) == 0 and len(nc) == 0 and len(atc) == 0:
|
|
102
|
+
return f'查询出错了,稍后再尝试哦~'
|
|
103
|
+
if len(cf_list) == 0 and len(nc_list) == 0 and len(atc_list) == 0:
|
|
104
|
+
return '今天没有比赛,但也要好好做题哦~'
|
|
105
|
+
return [ '找到今天的比赛如下:', ''.join(msg), ''.join(msg2), ''.join(msg3) ]
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
async def ans_next():
|
|
109
|
+
cf_list = await codeforces.get_next_data()
|
|
110
|
+
nc_list = await nowcoder.get_next_data()
|
|
111
|
+
atc_list = await atcoder.get_next_data()
|
|
112
|
+
tomorrow = datetime.datetime.now().date() + timedelta(days=1)
|
|
113
|
+
msg = []
|
|
114
|
+
n = 0
|
|
115
|
+
|
|
116
|
+
if len(cf_list) > 0:
|
|
117
|
+
for each in cf_list:
|
|
118
|
+
if n == 0:
|
|
119
|
+
msg.append(cf_title)
|
|
120
|
+
msg.append(to_context(each))
|
|
121
|
+
n += 1
|
|
122
|
+
if n >= 2:
|
|
123
|
+
break
|
|
124
|
+
n = 0
|
|
125
|
+
msg2 = []
|
|
126
|
+
|
|
127
|
+
if len(nc_list) > 0:
|
|
128
|
+
for data in nc_list:
|
|
129
|
+
if n == 0:
|
|
130
|
+
msg2.append(nc_title)
|
|
131
|
+
msg2.append(to_context(data))
|
|
132
|
+
n += 1
|
|
133
|
+
if n >= 2:
|
|
134
|
+
break
|
|
135
|
+
|
|
136
|
+
n = 0
|
|
137
|
+
msg3 = []
|
|
138
|
+
|
|
139
|
+
if len(atc_list) > 0:
|
|
140
|
+
for each in atc_list:
|
|
141
|
+
if n == 0:
|
|
142
|
+
msg3.append(atc_title)
|
|
143
|
+
msg3.append(to_context(each))
|
|
144
|
+
n += 1
|
|
145
|
+
|
|
146
|
+
if len(cf) == 0 and len(nc) == 0 and len(atc) == 0:
|
|
147
|
+
return f'查询出错了,稍后再尝试哦~'
|
|
148
|
+
if len(cf_list) == 0 and len(nc_list) == 0 and len(atc_list) == 0:
|
|
149
|
+
return '接下来几天没有比赛,但也要好好做题哦~'
|
|
150
|
+
return ['找到接下来的比赛如下:', ''.join(msg), ''.join(msg2), ''.join(msg3)]
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
today_matcher = on_fullmatch('today', priority=70, block=True)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
@today_matcher.handle()
|
|
157
|
+
async def _(bot: Bot, event: MessageEvent):
|
|
158
|
+
msg = await ans_today()
|
|
159
|
+
if isinstance(msg, str):
|
|
160
|
+
await today_matcher.finish(msg)
|
|
161
|
+
else:
|
|
162
|
+
await send_forward_msg(bot, event, "今日比赛", bot.self_id, msg)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
next_matcher = on_fullmatch('next', priority=70, block=True)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
@next_matcher.handle()
|
|
169
|
+
async def _(bot: Bot, event: MessageEvent):
|
|
170
|
+
msg = await ans_next()
|
|
171
|
+
if isinstance(msg, str):
|
|
172
|
+
await next_matcher.finish(msg)
|
|
173
|
+
else:
|
|
174
|
+
await send_forward_msg(bot, event, "接下来比赛", bot.self_id, msg)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
help = on_fullmatch(('help', '帮助'), block=True, priority=70, rule=to_me())
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
@help.handle()
|
|
181
|
+
async def help_():
|
|
182
|
+
msg = __plugin_meta__.usage.format(botname=cp_broadcast_botname)
|
|
183
|
+
await help.finish(msg)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
# 清晨自动播报比赛
|
|
187
|
+
async def auto_broadcast():
|
|
188
|
+
await asyncio.sleep(1)
|
|
189
|
+
for id in cp_broadcast_list:
|
|
190
|
+
await asyncio.sleep(2)
|
|
191
|
+
await get_bot().send_group_msg(group_id=id, message='早上好呀!' + await ans_today())
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
if scheduler:
|
|
195
|
+
scheduler.add_job(auto_broadcast,
|
|
196
|
+
"cron", hour=cp_broadcast_time['hour'], minute=cp_broadcast_time['minute'], id="auto_broadcast"
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
# 凌晨12点自动更新比赛信息
|
|
201
|
+
async def update():
|
|
202
|
+
global cf
|
|
203
|
+
global atc
|
|
204
|
+
global nc
|
|
205
|
+
cf.clear()
|
|
206
|
+
atc.clear()
|
|
207
|
+
nc.clear()
|
|
208
|
+
|
|
209
|
+
if await get_data_cf():
|
|
210
|
+
logger.info('cf比赛信息更新成功')
|
|
211
|
+
if await get_data_nc():
|
|
212
|
+
logger.info('牛客比赛信息更新成功')
|
|
213
|
+
if await get_data_atc():
|
|
214
|
+
logger.info('atc比赛信息更新成功')
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
if scheduler:
|
|
218
|
+
scheduler.add_job(
|
|
219
|
+
update, "cron", hour=cp_broadcast_updatetime['hour'], minute=cp_broadcast_updatetime['minute'], id="update"
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
# 更新数据
|
|
223
|
+
update_matcher = on_fullmatch('update', priority=70, block=True)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
@update_matcher.handle()
|
|
227
|
+
async def reply():
|
|
228
|
+
await update()
|
|
229
|
+
await update_matcher.finish('数据已更新完成')
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
# cf分数变化提醒、cf上线提醒
|
|
233
|
+
async def cfBroadcast():
|
|
234
|
+
"""
|
|
235
|
+
Users = {'ratingChange': [
|
|
236
|
+
{'handle': handle, 'remarks' : remarks,'oldRating': Rating.oldRating, 'newRating': Rating.newRating}
|
|
237
|
+
],
|
|
238
|
+
'cfOnline': [
|
|
239
|
+
{'handle': handle, 'remarks' : remarks, 'contestId': contestId}
|
|
240
|
+
]}
|
|
241
|
+
"""
|
|
242
|
+
logger.info('cf监视工作开始')
|
|
243
|
+
messList = await returnChangeInfo()
|
|
244
|
+
logger.info('cf监视工作完成,结果已返回')
|
|
245
|
+
|
|
246
|
+
for id in cp_broadcast_cf_list:
|
|
247
|
+
await asyncio.sleep(1)
|
|
248
|
+
output = f"当前时间:{time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())}\n"
|
|
249
|
+
if len(messList['ratingChange']) != 0:
|
|
250
|
+
for mess in messList['ratingChange']:
|
|
251
|
+
output += f"cf用户 {mess['handle']} ({mess['remarks']})分数发生变化,从 {mess['oldRating']} → {mess['newRating']},变动了{int(mess['newRating'] - int(mess['oldRating']))}分!\n"
|
|
252
|
+
await get_bot().send_group_msg(group_id=id, message=output)
|
|
253
|
+
await asyncio.sleep(1)
|
|
254
|
+
|
|
255
|
+
for mess in messList['cfOnline']:
|
|
256
|
+
await get_bot().send_group_msg(group_id=id,
|
|
257
|
+
message=f"卷王 {mess['handle']} ({mess['remarks']})又开始上cf做题啦!他在做{mess['contestId']}!\n")
|
|
258
|
+
await asyncio.sleep(1)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
if scheduler:
|
|
262
|
+
scheduler.add_job(
|
|
263
|
+
cfBroadcast, "interval", minutes=cp_broadcast_cf_interval, id="cfBroadcast"
|
|
264
|
+
)
|