From a7949bb5a7177374127d21ca83a1191fb7a3b043 Mon Sep 17 00:00:00 2001 From: turtlebasket Date: Fri, 29 Nov 2019 21:33:51 -0800 Subject: [PATCH] more status touchups --- bot.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/bot.py b/bot.py index 012ae0f..d98671c 100644 --- a/bot.py +++ b/bot.py @@ -42,17 +42,14 @@ banning_users = [] async def status_loop(): while True: - member_total = 0 - for s in bot.guilds: - member_total += len(s.members) - await bot.change_presence(activity=discord.Game(name='{0} users in {1} servers'.format(member_total, len(bot.guilds)))) + await bot.change_presence(activity=discord.Game(name='{0} users in {1} servers'.format(len(bot.users), len(bot.guilds)))) await asyncio.sleep(STATUS_LOOP) - # await bot.change_presence(activity=discord.Game(name='{} servers | >>help'.format(len(bot.guilds)))) - await bot.change_presence(activity=discord.Game(name='`>>help` me'.format(len(bot.guilds)))) + await bot.change_presence(activity=discord.Game(name='>>help'.format(len(bot.guilds)))) + await asyncio.sleep(STATUS_LOOP) + + await bot.change_presence(activity=discord.Game(name='Communist Revolution 2: Electric Boogaloo'.format(len(bot.guilds)))) await asyncio.sleep(STATUS_LOOP) - # await bot.change_presence(activity=discord.Game(name='Communist Revolution 2: Electric Boogaloo'.format(len(bot.guilds)))) - # await asyncio.sleep(STATUS_LOOP) @bot.event async def on_ready():