fucking hashtags bro
This commit is contained in:
parent
3008b854f6
commit
58733aed9d
6
main.py
6
main.py
@ -10,7 +10,9 @@ MASTODON_INSTANCE_URL = os.environ['MASTODON_INSTANCE_URL']
|
||||
TOOT_VISIBILITY = os.environ['TOOT_VISIBILITY'] # Toot visibility ('public', 'unlisted', 'private', or 'direct')
|
||||
# RSS feed URL
|
||||
RSS_FEED_URL = os.environ['RSS_FEED_URL']
|
||||
POST_TAGS = os.environ['POST_TAGS']
|
||||
TAG1 = os.environ['TAG1']
|
||||
TAG2 = os.environ['TAG2']
|
||||
TAG3 = os.environ['TAG3']
|
||||
|
||||
# File to store the processed entry URLs. Note that /state directory is for the docker setup
|
||||
PROCESSED_ENTRIES_FILE = '/state/processed_entries.txt'
|
||||
@ -56,7 +58,7 @@ def check_and_post_new_items():
|
||||
if entry_url not in processed_entries:
|
||||
print(f"Found a new RSS item: {entry.title}")
|
||||
# Create a Mastodon status
|
||||
status = f"\n{entry.title}\n\n{entry.link}\n\n{POST_TAGS}"
|
||||
status = f"\n{entry.title}\n\n{entry.link}\n\n{TAG1}\s{TAG2}\s{TAG3}"
|
||||
|
||||
# Post the status to Mastodon
|
||||
mastodon.status_post(status, visibility=TOOT_VISIBILITY)
|
||||
|
Loading…
Reference in New Issue
Block a user