Slight tweak in pseud.json config format

This commit is contained in:
2021-11-05 21:52:27 -05:00
parent b95e56dd0d
commit c6b7929167
3 changed files with 15 additions and 11 deletions
+7 -5
View File
@@ -61,11 +61,13 @@ Create a file named `pseud.json` with your editor and paste in the API keys you
just created on Twitter's developer page in the previous step:
```json
{
"consumer": "key goes here",
"consumer_secret": "key goes here",
"bearer_token": "key goes here",
"tok": "key goes here",
"tok_secret": "key goes here"
"twitter": {
"consumer": "key goes here",
"consumer_secret": "key goes here",
"bearer_token": "key goes here",
"tok": "key goes here",
"tok_secret": "key goes here"
}
}
```
+7 -5
View File
@@ -1,7 +1,9 @@
{
"consumer": "key goes here",
"consumer_secret": "key goes here",
"bearer_token": "key goes here",
"tok": "key goes here",
"tok_secret": "key goes here"
"twitter": {
"consumer": "key goes here",
"consumer_secret": "key goes here",
"bearer_token": "key goes here",
"tok": "key goes here",
"tok_secret": "key goes here"
}
}
+1 -1
View File
@@ -69,7 +69,7 @@ def main(args: [str], name: str) -> int:
custom_welcome = get_timestamp_s() + ': Running method: "{}"'.format(
opts.action
)
tcfg = j.loads(opts.cfg_json.read())
tcfg = j.loads(opts.cfg_json.read())["twitter"]
if opts.action == "run_bot":
pb = PseudBot(tcfg=tcfg, proxy_url=opts.proxy_url, debug=opts.debug)