debugging
This commit is contained in:
parent
4afd44e4be
commit
e9bfb7cb13
@ -254,7 +254,8 @@ class Rcon(commands.Cog):
|
|||||||
f'{self.bot.api_base}/rcon/{ctx.guild.id}/{server_name}/listplayers',
|
f'{self.bot.api_base}/rcon/{ctx.guild.id}/{server_name}/listplayers',
|
||||||
headers=self.bot.auth_header
|
headers=self.bot.auth_header
|
||||||
)
|
)
|
||||||
if resp.status == 200:
|
rcon_log.info(resp.status)
|
||||||
|
if resp.status == 200 or resp.status == 204:
|
||||||
message = '\n'.join(await resp.json())
|
message = '\n'.join(await resp.json())
|
||||||
await ctx.channel.trigger_typing()
|
await ctx.channel.trigger_typing()
|
||||||
await msg.delete()
|
await msg.delete()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user