-
Notifications
You must be signed in to change notification settings - Fork 31
/
commenter.yml
43 lines (43 loc) · 2.54 KB
/
commenter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
tag: commenter
datastore:
- config:
hostname: !ENV ${MYSQL_HOST} # localhost or the IP of your DB
username: !ENV ${MYSQL_USERNAME} # DB username
password: !ENV ${MYSQL_PASSWORD} # DB password
db_name: !ENV ${MYSQL_DB_NAME} # The name of your DB/schema
port: 3306
type: mysql
youtube:
- config:
credentials:
- client_id: !ENV ${CLIENT_ID_COMM} # YouTube client ID (see Readme)
client_secret: !ENV ${CLIENT_SECRET_COMM} # YouTube client secret (see Readme)
- client_id: !ENV ${CLIENT_ID_COMM} # YouTube client ID (see Readme)
client_secret: !ENV ${CLIENT_SECRET_COMM} # YouTube client secret (see Readme)
api_version: v3
read_only_scope: https://www.googleapis.com/auth/youtube.force-ssl
username: !ENV ${USERNAME_COMM} # Can be omitted (automatically derived). Useful when you are using a different api key for the accumulator
load_keys_from_cloud: true # cloudstore config is required
keys_path: keys # if true, cloudstore config is required. Loads the YT keys from the specified dropbox folder
sleep_time: !ENV ${SLEEP_TIME_COMM} # Number of seconds to wait until checking for new videos again. Increase this if you are getting api limit errors
fast_sleep_time: !ENV ${FAST_SLEEP_TIME_COMM} # Number of seconds to wait when on fast mode
slow_sleep_time: !ENV ${SLOW_SLEEP_TIME_COMM} # Number of seconds to wait when on slow mode
max_posted_hours: !ENV ${MAX_POSTED_HOURS_COMM} # max num. of hours to check back for posted videos. Set it to 1 the first time your run the commenter
type: !ENV ${YT_API_TYPE_COMM} # normal, simulated, parallel
comments: # options: normal, simulated (simulated is just for testing)
- config:
local_folder_name: comments
dropbox_folder_name: /yt-commenter/comments
type: !ENV ${COMMENTS_TYPE} # local, dropbox (should set `cloudstore` config), or mysql (not implemented)
cloudstore: # Optional
- config:
api_key: !ENV ${DROPBOX_API_KEY} # Dropbox api key, see Readme
logs_folder_path: /yt-commenter/logs # The Dropbox path where the log files are going to be being backed up
keys_folder_path: /yt-commenter/keys # The Dropbox path where the keys are going to be copied locally from
reload_data_every: !ENV ${RELOAD_DATA_EVERY} # Every how many # of loops in the commenter() to reload data and backup logs
type: dropbox
#emailer: # Not implemented yet
# - config:
# email_address: !ENV ${EMAIL_ADDRESS}
# api_key: !ENV ${GMAIL_API_KEY}
# type: gmail