fix(pterodactyl): don't log console command executions
This commit is contained in:
parent
ec2cd09f8e
commit
f6f0a31763
1 changed files with 2 additions and 1 deletions
|
@ -79,6 +79,7 @@ class Pterodactyl(commands.Cog):
|
||||||
channel = self.bot.get_channel(await self.config.console_channel())
|
channel = self.bot.get_channel(await self.config.console_channel())
|
||||||
if channel is not None:
|
if channel is not None:
|
||||||
content = self.remove_ansi_escape_codes(json.loads(message)['args'][0][:1900])
|
content = self.remove_ansi_escape_codes(json.loads(message)['args'][0][:1900])
|
||||||
|
if content.startswith('['):
|
||||||
await channel.send(content=content)
|
await channel.send(content=content)
|
||||||
#TODO - Add pagification for long messages to prevent Discord API errors
|
#TODO - Add pagification for long messages to prevent Discord API errors
|
||||||
except websockets.exceptions.ConnectionClosed as e:
|
except websockets.exceptions.ConnectionClosed as e:
|
||||||
|
|
Loading…
Reference in a new issue