mirror of
https://github.com/thewesker/ebooks_example.git
synced 2025-12-20 12:21:16 -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",
|
"name": "BooDooBooks",
|
||||||
"description": "Turn-key _ebooks deployment using twitter_ebooks",
|
"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": [
|
"keywords": [
|
||||||
"twitter",
|
"twitter",
|
||||||
"bot",
|
"bot",
|
||||||
@@ -14,11 +14,11 @@
|
|||||||
"env": {
|
"env": {
|
||||||
"LANG": "en_US.UTF-8",
|
"LANG": "en_US.UTF-8",
|
||||||
"BOT_NAME": "",
|
"BOT_NAME": "",
|
||||||
"OWNER_ACCOUNTS": {
|
"OWNER_ACCOUNT": {
|
||||||
"required": false,
|
"required": false,
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
"SOURCE_USERNAMES": {
|
"SOURCE_USERNAME": {
|
||||||
"required": false,
|
"required": false,
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
@@ -59,6 +59,7 @@
|
|||||||
},
|
},
|
||||||
"TIMEOUT_SLEEP": "5",
|
"TIMEOUT_SLEEP": "5",
|
||||||
"MAX_ERROR_RETRIES": "10",
|
"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
|
include Ebooks::Boodoo
|
||||||
|
|
||||||
# Read defaults and lay env vars on top:
|
# 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
|
# Information about a particular Twitter user we know
|
||||||
class UserInfo
|
class UserInfo
|
||||||
@@ -104,7 +104,7 @@ class BoodooBot
|
|||||||
follow_parity
|
follow_parity
|
||||||
end
|
end
|
||||||
|
|
||||||
scheduler.interval @refresh_model_interval do
|
scheduler.interval @update_archive_interval do
|
||||||
log "Refreshing archive/model..."
|
log "Refreshing archive/model..."
|
||||||
# update_archive!
|
# update_archive!
|
||||||
# make_model!
|
# make_model!
|
||||||
|
|||||||
@@ -17,4 +17,4 @@ TIMELINE_DELAY=10..600
|
|||||||
TIMEOUT_SLEEP=5
|
TIMEOUT_SLEEP=5
|
||||||
MAX_ERROR_RETRIES=10
|
MAX_ERROR_RETRIES=10
|
||||||
UPDATE_FOLLOWS_INTERVAL=90m
|
UPDATE_FOLLOWS_INTERVAL=90m
|
||||||
REFRESH_MODEL_INTERVAL=8h
|
UPDATE_ARCHIVE_INTERVAL=8h
|
||||||
|
|||||||
Reference in New Issue
Block a user