From 6be22b21fbf12cf49ed05e782449a3a7de4036f8 Mon Sep 17 00:00:00 2001 From: turtlebasket Date: Fri, 29 Nov 2019 12:24:49 -0800 Subject: [PATCH] further status tweaks --- bot.py | 11 +++++++++-- config.json | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 6d95239..012ae0f 100644 --- a/bot.py +++ b/bot.py @@ -42,10 +42,17 @@ banning_users = [] async def status_loop(): while True: - await bot.change_presence(activity=discord.Game(name='{} servers | >>help'.format(len(bot.guilds)))) + 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 asyncio.sleep(STATUS_LOOP) - await bot.change_presence(activity=discord.Game(name='Communist Revolution 2: Electric Boogaloo'.format(len(bot.guilds)))) + + # 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 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(): diff --git a/config.json b/config.json index 2bf1fa1..74da888 100644 --- a/config.json +++ b/config.json @@ -12,5 +12,5 @@ "EMOTE_VOTE_TIME" : 3600, "MIN_EMOTE_VOTERS" : 5, - "STATUS_LOOP" : 120 + "STATUS_LOOP" : 480 } \ No newline at end of file