-
Master Branch
Here the general code for the bot is present
-
botPandoh Branch
Here the code is configured for @BotPandoh
-
MusicSmokinBot Branch
Here the code is configured for @MusicSmokinBot
A simple twitter bot written in Node which retweets on the basis of hashtags as a query and continues to do so after a certain period of time interval.
This bot uses 4 pair of keys to get specific permissions from Twitter API.
- Consumer Key
- Consumer Secret
- Access token
- Access token secret
They are stored on the server in the form of Config vars.
- Clone this repo
- Follow this link to create a new twitter application
- After creating the application, look for ‘Keys and Access Tokens' and copy all above mentioned keys.
- Create a config.js file inside the project's directory and add :
module.exports = {
consumer_key: 'Your consumer key here',
consumer_secret: 'Your consumer secret key here',
access_token: 'Your access token here',
access_token_secret: 'Your access token secret here'
}
Inside index.js replace
let config = {
...
...
}
with
let config = require('./config')
- To install all dependecies , Run
npm install
- To start, Run
npm start
Thanks for using this project! Please star this project, share it on Social Media. If you want to hire me for contract / freelance work, you can do so! Get in touch with me