From 08c205be56cc43e73d5ed309f8b18288e6daa914 Mon Sep 17 00:00:00 2001 From: s0me-1 Date: Sat, 16 Jul 2022 14:48:41 +0200 Subject: [PATCH] Add version in Status command. --- bot.py | 2 ++ cogs/settings.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/bot.py b/bot.py index a65afb3..63c0eae 100644 --- a/bot.py +++ b/bot.py @@ -37,6 +37,8 @@ class DevTracker(commands.InteractionBot): + __version__ = "1.2.2" + def __init__(self): diff --git a/cogs/settings.py b/cogs/settings.py index e6f3e65..b3f85c1 100644 --- a/cogs/settings.py +++ b/cogs/settings.py @@ -41,6 +41,7 @@ async def status(self, inter : disnake.ApplicationCommandInteraction): api_status_code, latency = await API.get_status() emoji = "✅" if api_status_code == 200 else "❌" api_status = f"API Status - {emoji} ({api_status_code})" + version = f'v{self.bot.__getattribute__("__version__")}' description = "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n" \ "Need any help ? You can find some here :\n" \ @@ -55,6 +56,7 @@ async def status(self, inter : disnake.ApplicationCommandInteraction): emb.set_author(name="⚙️ Current config") emb.add_field(name='Default Channel', value=chname, inline=True) emb.add_field(name=api_status, value=api_md, inline=True) + emb.add_field(name='Bot Version', value=version, inline=True) emb.add_field(name='📡 Followed Games', value=fw_tabs[0], inline=False) embeds = []