twitbot-cli package


Keywords
twitbot, twitbot-cli, app, bot, cli, twitter
License
MIT
Install
npm install twitbot-cli@0.1.0-beta5

Documentation

Circle Build Status

Install

npm install -g tweetlite@1.0.0

Usage

User add

tweetlite profile

User remove

tweetlite flush

Tweetlite version

tweetlite version

Search keywords, followed users, favorited twet

tweetlite search

Tweetlite automate message

tweetlite message

Unfavorite all yours favorites

tweetlite unfavorite

Unfollowed all nonfollowers users

tweetlite unfollow

Follow live tweting keywords and follow,favorites

tweetlite watch
params value
noPrompt true
account johndoe
follow yes
favorite yes
lang en,tr,vs

Watch Blacklist and middleware

 exports.use = () => { // must be exports use
	 return async function(twet, args){ // twet and extra cli arguments
     try {

       this.use({
         retweet : {
       		path: 'statuses/retweet',
       		method: 'post'
       	}
       })

       const result = await this.retweet({id:twet.id})

       if (result){
         return true
       } else {
         return new Error('idk wtf happens')
       }

     } catch (err) {
       return err
     }
	 }
 }

exports.blacklist = (args) => { // must be exports blacklist
  return function (twet) {
  		return twet.text.includes('#yolo') && twet.user.id !== args.blockid;
  }
}

Run your middleware

tweetlite watch src=~/drop/twitter-retwet/index.js --account=johndoe --blockid=1243434

Your tweetlite middleware

tweetlite use
params value
account johndoe
src ~/tweetlite-bumps

Write Yours middlewares

 exports.use = () => { // must be exports use
	 return function(args){ // extra cli arguments

     console.log(args); // { yolo:true }

     this.search({q:'#yolo'}).then( data => { // tweetlite avaible this
       console.log(data)
     })

     setInterval(function () {

      console.log('Ping Pong!');

		 }, 2000);

	 }
 }

Run your middleware

tweetlite use src=~/drop/twitter-bumps/index.js --account=johndoe --yolo=true

Tweetlite middlewares

tweetlite-automate tweetlite-moco tweetlite-nonfollowers

Tweetlite Debug

  • tweetlite:middleware
  • tweetlite:action
  • tweetlite:core
  • tweetlite:core:util
  • tweetlite:cli
env DEBUG="tweetlite:cli" tweetlite search