now it will actually work without a useless stub file i forgot to remove .-.
This commit is contained in:
parent
8efb4b8521
commit
8e7e3fb2c4
1 changed files with 1 additions and 4 deletions
5
gen.py
5
gen.py
|
@ -2,10 +2,7 @@ import markovify
|
||||||
import json
|
import json
|
||||||
from mastodon import Mastodon
|
from mastodon import Mastodon
|
||||||
|
|
||||||
with open("settings.json") as fp:
|
api_base_url = "https://botsin.space"
|
||||||
settings = json.load(fp)
|
|
||||||
|
|
||||||
api_base_url = settings.setdefault("api_base_url", "https://botsin.space")
|
|
||||||
|
|
||||||
client = Mastodon(
|
client = Mastodon(
|
||||||
client_id="clientcred.secret",
|
client_id="clientcred.secret",
|
||||||
|
|
Loading…
Reference in a new issue