Fixing it so we're not spamming the dsicord api with channel name updates

This commit is contained in:
Luke Robles 2024-01-29 12:00:24 -08:00
parent 1e13f27f63
commit 3b08239da3

View File

@ -185,6 +185,10 @@ class PalWorld(commands.Cog):
# channel = self.bot.get_channel(1201389692759842816) # test server
channel = self.bot.get_channel(1199397770746925239)
if str(num_players) in channel.name.split("/")[0]:
return
await channel.edit(name="Palworlders (%s/16 online)" % num_players)