mirror of
https://github.com/artiemis/artemis.git
synced 2026-02-14 00:21:56 +00:00
eh
This commit is contained in:
parent
43ca4b886d
commit
16f79a833a
2
bot.py
2
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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user