tuxbot-bot/tuxbot/cogs/Dev/config.py

23 lines
499 B
Python
Raw Normal View History

from structured_config import Structure, StrField
HAS_MODELS = False
class DevConfig(Structure):
url: str = StrField("")
login: str = StrField("")
password: str = StrField("")
extra = {
"url": {
"type": str,
2020-11-09 01:18:55 +01:00
"description": "URL of the YouTrack instance (without /youtrack/)",
},
2020-11-09 01:18:55 +01:00
"login": {"type": str, "description": "Login for YouTrack instance"},
"password": {
"type": str,
"description": "Password for YouTrack instance",
},
}