Compare commits

...

2 Commits

Author SHA1 Message Date
Amber 12fb5a558d Merge branch 'master' into dev 2022-03-22 14:25:04 -05:00
Amber 7ca6109f79 syncing this with my previous fork 2022-03-22 14:22:46 -05:00
1 changed files with 1 additions and 1 deletions

View File

@ -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)
json.dump(cfg, open(args.cfg, "w+")) open(args.cfg, "w").write(re.sub(",", ",\n", json.dumps(cfg)))
def extract_toot(toot): def extract_toot(toot):