Skip to content

Commit

Permalink
refactor fetching of emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
maduck committed Jul 18, 2020
1 parent e5927aa commit c6fe368
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ async def on_ready(self):
log.debug(f'Logged in as {self.user.name}')
log.info(f'Invite with: {self.invite_url}')
log.debug(f'Active in {", ".join([g.name for g in self.guilds])}')
await self.update_base_emojis()

async def update_base_emojis(self):
for guild in self.guilds:
if guild.name == self.BASE_GUILD:
for emoji in guild.emojis:
Expand Down

0 comments on commit c6fe368

Please sign in to comment.