mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 15:44:57 +00:00
Update miscellaneous.py
This commit is contained in:
parent
816088b3c7
commit
476139a587
1 changed files with 2 additions and 0 deletions
|
@ -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.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):
|
||||||
|
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')}"
|
||||||
await ctx.send(embed=em)
|
await ctx.send(embed=em)
|
||||||
|
|
Loading…
Reference in a new issue