this change adds self validation in __init__, allows to make config values with different types (not just string) and stores config values in classes for easier accessibility Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
17 lines
No EOL
601 B
INI
17 lines
No EOL
601 B
INI
[General]
|
|
; HTTP API token of Telegram bot.
|
|
; Can also be set with the BOT_TOKEN environment variable.
|
|
Token =
|
|
; (Optional) URL for "source code" button in /about.
|
|
; If not set, button will not appear in "about" menu.
|
|
SourceUrl = git.mctaylors.ru
|
|
|
|
[App]
|
|
; Application name (e.g. Danbooru).
|
|
Name = Danbooru
|
|
; Host (without http://) used to access the application API.
|
|
Host = stashboo.ru
|
|
; (Optional) Public host name (without http://) for the “Open in [App.Name]” button.
|
|
; Useful if the bot is hosted on the same server as the application.
|
|
; If not set, [App.Host] will be used instead.
|
|
HostName = |