From a62c718aa194924e90e4f9e92cdf1c70afcafc86 Mon Sep 17 00:00:00 2001 From: Lili Date: Tue, 18 Oct 2022 14:44:46 +0200 Subject: [PATCH] add a default redeems file --- tlapbot/__init__.py | 3 ++- tlapbot/default_redeems.py | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tlapbot/default_redeems.py 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