Add repo hash to status
This commit is contained in:
parent
b1096a6f92
commit
3df785d16b
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
import jarvis
|
import jarvis
|
||||||
from jarvis import jarvis_self, config, logo
|
from jarvis import jarvis_self, config, logo
|
||||||
from jarvis.utils import convert_bytesize, build_embed
|
from jarvis.utils import convert_bytesize, build_embed, get_repo_hash
|
||||||
from jarvis.utils.field import Field
|
from jarvis.utils.field import Field
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
||||||
|
@ -32,6 +32,7 @@ class UtilCog(commands.Cog):
|
||||||
)
|
)
|
||||||
fields.append(Field("PID", jarvis_self.pid))
|
fields.append(Field("PID", jarvis_self.pid))
|
||||||
fields.append(Field("Version", jarvis.__version__, False))
|
fields.append(Field("Version", jarvis.__version__, False))
|
||||||
|
fields.append(Field("Git Hash", get_repo_hash(), False))
|
||||||
embed = build_embed(
|
embed = build_embed(
|
||||||
title=title, description=desc, fields=fields, color=color
|
title=title, description=desc, fields=fields, color=color
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue