This commit is contained in:
artie 2024-03-01 21:14:55 +01:00
parent 43ca4b886d
commit 16f79a833a
2 changed files with 3 additions and 3 deletions

2
bot.py
View File

@ -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

View File

@ -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