remove announcement job after we fully check the db for live streams
This commit is contained in:
parent
0bbc81e50f
commit
7dcac2f191
1 changed files with 11 additions and 10 deletions
|
@ -82,6 +82,7 @@ async def update_database():
|
||||||
logger_discord.info(f'{name} live stream detected!')
|
logger_discord.info(f'{name} live stream detected!')
|
||||||
scheduler.add_job(func=announce_live_channel, seconds=60, id='announce_live_channel', args=(name))
|
scheduler.add_job(func=announce_live_channel, seconds=60, id='announce_live_channel', args=(name))
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
job = scheduler.get_job('announce_live_channel')
|
job = scheduler.get_job('announce_live_channel')
|
||||||
if job:
|
if job:
|
||||||
|
|
Loading…
Reference in a new issue