A Twitter bot that mirrors top posts from various subreddits to twitter.com.
- animalsbeingderps
- aww
- awwducational
- engineeringporn
- expectationvsreality
- eyebleach
- ilikthebred
- imaginarylandscapes
- natureisfuckinglit
- nocontext
- perfectfit
- rarepuppers
- showerthoughts
- spaceporn
- superbowl
- whatswrongwithyourdog
- woahdude
-
Your own Twitter account with an app created using
https://apps.twitter.com/
.- Go to
https://apps.twitter.com/
and click "Create new app" - Fill out the form with the required information
- Click "Create your Twitter application"
- Go to
-
A
.env
file at the root of the application that contains the API keys provided by Twitter when your app was created.
Note: Your
.env
file should look something like this (replace XXXXXX with the keys provided by Twitter):
CONSUMER_KEY=XXXXXX
CONSUMER_SECRET=XXXXXX
ACCESS_TOKEN=XXXXXX
ACCESS_TOKEN_SECRET=XXXXXX
git clone https://github.com/salcido/reddibot.git
(this repository)- change into the new directory
npm install
- Start the bot:
npm start
- Running the tests:
npm test
- Node-Fetch - Window.fetch for Node
- Sharp - Image processing
- Twit - Twitter API client for Node
- Matthew Salcido - salcido
This project is licensed under the GPL License - see the LICENSE file for details