From 5eab00de0e6637f0fd222ae3195062c0856adfd2 Mon Sep 17 00:00:00 2001 From: Elmon11 Date: Tue, 24 Nov 2020 20:53:33 +0100 Subject: [PATCH] Update miscellaneous.py --- commands/miscellaneous.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/miscellaneous.py b/commands/miscellaneous.py index 3a5a545..d71052f 100644 --- a/commands/miscellaneous.py +++ b/commands/miscellaneous.py @@ -64,8 +64,11 @@ class Miscellaneous(commands.Cog): 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) + else: + em.description = f'Command **{args[0]}** not found.' + em.colour = 0xFF0000 + await ctx.send(embed=em) @is_dev() @commands.command()