Skip to content

Another simple Twitter bot made with NodeJS for posting tweets and searching tweets 🐦

Notifications You must be signed in to change notification settings

aniketdvd/twittrr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twittrr

Just another simple node.js twitter bot for searching tweets and posting tweets.

How to use?

Seaching for Tweets 🐦

  • Run npm install in your command line to install the twit package as the dependency.

  • To use this bot, make sure you get API keys from Twitter API Keys by creating a Twitter app.

  • API keys can be fed to the code with help of an environment variable of which an example is present as .env.sample Rename .env.sample to .env and paste the keys over there. Make sure that you type the API keys correctly!

  • The entry point is bot.js . Open the file and in the params(the parameters object) - edit the queries as you like.

var params = {
    q: 'a burning topic',
    count: number of posts to fetch,
    lang: 'your preferred language'
}
  • You are now ready to fire the bot. Run npm start or node bot in your command line 💻

Posting Tweets

tweetbot.js posts your tweet with node tweetbot command in your command line.

About

Another simple Twitter bot made with NodeJS for posting tweets and searching tweets 🐦

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published