debugging

This commit is contained in:
Dustin Pianalto 2019-12-16 19:58:49 -09:00
parent 4afd44e4be
commit e9bfb7cb13

View File

@ -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()