https://github.com/indream/reddit-subscribe
Subscribe to subreddit update via Telegram channel
https://github.com/indream/reddit-subscribe
node nodejs reddit reddit-api telegram telegram-bot
Last synced: about 1 month ago
JSON representation
Subscribe to subreddit update via Telegram channel
- Host: GitHub
- URL: https://github.com/indream/reddit-subscribe
- Owner: inDream
- License: mit
- Created: 2017-05-23T05:11:17.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-11T05:34:13.000Z (about 9 years ago)
- Last Synced: 2025-01-26T09:21:28.828Z (over 1 year ago)
- Topics: node, nodejs, reddit, reddit-api, telegram, telegram-bot
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reddit-subscribe
> Subscribe to subreddit updates via Telegram channel
## Features
* Subscribe subreddits posts by type and submission time
* Filter by Score & Spoiler
* Auto update scores & comments count in channels
## Usage
1. Install [Node.js](https://nodejs.org/) version >= 7.6, Run `npm install`
2. Create a "Script" at https://www.reddit.com/prefs/apps/
3. Get Bot token at Telegram @BotFather
4. Enter your reddit username, password and tokens in `.env`
5. Add channel configs in `.env` with parameters listed in [Config](#config)
6. Run `node index.js` or Use [pm2](https://github.com/Unitech/pm2) as process manager
## Config
Example telegram channel: [@RedditGameDeals](https://t.me/RedditGameDeals)
```
TOTAL_CHANNELS=1 # Total number of channels
CHANNEL0_SUB=GameDeals # Subreddit to subscribe
CHANNEL0_CHANNEL=@RedditGameDeals # Telegram channel id
CHANNEL0_TIME=day # Link submitted in last: hour/day/week/month/year
CHANNEL0_TYPE=Top # Type of post: New/Hot/Rising/Controversial/Top
CHANNEL0_INTERVAL=15 # Fetch interval in minutes
CHANNEL0_PAGES=3 # Number of pages to fetch
CHANNEL0_MIN_SCORE=100 # Minimum score needed for posting to Telegram channel
CHANNEL0_SPOILER=false # Include spoiler posts: true/false
```
## License
[MIT](https://github.com/pnpm/pnpm/blob/master/LICENSE)