Compare commits
2 Commits
9ddba0d9b1
...
7c6b66660e
Author | SHA1 | Date | |
---|---|---|---|
7c6b66660e | |||
dfa5637a42 |
@ -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):
|
||||
|
@ -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