Skip to content

Commit

Permalink
Add version in Status command.
Browse files Browse the repository at this point in the history
  • Loading branch information
s0me-1 committed Jul 16, 2022
1 parent f611c62 commit 08c205b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

class DevTracker(commands.InteractionBot):

__version__ = "1.2.2"

def __init__(self):


Expand Down
2 changes: 2 additions & 0 deletions cogs/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -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 = []
Expand Down

0 comments on commit 08c205b

Please sign in to comment.