Update miscellaneous.py

This commit is contained in:
Elmon11 2020-11-24 20:52:00 +01:00 committed by GitHub
parent 476139a587
commit 383af41fa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ class Miscellaneous(commands.Cog):
self.bot.telnet_object.session.write(bytes(command, 'ascii') + b"\r\n") 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) self.bot.telnet_object.session.read_until(bytes(f'{time_sent} INFO]:', 'ascii'), 2)
if ctx.channel = ctx.guild.get_channel(server_chat): if ctx.channel == ctx.guild.get_channel(server_chat):
self.bot.telnet_object.session.read_until(bytes('\r\n', 'ascii'), 2) 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) 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')}" em.description = f"Response from server: {next_line.decode('utf-8')}"