Compare commits
3 commits
6b4fa46ae4
...
1accbedd0f
Author | SHA1 | Date | |
---|---|---|---|
1accbedd0f | |||
788f0a45dd | |||
eaf3d114a6 |
3 changed files with 7 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ __pycache__
|
|||
reply.py
|
||||
config.json
|
||||
corpus.txt
|
||||
model.json
|
||||
|
|
6
gen.py
6
gen.py
|
@ -28,8 +28,10 @@ cfg = json.load(open('config.json', 'r'))
|
|||
|
||||
toot = create.make_toot()
|
||||
if not args.simulate:
|
||||
client = Mastodon(client_id = cfg['client']['id'],
|
||||
client_secret = cfg['client']['secret'],
|
||||
client = Mastodon(
|
||||
client_id=cfg['client']['id'],
|
||||
client_secret=cfg['client']['secret'],
|
||||
access_token=cfg['secret'],
|
||||
api_base_url=cfg['site'])
|
||||
|
||||
try:
|
||||
|
|
2
main.py
2
main.py
|
@ -34,7 +34,7 @@ except:
|
|||
|
||||
if "client" not in cfg:
|
||||
print("No application info -- registering application with {}".format(cfg['site']))
|
||||
client_id, client_secret = Mastodon.create_app("mstdn-ebooks",
|
||||
client_id, client_secret = Mastodon.create_app("txtbooks",
|
||||
api_base_url=cfg['site'],
|
||||
scopes=scopes,
|
||||
website="https://git.lynnesbian.space/Lynnesbian/txtbooks")
|
||||
|
|
Loading…
Reference in a new issue