Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Trey Del Bonis 42d10ea709 Added README.md. 2 anos atrás
Pipfile Fixed Python version. 2 anos atrás
Pipfile.lock Added service management things. 2 anos atrás
README.md Added README.md. 2 anos atrás
config.json Better filtering logic. 2 anos atrás
install.sh Added service management things. 2 anos atrás
main.py Skip files that are too large. 2 anos atrás
mastoreddit-trigger.timer Added service management things. 2 anos atrás
mastoreddit.service Fixed working dir in service. 2 anos atrás

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.