Skip to content

Commit

Permalink
Allow example to work on both async and rewrite branch of discord.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fourjr committed Jun 17, 2018
1 parent e63d8d6 commit e16f3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Example
logger.info('Attempting to post server count')
try:
await self.dblpy.post_server_count()
logger.info('Posted server count ({})'.format(len(self.bot.guilds)))
logger.info('Posted server count ({})'.format(self.dblpy.guild_count())
except Exception as e:
logger.exception('Failed to post server count\n{}: {}'.format(type(e).__name__, e))
await asyncio.sleep(1800)
Expand Down

0 comments on commit e16f3a8

Please sign in to comment.