Compare commits

...

2 Commits

Author SHA1 Message Date
84561948da Help code update 2024-12-14 20:58:01 -08:00
621bd16d71 Formatting 2024-12-14 20:57:53 -08:00
3 changed files with 15 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import token_bot.token_bot as token_bot
if __name__ == '__main__':
if __name__ == "__main__":
bot = token_bot.TokenBot()
bot.run()

View File

@ -29,4 +29,8 @@ class Core(Extension):
@slash_command()
async def help(self, ctx):
await ctx.send(f"This is bot help command", ephemeral=True)
await ctx.send(
f"For help on using GoblinBot, please visit the help page found "
f"[here](https://blog.emily.sh/token-bot/#getting-started)",
ephemeral=True,
)

View File

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