1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Use bot.users instead of the generator, to stop the blocking call

This commit is contained in:
Phxntxm 2017-03-20 17:24:41 -05:00
parent 9cccbdb8de
commit e9a4d5aee8

View file

@ -176,8 +176,7 @@ class Core:
# Add the normal values
embed.add_field(name='Total Servers', value=len(self.bot.guilds))
# TODO: Figure out how to make this next call not-blocking
#embed.add_field(name='Total Members', value=len(set(self.bot.get_all_members())))
embed.add_field(name='Total Members', value=len(bot.users))
# Count the variable values; hangman, tictactoe, etc.
hm_games = len(self.bot.get_cog('Hangman').games)