Fixing it so we're not spamming the dsicord api with channel name updates
This commit is contained in:
parent
1e13f27f63
commit
3b08239da3
@ -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)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user