Shorten the interval for checking
This commit is contained in:
parent
22d868874f
commit
aca4f88c43
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user