From 476139a5876c79c519052ea05dab8226ee9eafa3 Mon Sep 17 00:00:00 2001 From: Elmon11 Date: Tue, 24 Nov 2020 20:46:32 +0100 Subject: [PATCH] Update miscellaneous.py --- commands/miscellaneous.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/miscellaneous.py b/commands/miscellaneous.py index f8fdaad..880c336 100644 --- a/commands/miscellaneous.py +++ b/commands/miscellaneous.py @@ -60,6 +60,8 @@ class Miscellaneous(commands.Cog): self.bot.telnet_object.session.write(bytes(command, 'ascii') + b"\r\n") self.bot.telnet_object.session.read_until(bytes(f'{time_sent} INFO]:', 'ascii'), 2) + if ctx.channel = ctx.guild.get_channel(server_chat): + self.bot.telnet_object.session.read_until(bytes('\r\n', 'ascii'), 2) next_line = self.bot.telnet_object.session.read_until(bytes('\r\n', 'ascii'), 2) em.description = f"Response from server: {next_line.decode('utf-8')}" await ctx.send(embed=em)