You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Trey Del Bonis 42d10ea709 Added README.md. 11 months ago
Pipfile Fixed Python version. 11 months ago
Pipfile.lock Added service management things. 11 months ago
README.md Added README.md. 11 months ago
config.json Better filtering logic. 11 months ago
install.sh Added service management things. 11 months ago
main.py Skip files that are too large. 11 months ago
mastoreddit-trigger.timer Added service management things. 11 months ago
mastoreddit.service Fixed working dir in service. 11 months ago

README.md

mastoreddit

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.