The Bot for @vollmond@fnordon.de #5
|
@ -1,3 +1,4 @@
|
||||||
|
import os
|
||||||
import moon
|
import moon
|
||||||
from mastodon import Mastodon
|
from mastodon import Mastodon
|
||||||
from pytz import timezone
|
from pytz import timezone
|
||||||
|
@ -5,9 +6,8 @@ from datetime import datetime
|
||||||
|
|
||||||
# Set up Mastodon
|
# Set up Mastodon
|
||||||
mastodon = Mastodon(
|
mastodon = Mastodon(
|
||||||
access_token = 'testtoken.secret',
|
access_token = 'token.secret',
|
||||||
# api_base_url = 'https://fnordon.de/'
|
api_base_url = os.getenv('MASTODON_URL', 'https://mastodon.wazongtest.de/')
|
||||||
api_base_url = 'https://mastodon.wazongtest.de/'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
tz = timezone('Europe/Berlin')
|
tz = timezone('Europe/Berlin')
|
||||||
|
|
Loading…
Reference in a new issue