-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.properties-example
More file actions
38 lines (34 loc) · 1.3 KB
/
app.properties-example
File metadata and controls
38 lines (34 loc) · 1.3 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
APP_NAME=CurrencyChatBot
# Bot credentials:
APP_BOT_NAME=here your bot name
APP_BOT_TOKEN=here your bot token
# Time zone: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
APP_TIME_ZONE=Europe/Kyiv
# User storage functionality:
# Enable/disable. save/load to/from json, database, etc.
APP_USERS_USE_STORAGE=true
# storage folder
APP_USERS_STORAGE_FOLDER=./bot-users
# storage provider. file | sqlite
APP_USERS_STORAGE_PROVIDER=file
# Default parameters for banks:
# Currency to get from each bank. separate by comma: USD,EUR,...
BANK_CURRENCY=USD,EUR,GBP,PLN
# Frequency of requests to banks for latest exchange rates (minutes)
BANK_FREQUENCY_REQUEST=1
# URLs of API bank pages
BANK_PB_API_URL=https://api.privatbank.ua/p24api/pubinfo?json&exchange&coursid=5
BANK_MB_API_URL=https://api.monobank.ua/bank/currency
BANK_NBU_API_URL=https://bank.gov.ua/NBUStatService/v1/statdirectory/exchange?json
# Default parameters for each new user
# only one (example: PB - Privat Bank, MB - Mono Bank, NBU - National Bank of Ukraine)
USER_DEF_BANK=PB
# only one of (USD | EUR | GBP | PLN)
USER_DEF_CURRENCY=USD
# Currency decimal places. One of: 2 | 3 | 4
USER_DEF_DECIMAL_PLACES=2
# Time to get exchange rates
# one of: 9 | 10 | 11 |...18
USER_DEF_NOTIFY_TIME=9
# Enable/disable One of: true | false
USER_DEF_NOTIFY_ENABLED=true