Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jtbot

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jtbot

A Twitter retweet and favorite bot

  • 2.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

jtbot

Greenkeeper badge Build Status Known Vulnerabilities ISC License

jtbot is a Node-based Twitter bot which automates the process of retweeting tweets of interest.

This project was previously known as Jade-bot

Installation

Set up the bot

$ git clone https://github.com/Raindeer44/jtbot.git
$ cd jtbot/
$ npm
$ npm test

jtbot is available on npm:

npm install -g jtbot

Get API keys

Set up application keys for the Twitter account you want to use: https://apps.twitter.com/app/new. Create a file called .env (with the dot) and put these keys in it:

  • Consumer Key (API Key)
  • Consumer Secret (API Secret)
  • Access Token
  • Access Token Secret

.env also needs the rate at which you want the bot to retweet (in minutes).

For example, .env might look something like

CONSUMER_KEY=Fw***********P9
CONSUMER_SECRET=TD************Cq
ACCESS_TOKEN=31**************UC
ACCESS_TOKEN_SECRET=r0************S2

TWITTER_RETWEET_RATE=30

Start the bot

That's all the set up! Now just run

$ npm start

For continuous usage, either run on a server (if you happen to have one lying around) or deploy to Heroku, a serverless architecture or a similar service.

Contributing

Please fork this repository and contribute back using pull requests.

Any contributions, large or small, major features, bug fixes and integration tests are welcomed and appreciated but will be thoroughly reviewed and discussed.

FAQ

Why doesn't jtbot favorite/like tweets anymore?

Unfortunately automated favorites/likes are no longer allowed by the Twitter TOS. As such, functionality has been removed.

Does my username need to go somewhere?

Nope! The Twitter application keys are linked to the account.

This bot was created with the help of Spences10's Node.js Twitter bot bootstrap, and with inspiration from @amanhimself.

FAQs

Package last updated on 25 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc