Fix name of channel to be pretty
This commit is contained in:
parent
87fa6533dc
commit
f8c6fa92d4
@ -182,7 +182,8 @@ class PalWorld(commands.Cog):
|
|||||||
|
|
||||||
rcon = SourceRcon("192.168.1.200", 25575, os.getenv("pal_rcon_pass"))
|
rcon = SourceRcon("192.168.1.200", 25575, os.getenv("pal_rcon_pass"))
|
||||||
num_players = len(rcon.send_command("ShowPlayers").split("\n")[1:-1])
|
num_players = len(rcon.send_command("ShowPlayers").split("\n")[1:-1])
|
||||||
# channel = self.bot.get_channel(932476007439552522)
|
|
||||||
|
# channel = self.bot.get_channel(1201389692759842816) # test server
|
||||||
channel = self.bot.get_channel(1199397770746925239)
|
channel = self.bot.get_channel(1199397770746925239)
|
||||||
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