From a3fb1ba111fd57142463b4cce8e0cb881c3aaeca Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 26 Oct 2018 00:35:25 +1000 Subject: [PATCH] fixed it for real this time oops --- gen.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gen.py b/gen.py index c34dac5..4622b20 100755 --- a/gen.py +++ b/gen.py @@ -15,12 +15,13 @@ parser.add_argument('-s', '--simulate', dest='simulate', action='store_true', args = parser.parse_args() -cfg = json.load(open('config.json', 'r')) +cfg = json.load(open('config.json')) client = Mastodon( - client_id="clientcred.secret", - access_token="usercred.secret", - api_base_url=cfg['site']) + client_id=cfg['client']['id'], + client_secret=cfg['client']['secret'], + access_token=cfg['secret'], + api_base_url=cfg['site']) toot = create.make_toot() if not args.simulate: @@ -34,7 +35,7 @@ if not args.simulate: except Exception as err: toot = { "toot": - "Mistress @lynnesbian@deadinsi.de, something has gone terribly" \ + "Mistress @lynnesbian@fedi.lynnesbian.space, something has gone terribly" \ + " wrong! While attempting to post a toot, I received the following" \ + " error:\n" + "\n".join(traceback.format_tb(sys.exc_info()[2])) }