add a default redeems file

This commit is contained in:
Lili (Tlapka) 2022-10-18 14:44:46 +02:00
parent bf49aa16cd
commit a62c718aa1
2 changed files with 8 additions and 1 deletions

View File

@ -15,11 +15,12 @@ def create_app(test_config=None):
pass
# Prepare config: set db to instance folder, then load default, then
# overwrite it with config.py
# overwrite it with config.py and redeems.py
app.config.from_mapping(
DATABASE=os.path.join(app.instance_path, "tlapbot.sqlite")
)
app.config.from_object('tlapbot.default_config')
app.config.from_object('tlapbot.default_redeems')
app.config.from_pyfile('config.py')
app.config.from_pyfile('redeems.py')

View File

@ -0,0 +1,6 @@
REDEEMS={
"hydrate": {"price": 60, "type": "list"},
"lurk": {"price:": 1, "type": "counter"},
"react": {"price:": 200, "type": "note"},
"request": {"price:": 100, "type": "note"}
}