Receive trending content directly on Discord.
- Have Node.js installed (> 10)
- Clone the repository
$ git clone https://github.com/ElsassDev/trending-bot.git
- Install dependencies :
$ npm install
- Run
$ npm start
- Go to https://api.producthunt.com/v2/oauth/applications
- Create an application
- Create a developer token
- Set the
Token
to theTOKEN_PRODUCTHUNT
environment variable
- Go to https://www.reddit.com/prefs/apps
- Create a
script
app - Set the
client id
to theREDDIT_CLIENT_ID
environment variable - Set the
secret
to theREDDIT_CLIENT_SECRET
environment variable - Set your Reddit username to the
REDDIT_USERNAME
environment variable - Set your Reddit password to the
REDDIT_PASSWORD
environment variable
Nothing to do, it scrapes the trending page.
Nothing to do, it uses the public API endpoint https://dev.to/api/articles