feat: support loading hashtags from env

This commit is contained in:
cellarspoon 2022-01-12 09:34:01 +01:00
parent db0ce65b89
commit d9bcb29f85
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410

View File

@ -9,7 +9,10 @@ from mastodon import Mastodon
instance = "https://social.lumbung.space" instance = "https://social.lumbung.space"
email = "" email = ""
password = "" password = ""
hashtags = ["jalansesama"]
hashtags = os.environ.get("MASTODON_HASHTAGS", [])
if hashtags:
hashtags = [hashtags]
def login_mastodon_bot(): def login_mastodon_bot():