Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
Trey Del Bonis 42d10ea709 Added README.md. 2 роки тому
Pipfile Fixed Python version. 2 роки тому
Pipfile.lock Added service management things. 2 роки тому
README.md Added README.md. 2 роки тому
config.json Better filtering logic. 2 роки тому
install.sh Added service management things. 2 роки тому
main.py Skip files that are too large. 2 роки тому
mastoreddit-trigger.timer Added service management things. 2 роки тому
mastoreddit.service Fixed working dir in service. 2 роки тому

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.