mirror of
https://github.com/pseudbot/pseudbot.git
synced 2026-05-26 14:05:07 +00:00
Slight tweak in pseud.json config format
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user