Better changelogs display in infos command + difference between host and dev

This commit is contained in:
Mylloon 2021-07-28 13:34:23 +02:00
parent 92fe7a0e92
commit 16fd995e96

View file

@ -235,17 +235,21 @@ class Utils(commands.Cog):
version = getActualVersion() version = getActualVersion()
embed.add_field(name = "Dev", value = f"[{appinfo.owner}](https://gitlab.com/Mylloon)") dev = self.client.get_user(158260864623968257)
embed.add_field(name = "Dev", value = f"[{dev.name}](https://gitlab.com/Mylloon)")
embed.add_field(name = "Host", value = appinfo.owner.mention)
embed.add_field(name = f"Serveur{'s' if nombreServeur > 1 else ''}", value = f"`{nombreServeur}`") embed.add_field(name = f"Serveur{'s' if nombreServeur > 1 else ''}", value = f"`{nombreServeur}`")
embed.add_field(name = f"Membre{'s' if total_unique > 1 else ''}", value = f"`{total_unique}` au total\n`{total_online}` en ligne") embed.add_field(name = f"Membre{'s' if total_unique > 1 else ''}", value = f"`{total_unique}` au total\n`{total_online}` en ligne")
embed.add_field(name = f"Salon{'s' if (text + voice) > 1 else ''}", value = f"`{text}` textuel{'s' if text > 1 else ''}\n`{voice}` voca{'ux' if voice > 1 else 'l'}") embed.add_field(name = f"Salon{'s' if (text + voice) > 1 else ''}", value = f"`{text}` textuel{'s' if text > 1 else ''}\n`{voice}` voca{'ux' if voice > 1 else 'l'}")
embed.add_field(name = "Prefix", value = f"`{ctx.prefix}`") embed.add_field(name = "Prefix", value = f"`{ctx.prefix}`")
embed.add_field(name = "Code source", value = "[Lien Gitlab](https://gitlab.com/ConfrerieDuKassoulait/KassouBot)") embed.add_field(name = "Code source", value = "[Lien Gitlab](https://gitlab.com/ConfrerieDuKassoulait/KassouBot)")
embed.add_field(name = "Timezone", value = f"`{self.customTimezone}`") embed.add_field(name = "Timezone", value = f"`{self.customTimezone}`")
embed.add_field(name = "Version", value = f"`{version}`")
changes = getChangelogs(version) changes = getChangelogs(version)
version = f"`{getActualVersion()}`"
if changes[0] == 200: if changes[0] == 200:
embed.add_field(name = "Changements", value = f"[Lien Gitlab]({changes[1]})") version = f"[{version}]({changes[1]})"
embed.add_field(name = "Version", value = version)
embed.set_footer(text = f"Basé sur discord.py {discord.__version__}") embed.set_footer(text = f"Basé sur discord.py {discord.__version__}")
try: try:
if fromSlash != True: if fromSlash != True: