forked from AnimeKaizoku/EnterpriseALRobot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frontend.py
26 lines (20 loc) · 832 Bytes
/
frontend.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from dearpygui.core import *
from dearpygui.simple import *
from platform import python_version
from tg_bot.__main__ import STATS
try:
from telegram import __version__ as pver
except ImportError:
pver = "N/A"
with window("About"):
add_text("Kigyo telegram bot")
add_text("Maintained with <3 by Dank-del (github.com/Dank-del)")
add_text("Enviroment:")
add_text(f"Bot lib: python-telegram-bot v{pver}.", bullet=True)
add_text(f"Python version: {python_version()}.", bullet=True)
add_text("Source:")
add_text("GitHub: github.com/Dank-del/EnterpriseALRobot", bullet=True)
add_text("GitLab: gitlab.com/Dank-del/EnterpriseALRobot", bullet=True)
with window("stats"):
add_text("\n*Bot statistics*:\n"+ "\n".join([mod.__stats__() for mod in STATS]))
start_dearpygui(primary_window="About")