forked from blizzthewolf/SeaCogs
fix(pterodactyl): i'm dumb
This commit is contained in:
parent
60f94c4499
commit
d297a2181d
1 changed files with 4 additions and 4 deletions
|
@ -74,10 +74,10 @@ class Pterodactyl(commands.Cog):
|
|||
if json.loads(message)['event'] == 'auth success':
|
||||
self.logger.debug("Authentication successful")
|
||||
|
||||
# if json.loads(message)['event'] == 'console output' and await self.config.console_channel() is not None:
|
||||
# channel = self.bot.get_channel(await self.config.console_channel)
|
||||
# if channel is not None:
|
||||
# await channel.send(json.loads(message)['args'][0][:1900])
|
||||
if json.loads(message)['event'] == 'console output' and await self.config.console_channel() is not None:
|
||||
channel = self.bot.get_channel(await self.config.console_channel())
|
||||
if channel is not None:
|
||||
await channel.send(json.loads(message)['args'][0][:1900])
|
||||
#TODO - Add pagification for long messages to prevent Discord API errors
|
||||
except websockets.exceptions.ConnectionClosed as e:
|
||||
self.logger.debug("WebSocket connection closed: %s", e)
|
||||
|
|
Loading…
Reference in a new issue