diff --git a/main.py b/main.py index 2855657..b9cc628 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,5 @@ import token_bot.token_bot as token_bot -if __name__ == '__main__': +if __name__ == "__main__": bot = token_bot.TokenBot() bot.run() diff --git a/token_bot/tracker.py b/token_bot/tracker.py index d0f7f7c..17ddbaf 100644 --- a/token_bot/tracker.py +++ b/token_bot/tracker.py @@ -78,7 +78,9 @@ class Tracker(Extension): else: users_alerts[user].append(alert) if users_alerts: - self.bot.logger.log(logging.INFO, "TokenBot Tracker: Processing User 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 = [ @@ -94,12 +96,15 @@ class Tracker(Extension): alerts_by_flavor = await gather_alerts_by_flavor(users_alerts[user]) for flavor in alerts_by_flavor: embeds.append( - await self._render_alert_flavor(alerts_by_flavor[flavor], user=user) + await self._render_alert_flavor( + alerts_by_flavor[flavor], user=user + ) ) await discord_user.send(embeds=embeds) - self.bot.logger.log(logging.INFO, "TokenBot Tracker: Done Processing User Alerts") - + self.bot.logger.log( + logging.INFO, "TokenBot Tracker: Done Processing User Alerts" + ) ################################### # Slash Commands #