background behaviors refactor: (fixes #23)

- move auto-play, auto-fetch and auto-scroll behaviors to behaviors/global/*
- bgbehaviors manages these background behaviors
- command line --bgbehaviors option specifies which background behaviors to run (defaults to auto-fetch and auto-play)
This commit is contained in:
Ilya Kreymer
2021-02-08 22:21:34 -08:00
parent 7cfeefd19b
commit 8c85ca2749
8 changed files with 408 additions and 288 deletions

View File

@@ -35,6 +35,7 @@ RUN yarn install
ADD config.yaml /app/
ADD uwsgi.ini /app/
ADD *.js /app/
ADD behaviors/ /app/behaviors/
RUN ln -s /app/main.js /usr/bin/crawl