mirror of
https://github.com/AgathaSorceress/mstdn-ebooks.git
synced 2024-11-20 03:25:53 +01:00
don't create a client when simulating
This commit is contained in:
parent
8fe30f0c88
commit
2b2824a73e
13
gen.py
13
gen.py
@ -15,11 +15,14 @@ args = parser.parse_args()
|
|||||||
|
|
||||||
cfg = json.load(open('config.json'))
|
cfg = json.load(open('config.json'))
|
||||||
|
|
||||||
client = Mastodon(
|
client = None
|
||||||
client_id=cfg['client']['id'],
|
|
||||||
client_secret=cfg['client']['secret'],
|
if not args.simulate:
|
||||||
access_token=cfg['secret'],
|
client = Mastodon(
|
||||||
api_base_url=cfg['site'])
|
client_id=cfg['client']['id'],
|
||||||
|
client_secret=cfg['client']['secret'],
|
||||||
|
access_token=cfg['secret'],
|
||||||
|
api_base_url=cfg['site'])
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
toot = functions.make_toot()
|
toot = functions.make_toot()
|
||||||
|
Loading…
Reference in New Issue
Block a user