Browse Source

Slight tweak in pseud.json config format

pull/1/head
Albert Sanchez 8 months ago
parent
commit
c6b7929167
  1. 12
      README.md
  2. 12
      examples/pseud.example.json
  3. 2
      pseudbot/cli.py

12
README.md

@ -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"
}
}
```

12
examples/pseud.example.json

@ -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"
}
}

2
pseudbot/cli.py

@ -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)

Loading…
Cancel
Save