Compare commits
2 Commits
7c6b66660e
...
84561948da
Author | SHA1 | Date | |
---|---|---|---|
84561948da | |||
621bd16d71 |
2
main.py
2
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()
|
||||
|
@ -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,
|
||||
)
|
||||
|
@ -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 #
|
||||
|
Loading…
Reference in New Issue
Block a user