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
1 changed files with 4 additions and 1 deletions

View File

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