diff --git a/tlapbot/__init__.py b/tlapbot/__init__.py index c3fcdfd..c5a9368 100644 --- a/tlapbot/__init__.py +++ b/tlapbot/__init__.py @@ -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') diff --git a/tlapbot/default_redeems.py b/tlapbot/default_redeems.py new file mode 100644 index 0000000..192bcc0 --- /dev/null +++ b/tlapbot/default_redeems.py @@ -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"} +} \ No newline at end of file