remove hard-coded git-url & minor restructuring
This commit is contained in:
parent
d6519d5133
commit
9049b5e637
5 changed files with 12 additions and 6 deletions
0
ext/__init__.py
Normal file
0
ext/__init__.py
Normal file
|
|
@ -4,6 +4,10 @@ import asyncio
|
|||
import lightbulb
|
||||
import hikari
|
||||
|
||||
from lib.config import load_config
|
||||
|
||||
config = load_config()
|
||||
|
||||
plugin = lightbulb.Plugin("SystemPlugin")
|
||||
|
||||
async def get_git_status() -> dict:
|
||||
|
|
@ -52,7 +56,7 @@ async def ping(ctx: lightbulb.Context) -> None:
|
|||
async def info(ctx: lightbulb.Context) -> None:
|
||||
git_status = await get_git_status()
|
||||
embed = hikari.Embed(title="About Me!")
|
||||
embed.add_field("GitHub", "https://gitdab.com/InValidFire/radical-bot")
|
||||
embed.add_field("GitHub", config.git_url)
|
||||
embed.add_field("Version", git_status['commit_id'], inline=True)
|
||||
embed.add_field("Branch", git_status['branch'], inline=True)
|
||||
embed.add_field("In Dev-Env?", git_status['dev'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue