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

23 lines
469 B
Python
Raw Normal View History

2021-03-31 18:08:41 +02:00
from typing import Dict
from structured_config import Structure, StrField
HAS_MODELS = False
class NetworkConfig(Structure):
ipinfoKey: str = StrField("")
geoapifyKey: str = StrField("")
2021-03-31 18:08:41 +02:00
extra: Dict[str, Dict] = {
"ipinfoKey": {
"type": str,
"description": "API Key for ipinfo.io (.iplocalise command)",
},
"geoapifyKey": {
"type": str,
"description": "API Key for geoapify.com (.iplocalise command)",
},
}