preparation for configurable points

This commit is contained in:
Lili (Tlapka) 2022-08-30 15:32:17 +02:00
parent d80ea74a29
commit aa7a53342f
2 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,7 @@ def create_app(test_config=None):
give_points_to_chat(get_db()) give_points_to_chat(get_db())
points_giver = BackgroundScheduler() 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() points_giver.start()
return app return app

View File

@ -2,3 +2,4 @@ SECRET_KEY='dev'
DATABASE='./instance/tlapbot.sqlite' DATABASE='./instance/tlapbot.sqlite'
OWNCAST_ACCESS_TOKEN='' OWNCAST_ACCESS_TOKEN=''
OWNCAST_INSTANCE_URL='http://localhost:8080' OWNCAST_INSTANCE_URL='http://localhost:8080'
POINTS_PER_10_MINUTES=10