Do not announce offline messages
This commit is contained in:
parent
7a89d2605f
commit
12f8aad9fd
1 changed files with 0 additions and 4 deletions
|
@ -180,10 +180,6 @@ async def query_database():
|
||||||
# Cleanup the announce job
|
# Cleanup the announce job
|
||||||
if scheduler.get_job('announce_live_channel') is not None:
|
if scheduler.get_job('announce_live_channel') is not None:
|
||||||
scheduler.remove_job('announce_live_channel')
|
scheduler.remove_job('announce_live_channel')
|
||||||
if live_channel_id != 0:
|
|
||||||
live_channel = bot.get_channel(int(live_channel_id))
|
|
||||||
await live_channel.send(f'{stream_name} is offline.')
|
|
||||||
logger_discord.info(f'{stream_name} is offline.')
|
|
||||||
|
|
||||||
async def announce_live_channel(stream_name, stream_details):
|
async def announce_live_channel(stream_name, stream_details):
|
||||||
if live_channel_id != 0:
|
if live_channel_id != 0:
|
||||||
|
|
Loading…
Add table
Reference in a new issue