mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
Correct users count on boot. (#158)
This commit is contained in:
2
red.py
2
red.py
@@ -40,7 +40,7 @@ lock = False
|
|||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
users = str(len([m for m in bot.get_all_members()]))
|
users = str(len(set(bot.get_all_members())))
|
||||||
servers = str(len(bot.servers))
|
servers = str(len(bot.servers))
|
||||||
channels = str(len([c for c in bot.get_all_channels()]))
|
channels = str(len([c for c in bot.get_all_channels()]))
|
||||||
bot.uptime = int(time.perf_counter())
|
bot.uptime = int(time.perf_counter())
|
||||||
|
|||||||
Reference in New Issue
Block a user