Fixing it so we're not spamming the dsicord api with channel name updates
This commit is contained in:
parent
c0f8c3fdde
commit
f25e29ae7d
@ -185,6 +185,10 @@ class PalWorld(commands.Cog):
|
|||||||
|
|
||||||
# channel = self.bot.get_channel(1201389692759842816) # test server
|
# channel = self.bot.get_channel(1201389692759842816) # test server
|
||||||
channel = self.bot.get_channel(1199397770746925239)
|
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)
|
await channel.edit(name="Palworlders (%s/16 online)" % num_players)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user