mirror of
https://github.com/artiemis/artemis.git
synced 2026-02-14 08:31:55 +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
|
import traceback
|
||||||
from functools import cached_property
|
from functools import cached_property
|
||||||
from pkgutil import iter_modules
|
from pkgutil import iter_modules
|
||||||
from typing import Literal, Optional, TypedDict
|
from typing import Optional, TypedDict
|
||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import discord
|
import discord
|
||||||
|
|||||||
@ -106,12 +106,12 @@ class Owner(commands.Cog, command_attrs={"hidden": True}):
|
|||||||
output = res.decoded
|
output = res.decoded
|
||||||
|
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
description=self.bot.codeblock(output, "cmd"),
|
description=self.bot.codeblock(output, ""),
|
||||||
timestamp=pendulum.now(),
|
timestamp=pendulum.now(),
|
||||||
color=discord.Color.green() if res.ok else discord.Color.red(),
|
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 = RestartView(ctx)
|
||||||
view.message = await ctx.reply(embed=embed, view=view)
|
view.message = await ctx.reply(embed=embed, view=view)
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user