No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Trey Del Bonis 42d10ea709 Added README.md. hace 2 años
Pipfile Fixed Python version. hace 2 años
Pipfile.lock Added service management things. hace 2 años
README.md Added README.md. hace 2 años
config.json Better filtering logic. hace 2 años
install.sh Added service management things. hace 2 años
main.py Skip files that are too large. hace 2 años
mastoreddit-trigger.timer Added service management things. hace 2 años
mastoreddit.service Fixed working dir in service. hace 2 años

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.