add git fetch before info is gathered

This commit is contained in:
Riley Housden 2022-08-20 01:22:42 -04:00
parent 1bd6e3709c
commit 05acd6e4b0
Signed by: InValidFire
GPG key ID: 0D6208F6DF56B4D8

View file

@ -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.implements(lightbulb.SlashCommand)
async def info(ctx: lightbulb.Context) -> None:
await create_subprocess("git", "fetch") # updates with remote
git_status = await get_git_status()
embed = hikari.Embed(title="About Me!")
embed.add_field("Git Repository", config.git_url)