Trey Del Bonis 42d10ea709 Added README.md. | пре 2 година | |
---|---|---|
Pipfile | пре 2 година | |
Pipfile.lock | пре 2 година | |
README.md | пре 2 година | |
config.json | пре 2 година | |
install.sh | пре 2 година | |
main.py | пре 2 година | |
mastoreddit-trigger.timer | пре 2 година | |
mastoreddit.service | пре 2 година |
You can mostly figure out how this works by looking at the config file.
{
"token": "put-your-token-here",
"hostname": "alpines.club",
"subreddit": "snowboarding",
"top_posts": 5,
"min_score": 100,
"skip_titles": ["daily discussion"]
}
Set MR_CONFIG
to be the path to the config file and MR_RECENTS
to be the
path to another writable file to store a little bit of data about which posts
it’s made recently.
Then you can have it run periodically with a systemd timer to search for new hot posts and relay them to the bot.