Add Configuration Validator #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
class ConfigValidator:
REQUIRED = ['DISCORD_TOKEN', 'GUILD_ID']
OPTIONAL = {
'MINECRAFT_RCON_PASSWORD': 'Minecraft commands',
'PELICAN_API_KEY': 'Pelican integration',
'OLLAMA_URL': '/ask command'
}
In main:
if name == "main":
errors, warnings = ConfigValidator.validate()