From aa7a53342f78f9964ee4d49bd3203d73ec6eea4c Mon Sep 17 00:00:00 2001 From: Lili Date: Tue, 30 Aug 2022 15:32:17 +0200 Subject: [PATCH] preparation for configurable points --- tlapbot/__init__.py | 2 +- tlapbot/default_config.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tlapbot/__init__.py b/tlapbot/__init__.py index 30f17cf..7bd2a04 100644 --- a/tlapbot/__init__.py +++ b/tlapbot/__init__.py @@ -25,7 +25,7 @@ def create_app(test_config=None): give_points_to_chat(get_db()) points_giver = BackgroundScheduler() - points_giver.add_job(proxy_job, 'interval', seconds=10) + points_giver.add_job(proxy_job, 'interval', seconds=10) # change to 10 minutes out of testing points_giver.start() return app diff --git a/tlapbot/default_config.py b/tlapbot/default_config.py index 1afe300..33803c7 100644 --- a/tlapbot/default_config.py +++ b/tlapbot/default_config.py @@ -1,4 +1,5 @@ SECRET_KEY='dev' DATABASE='./instance/tlapbot.sqlite' OWNCAST_ACCESS_TOKEN='' -OWNCAST_INSTANCE_URL='http://localhost:8080' \ No newline at end of file +OWNCAST_INSTANCE_URL='http://localhost:8080' +POINTS_PER_10_MINUTES=10 \ No newline at end of file