mirror of
https://github.com/artiemis/artemis.git
synced 2026-02-14 08:31:55 +00:00
minor fixes
This commit is contained in:
parent
7a66139810
commit
43ca4b886d
@ -103,14 +103,15 @@ class Owner(commands.Cog, command_attrs={"hidden": True}):
|
|||||||
await self.message.edit(view=None)
|
await self.message.edit(view=None)
|
||||||
|
|
||||||
res = await utils.run_cmd("git pull")
|
res = await utils.run_cmd("git pull")
|
||||||
|
output = res.decoded
|
||||||
|
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
description=self.bot.codeblock(res.decoded, "cmd"),
|
description=self.bot.codeblock(output, "cmd"),
|
||||||
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:
|
if res.ok and output != "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