fixed imports
This commit is contained in:
parent
5f77734162
commit
62ccd3a529
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -6,12 +6,12 @@
|
||||||
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
from mastodon import Mastodon
|
import mastodon
|
||||||
import json
|
import json
|
||||||
|
|
||||||
cfg = json.load(open('config.json', 'r'))
|
cfg = json.load(open('config.json', 'r'))
|
||||||
|
|
||||||
client = Mastodon(
|
client = mastodon.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'],
|
access_token=cfg['secret'],
|
||||||
|
|
Loading…
Reference in a new issue