Add total number of commands to status
This commit is contained in:
parent
d70de07a28
commit
880a8c01ff
1 changed files with 21 additions and 4 deletions
|
@ -56,14 +56,31 @@ class UtilCog(Extension):
|
||||||
@cooldown(bucket=Buckets.CHANNEL, rate=1, interval=30)
|
@cooldown(bucket=Buckets.CHANNEL, rate=1, interval=30)
|
||||||
async def _status(self, ctx: InteractionContext) -> None:
|
async def _status(self, ctx: InteractionContext) -> None:
|
||||||
title = "JARVIS Status"
|
title = "JARVIS Status"
|
||||||
desc = f"All systems online\nConnected to **{len(self.bot.guilds)}** guilds"
|
desc = (
|
||||||
|
f"All systems online"
|
||||||
|
f"\nConnected to **{len(self.bot.guilds)}** guilds"
|
||||||
|
f"\nListening for **{len(self.bot.application_commands)}** commands"
|
||||||
|
)
|
||||||
color = "#3498db"
|
color = "#3498db"
|
||||||
fields = []
|
fields = []
|
||||||
uptime = int(self.bot.start_time.timestamp())
|
uptime = int(self.bot.start_time.timestamp())
|
||||||
|
|
||||||
fields.append(EmbedField(name="Version", value=jconst.__version__, inline=True))
|
fields.append(
|
||||||
fields.append(EmbedField(name="naff", value=const.__version__, inline=True))
|
EmbedField(
|
||||||
fields.append(EmbedField(name="Git Hash", value=get_repo_hash()[:7], inline=True))
|
name="Version",
|
||||||
|
value=f"[{jconst.__version__}](https://git.zevaryx.com/stark-industries/jarvis/jarvis-bot)",
|
||||||
|
inline=True,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
fields.append(
|
||||||
|
EmbedField(name="NAFF", value=f"[{const.__version__}](https://naff.info)", inline=True)
|
||||||
|
)
|
||||||
|
repo_url = (
|
||||||
|
f"https://git.zevaryx.com/stark-industries/jarvis/jarvis-bot/-/tree/{get_repo_hash()}"
|
||||||
|
)
|
||||||
|
fields.append(
|
||||||
|
EmbedField(name="Git Hash", value=f"[{get_repo_hash()[:7]}]({repo_url})", inline=True)
|
||||||
|
)
|
||||||
fields.append(EmbedField(name="Online Since", value=f"<t:{uptime}:F>", inline=False))
|
fields.append(EmbedField(name="Online Since", value=f"<t:{uptime}:F>", inline=False))
|
||||||
num_domains = len(self.bot.phishing_domains)
|
num_domains = len(self.bot.phishing_domains)
|
||||||
fields.append(
|
fields.append(
|
||||||
|
|
Loading…
Add table
Reference in a new issue