mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-22 05:54:18 +00:00
86 lines
3.3 KiB
INI
86 lines
3.3 KiB
INI
# greed configuration file
|
|
|
|
# boolean parameters should be written in lowercase
|
|
|
|
# Config file parameters
|
|
[Config]
|
|
; Config file version. DO NOT EDIT THIS!
|
|
version = 15
|
|
; Set this to no when you are done editing the file
|
|
is_template = yes
|
|
; Language code for string file
|
|
; Available languages:
|
|
; it_IT - Italian, by Steffo
|
|
; en_US - English, by https://github.com/DarrenWestwood (incomplete, please improve it!)
|
|
language = it_IT
|
|
|
|
# Telegram bot parameters
|
|
[Telegram]
|
|
; Your bot token goes here. Get one from @BotFather!
|
|
token = 123456789:YOUR_TOKEN_GOES_HERE_______________
|
|
; Time in seconds before a conversation (thread) with no new messages expires
|
|
; A lower value reduces memory usage, but can be inconvenient for the users
|
|
conversation_timeout = 7200
|
|
; Time to wait before sending another update request if there are no messages
|
|
long_polling_timeout = 30
|
|
; Time in seconds before retrying a request if it times out
|
|
timed_out_pause = 1
|
|
; Time in seconds before retrying a request that returned an error
|
|
error_pause = 5
|
|
|
|
# Database parameters
|
|
[Database]
|
|
; The database engine you want to use.
|
|
; Refer to http://docs.sqlalchemy.org/en/latest/core/engines.html for the possible settings.
|
|
engine = sqlite:///database.sqlite
|
|
|
|
# General payment settings
|
|
[Payments]
|
|
; ISO currency code
|
|
currency = EUR
|
|
; Currency exp parameter. You can find that on https://core.telegram.org/bots/payments/currencies.json.
|
|
; It has a value of 2 in most currencies (EUR, USD, GBP...)
|
|
currency_exp = 2
|
|
|
|
# Credit card payment settings
|
|
[Credit Card]
|
|
; Provider token: get the token by linking the payment provider with @BotFather
|
|
credit_card_token = 123456789:YOUR_TOKEN_HERE_
|
|
; Minimum wallet payment accepted (in miniumum currency units, $1.00 = 100 units)
|
|
min_amount = 1000
|
|
; Maximum wallet payment accepted (in miniumum currency units, $1.00 = 100 units)
|
|
max_amount = 10000
|
|
; Make the user pay a extra fee when adding credit to the wallet with a credit card
|
|
; The formula for determining the total cost is:
|
|
; cost = added_funds + added_funds * fee_percentage / 100 + fee_fixed
|
|
; Set these values to 0 to disable the feature.
|
|
fee_percentage = 2.9
|
|
fee_fixed = 30
|
|
; "Shipping" information
|
|
; Telegram can ask for extra information when charging the user for a credit card transaction
|
|
; Set to yes the data you want to be required
|
|
; This data will be stored in the database
|
|
name_required = yes
|
|
email_required = yes
|
|
phone_required = yes
|
|
|
|
# Bot appearance settings
|
|
[Appearance]
|
|
; Display the full order information to the customers instead of the shortened version
|
|
; The full order information includes the order number and the timestamp of the order placement
|
|
full_order_info = no
|
|
|
|
# Exception reporting settings
|
|
[Error Reporting]
|
|
; Optional sentry token: get the token at https://sentry.io/ or ask @Steffo for one
|
|
; Needed to automatically report bugs found by the users in the code.
|
|
sentry_token = https://00000000000000000000000000000000:00000000000000000000000000000000@sentry.io/0000000
|
|
|
|
# Logging settings
|
|
[Logging]
|
|
; The output format for the messages printed to the console
|
|
; See https://docs.python.org/3/library/logging.html#logrecord-attributes for information about the {}-attributes
|
|
format = {asctime} | {threadName} | {name} | {message}
|
|
; Logging level: ignore all log entries with a level lower than the specified one
|
|
; Valid options are FATAL, ERROR, WARNING, INFO, and DEBUG
|
|
level = INFO
|