diff --git a/bot.py b/bot.py index 5f0303d..4eb68fd 100644 --- a/bot.py +++ b/bot.py @@ -8,7 +8,7 @@ import time import traceback from functools import cached_property from pkgutil import iter_modules -from typing import Literal, Optional, TypedDict +from typing import Optional, TypedDict import aiohttp import discord diff --git a/cogs/owner.py b/cogs/owner.py index 7a3df26..7ab53f3 100644 --- a/cogs/owner.py +++ b/cogs/owner.py @@ -106,12 +106,12 @@ class Owner(commands.Cog, command_attrs={"hidden": True}): output = res.decoded embed = discord.Embed( - description=self.bot.codeblock(output, "cmd"), + description=self.bot.codeblock(output, ""), timestamp=pendulum.now(), color=discord.Color.green() if res.ok else discord.Color.red(), ) - if res.ok and output != "Already up to date.": + if res.ok and output.strip() != "Already up to date.": view = RestartView(ctx) view.message = await ctx.reply(embed=embed, view=view) return