added blockinst.sh
This commit is contained in:
parent
51cee7f68e
commit
f307815f31
|
@ -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'],
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue