From aca4f88c431d1690ab562d1924749ac9cd9d937f Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Sun, 28 Jan 2024 20:51:11 -0800 Subject: [PATCH] Shorten the interval for checking --- app/cogs/palworld.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cogs/palworld.py b/app/cogs/palworld.py index edc6fa3e..c8143089 100755 --- a/app/cogs/palworld.py +++ b/app/cogs/palworld.py @@ -170,7 +170,7 @@ class PalWorld(commands.Cog): "https://img.game8.co/3822502/5ae8382d16bd390dd19f343e87680d51.png/show" ) - @tasks.loop(seconds=300) + @tasks.loop(seconds=120) async def poll_server_population(self): # Wait until the bot is ready before we actually start executing code await self.bot.wait_until_ready() @@ -184,7 +184,7 @@ class PalWorld(commands.Cog): num_players = len(rcon.send_command("ShowPlayers").split("\n")[1:-1]) # channel = self.bot.get_channel(932476007439552522) channel = self.bot.get_channel(1199397770746925239) - await channel.edit(name="Palworlders %s online" % num_players) + await channel.edit(name="Palworlders (%s/16 online)" % num_players) def setup(bot):