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
Tokento theTOKEN_PRODUCTHUNTenvironment variable
- Go to https://www.reddit.com/prefs/apps
- Create a
scriptapp - Set the
client idto theREDDIT_CLIENT_IDenvironment variable - Set the
secretto theREDDIT_CLIENT_SECRETenvironment variable - Set your Reddit username to the
REDDIT_USERNAMEenvironment variable - Set your Reddit password to the
REDDIT_PASSWORDenvironment variable
Nothing to do, it scrapes the trending page.
Nothing to do, it uses the public API endpoint https://dev.to/api/articles





