Compare commits
No commits in common. "12fb5a558d9b8748c5ae0ba22446cf499ace2a6d" and "cc9bde1da9cf40e65ff3eb26837e02c6f0c28ca5" have entirely different histories.
12fb5a558d
...
cc9bde1da9
2
main.py
2
main.py
|
@ -69,7 +69,7 @@ if "secret" not in cfg:
|
||||||
print("Open this URL and authenticate to give mstdn-ebooks access to your bot's account: {}".format(client.auth_request_url(scopes=scopes)))
|
print("Open this URL and authenticate to give mstdn-ebooks access to your bot's account: {}".format(client.auth_request_url(scopes=scopes)))
|
||||||
cfg['secret'] = client.log_in(code=input("Secret: "), scopes=scopes)
|
cfg['secret'] = client.log_in(code=input("Secret: "), scopes=scopes)
|
||||||
|
|
||||||
open(args.cfg, "w").write(re.sub(",", ",\n", json.dumps(cfg)))
|
json.dump(cfg, open(args.cfg, "w+"))
|
||||||
|
|
||||||
|
|
||||||
def extract_toot(toot):
|
def extract_toot(toot):
|
||||||
|
|
Loading…
Reference in New Issue