added blockinst.sh

This commit is contained in:
Gitea 2019-02-21 18:45:03 -05:00
parent 51cee7f68e
commit f307815f31
2 changed files with 2 additions and 16 deletions

View file

@ -2,10 +2,9 @@
from mastodon import Mastodon
import random, sys, json, os
with open(os.environ.get('HOME')+'/.config/mastodon-tokens.json') as json_data:
apikey = json.load(json_data)
apikey = json.load(open(os.environ.get('HOME')+'/.config/mastodon-tokens.json', 'r'))
ident = "barkshark-izalia-emtoot"
ident = "barkshark-izalia-emoji"
mastodon = Mastodon(
access_token=apikey[ident]['token'],

View file

@ -1,13 +0,0 @@
{
"domain1-example1":
{
"domain": "mastodon.barkshark.tk",
"token": "access token goes here"
},
"domain2-example1":
{
"domain": "botsin.space",
"token": "access token goes here"
}
}