add git fetch before info is gathered
This commit is contained in:
parent
1bd6e3709c
commit
05acd6e4b0
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@ async def branch_switch(ctx: lightbulb.Context) -> None:
|
||||||
@lightbulb.command("info", "get bot information such as the version, and repository link.", ephemeral=True)
|
@lightbulb.command("info", "get bot information such as the version, and repository link.", ephemeral=True)
|
||||||
@lightbulb.implements(lightbulb.SlashCommand)
|
@lightbulb.implements(lightbulb.SlashCommand)
|
||||||
async def info(ctx: lightbulb.Context) -> None:
|
async def info(ctx: lightbulb.Context) -> None:
|
||||||
|
await create_subprocess("git", "fetch") # updates with remote
|
||||||
git_status = await get_git_status()
|
git_status = await get_git_status()
|
||||||
embed = hikari.Embed(title="About Me!")
|
embed = hikari.Embed(title="About Me!")
|
||||||
embed.add_field("Git Repository", config.git_url)
|
embed.add_field("Git Repository", config.git_url)
|
||||||
|
|
Loading…
Reference in a new issue