forked from cswimr/SeaCogs
fix(pterodactyl): added a character limit to the channel.send call in the websocket method
This commit is contained in:
parent
ff93fd8527
commit
b7635f06f5
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class Pterodactyl(commands.Cog):
|
|||
|
||||
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)
|
||||
await channel.send(json.loads(message)['args'][0])
|
||||
await channel.send(json.loads(message)['args'][0][:1900])
|
||||
#FIXME - 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