mirror of
https://github.com/thewesker/ebooks_example.git
synced 2025-12-20 04:11:13 -05:00
Re-aligning meta
- Rename archive_update_interval - Roll back overscoped multiple source/admin users support placeholder - Point app.json to persist-cloudinary branch
This commit is contained in:
9
app.json
9
app.json
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "BooDooBooks",
|
||||
"description": "Turn-key _ebooks deployment using twitter_ebooks",
|
||||
"repository": "https://github.com/BooDoo/ebooks_example/tree/deploy",
|
||||
"repository": "https://github.com/BooDoo/ebooks_example/tree/persist-ckoudinary",
|
||||
"keywords": [
|
||||
"twitter",
|
||||
"bot",
|
||||
@@ -14,11 +14,11 @@
|
||||
"env": {
|
||||
"LANG": "en_US.UTF-8",
|
||||
"BOT_NAME": "",
|
||||
"OWNER_ACCOUNTS": {
|
||||
"OWNER_ACCOUNT": {
|
||||
"required": false,
|
||||
"value": ""
|
||||
},
|
||||
"SOURCE_USERNAMES": {
|
||||
"SOURCE_USERNAME": {
|
||||
"required": false,
|
||||
"value": ""
|
||||
},
|
||||
@@ -59,6 +59,7 @@
|
||||
},
|
||||
"TIMEOUT_SLEEP": "5",
|
||||
"MAX_ERROR_RETRIES": "10",
|
||||
"UPDATE_FOLLOWS_INTERVAL": "90m"
|
||||
"UPDATE_FOLLOWS_INTERVAL": "90m",
|
||||
"UPDATE_ARCHIVE_INTERVAL": "8h"
|
||||
}
|
||||
}
|
||||
|
||||
4
bots.rb
4
bots.rb
@@ -5,7 +5,7 @@ require 'dotenv'
|
||||
include Ebooks::Boodoo
|
||||
|
||||
# Read defaults and lay env vars on top:
|
||||
SETTINGS = Dotenv.load('secrets.env').merge(ENV)
|
||||
SETTINGS = Dotenv.load('defaults.env').merge(ENV)
|
||||
|
||||
# Information about a particular Twitter user we know
|
||||
class UserInfo
|
||||
@@ -104,7 +104,7 @@ class BoodooBot
|
||||
follow_parity
|
||||
end
|
||||
|
||||
scheduler.interval @refresh_model_interval do
|
||||
scheduler.interval @update_archive_interval do
|
||||
log "Refreshing archive/model..."
|
||||
# update_archive!
|
||||
# make_model!
|
||||
|
||||
@@ -17,4 +17,4 @@ TIMELINE_DELAY=10..600
|
||||
TIMEOUT_SLEEP=5
|
||||
MAX_ERROR_RETRIES=10
|
||||
UPDATE_FOLLOWS_INTERVAL=90m
|
||||
REFRESH_MODEL_INTERVAL=8h
|
||||
UPDATE_ARCHIVE_INTERVAL=8h
|
||||
|
||||
Reference in New Issue
Block a user