|
1 | 1 | tag: commenter |
2 | 2 | datastore: |
3 | 3 | - config: |
4 | | - hostname: !ENV ${MYSQL_HOST} |
5 | | - username: !ENV ${MYSQL_USERNAME} |
6 | | - password: !ENV ${MYSQL_PASSWORD} |
7 | | - db_name: !ENV ${MYSQL_DB_NAME} |
| 4 | + hostname: !ENV ${MYSQL_HOST} # localhost or the IP of your DB |
| 5 | + username: !ENV ${MYSQL_USERNAME} # DB username |
| 6 | + password: !ENV ${MYSQL_PASSWORD} # DB password |
| 7 | + db_name: !ENV ${MYSQL_DB_NAME} # The name of your DB/schema |
8 | 8 | port: 3306 |
9 | 9 | type: mysql |
10 | 10 | youtube: |
11 | 11 | - config: |
12 | | - client_id: !ENV ${CLIENT_ID_COMM} |
13 | | - client_secret: !ENV ${CLIENT_SECRET_COMM} |
| 12 | + client_id: !ENV ${CLIENT_ID_COMM} # YouTube client ID (see Readme) |
| 13 | + client_secret: !ENV ${CLIENT_SECRET_COMM} # YouTube client secret (see Readme) |
14 | 14 | api_version: v3 |
15 | 15 | read_only_scope: https://www.googleapis.com/auth/youtube.force-ssl |
16 | | - username: !ENV ${USERNAME_COMM} # Can be omitted (automatically derived) |
| 16 | + username: !ENV ${USERNAME_COMM} # Can be omitted (automatically derived). Useful when you are using a different api key for the accumulator |
17 | 17 | load_keys_from_cloud: true # cloudstore config is required |
18 | | - keys_path: keys |
19 | | - sleep_time: !ENV ${SLEEP_TIME_COMM} |
20 | | - max_posted_hours: !ENV ${MAX_POSTED_HOURS_COMM} # max num. of hours to check back for posted videos |
| 18 | + keys_path: keys # if true, cloudstore config is required. Loads the YT keys from the specified dropbox folder |
| 19 | + 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 |
| 20 | + 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 |
21 | 21 | type: normal # normal, simulated |
22 | | -comments: |
| 22 | +comments: # options: normal, simulated (simulated is just for testing) |
23 | 23 | - config: |
24 | 24 | local_folder_name: comments |
25 | 25 | dropbox_folder_name: /yt-commenter/comments |
26 | 26 | type: !ENV ${COMMENTS_TYPE} # local, dropbox (should set `cloudstore` config), or mysql (not implemented) |
27 | 27 | cloudstore: # Optional |
28 | 28 | - config: |
29 | | - api_key: !ENV ${DROPBOX_API_KEY} |
30 | | - logs_folder_path: /yt-commenter/logs |
31 | | - keys_folder_path: /yt-commenter/keys |
32 | | - reload_data_every: !ENV ${RELOAD_DATA_EVERY} # number of loops in commenter() |
| 29 | + api_key: !ENV ${DROPBOX_API_KEY} # Dropbox api key, see Readme |
| 30 | + logs_folder_path: /yt-commenter/logs # The Dropbox path where the log files are going to be being backed up |
| 31 | + keys_folder_path: /yt-commenter/keys # The Dropbox path where the keys are going to be copied locally from |
| 32 | + reload_data_every: !ENV ${RELOAD_DATA_EVERY} # Every how many # of loops in the commenter() to reload data and backup logs |
33 | 33 | type: dropbox |
34 | 34 | #emailer: # Not implemented yet |
35 | 35 | # - config: |
|
0 commit comments