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