Compare commits

...

2 Commits

Author SHA1 Message Date
7c6b66660e Bump version 2024-12-14 20:43:22 -08:00
dfa5637a42 Log when alerts are being sent for restart safety
Maybe we could catch and hold signals here too?
2024-12-14 20:43:12 -08:00
2 changed files with 23 additions and 19 deletions

View File

@ -8,7 +8,7 @@ from interactions.api.events import Startup
from token_bot.token_database import database as pdb
from token_bot.token_database import database as tdb
VERSION = "0.9.1"
VERSION = "0.9.2"
class Core(Extension):

View File

@ -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 #