fix: Add try to public notifications
All checks were successful
Build Docker / Build Docker (push) Successful in 42s
All checks were successful
Build Docker / Build Docker (push) Successful in 42s
This commit is contained in:
parent
b454139988
commit
d6d36c8722
3
bot.py
3
bot.py
@ -629,7 +629,10 @@ async def check_reminders():
|
|||||||
if 'public' in reminder:
|
if 'public' in reminder:
|
||||||
if reminder['public']:
|
if reminder['public']:
|
||||||
channel = client.get_channel(int(reminder['channel_id']))
|
channel = client.get_channel(int(reminder['channel_id']))
|
||||||
|
try:
|
||||||
await channel.send(embed=tools.embed("Reminder", reminder['text']))
|
await channel.send(embed=tools.embed("Reminder", reminder['text']))
|
||||||
|
except:
|
||||||
|
await log("Channel not found: " + reminder['channel_id'])
|
||||||
|
|
||||||
print("Reminder sent for "+str(reminder), flush=True)
|
print("Reminder sent for "+str(reminder), flush=True)
|
||||||
reminders.remove(reminder)
|
reminders.remove(reminder)
|
||||||
|
Loading…
Reference in New Issue
Block a user