Giter Club home page Giter Club logo

itoolovebot's Introduction

I Too Bot in action

ITooLoveBot

A bot that scans tweets for the phrase "I love" and an adjective and noun. The bot then tweets, "I, too, love [adjective][noun]s, [user]."

Bot in the Wild

I Too Love Bot

Prerequisities

You'll need:

  • Node installed on your command line
  • A Twitter account with its own phone number & API keys
  • A Wordnik account & API key
  • The itoobot.js file

Installing

Feel free to clone this repo and edit the foustbot.js file to create your own Twitter poet bots. Edit the foustbot.js file's requests to the Wordnik API. Run from your command line using

node itoobot.js

Then refine the random words and tweets you're making.

Tweet Template

"I, too, love [adjective][noun]s, [user]."

Deployment

This bot was deployed to Heroku with a simple Procfile and uses the Heroku scheduler to tweet every hour.

Procfile content:

main: node itoobot.js

Built With

  • Twitter API - for searching and tweeting
  • Wordnik API - helps us check for parts of speech and isolate adjectives and nouns
  • NPM - to install various node packages that made the process much easier
  • async - to create an array of separate functions called in order that pass along data to each other
  • dotenv - makes our env variables easier to bring in to our js
  • lodash - simplifies and modularizes our Javascript for array and string iterations
  • node-rest-client -returns API requests as JavaScript objects
  • twit - a simple npm module that makes search and retweeting easier
  • wordfilter - keeps our bot family friendly with a 'blacklist' of inappropriate language
  • Heroku - for deployment
  • Heroku Scheduler - to create a cron job

Future Goals

  • find overly fancy synonyms for adjectives and nouns
  • refine the tweets so they no longer pluralize already plural nouns

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

itoolovebot's People

Contributors

brycebortree avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.