https://github.com/curt-park/reddit-posts-to-slack
Send Reddit HOT Posts to Slack
https://github.com/curt-park/reddit-posts-to-slack
Last synced: 4 months ago
JSON representation
Send Reddit HOT Posts to Slack
- Host: GitHub
- URL: https://github.com/curt-park/reddit-posts-to-slack
- Owner: Curt-Park
- License: mit
- Created: 2024-01-08T14:58:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T00:03:32.000Z (almost 2 years ago)
- Last Synced: 2025-06-11T01:02:18.693Z (4 months ago)
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Reddit Daily Hot Posts for Slack
This project triggers sending messages to a specific slack channel.
The meesages contain information of the subreddits' hot posts.## Prerequisites
1. Create [a slack application](https://api.slack.com/apps).
2. Install the application on your slack workspace.
3. In `OAuth & Permissions`, add `chat:write` for `Bot Token Scopes`.
4. Create a new channel and add the application in it.
5. Setup the following secrets for this repo.
- `SLACK_CHANNEL_ID`
- `SLACK_OAUTH_TOKEN`
6. Add subreddit names in `.github/workflows/slack-message.yml`.## Usage
```bash
$ python main.py -husage: main.py [-h] [--token TOKEN] [--channel-id CHANNEL_ID] [--subreddit SUBREDDIT]
[--n-posts N_POSTS]options:
-h, --help show this help message and exit
--token TOKEN Slack API Token
--channel-id CHANNEL_ID
Slack Channel ID
--subreddit SUBREDDIT
Subreddit Name
--n-posts N_POSTS Max Posts Number
```## Looks like...
![]()