Log when alerts are being sent for restart safety
Maybe we could catch and hold signals here too?
This commit is contained in:
parent
9ddba0d9b1
commit
dfa5637a42
@ -77,6 +77,8 @@ class Tracker(Extension):
|
||||
users_alerts[user] = [alert]
|
||||
else:
|
||||
users_alerts[user].append(alert)
|
||||
if users_alerts:
|
||||
self.bot.logger.log(logging.INFO, "TokenBot Tracker: Processing User Alerts")
|
||||
for user in users_alerts:
|
||||
discord_user = await self.bot.fetch_user(user.user_id)
|
||||
embeds = [
|
||||
@ -96,6 +98,8 @@ class Tracker(Extension):
|
||||
)
|
||||
|
||||
await discord_user.send(embeds=embeds)
|
||||
self.bot.logger.log(logging.INFO, "TokenBot Tracker: Done Processing User Alerts")
|
||||
|
||||
|
||||
###################################
|
||||
# Slash Commands #
|
||||
|
Loading…
Reference in New Issue
Block a user