forked from ruangrupa/konfluks
feat: support loading hashtags from env
This commit is contained in:
parent
db0ce65b89
commit
d9bcb29f85
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user