From 16fd995e96e872813beee1c221b2188d949da92d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 28 Jul 2021 13:34:23 +0200 Subject: [PATCH] Better changelogs display in infos command + difference between host and dev --- src/cogs/utils.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/cogs/utils.py b/src/cogs/utils.py index d95618e..000b9e2 100644 --- a/src/cogs/utils.py +++ b/src/cogs/utils.py @@ -235,17 +235,21 @@ class Utils(commands.Cog): 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"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 = "Prefix", value = f"`{ctx.prefix}`") 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 = "Version", value = f"`{version}`") changes = getChangelogs(version) + version = f"`{getActualVersion()}`" 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__}") try: if fromSlash != True: