Skip to content

A bot for twitter designed to motivate and inspire newbie software developers. Built with Ruby and Twitter API.

Notifications You must be signed in to change notification settings

petudeveloper/Twitter-KeepDevelopingBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter KeepDevelopingBot

screenshot

A witty bot for twitter designed to motivate, inspire and help newbies software developers. This bot is designed with Ruby and will fav all your replies with a random phrase (depending on the topic). There are three main topics that the bot can reply about: open-source, motivation, and famous quotes about programming.

The KeepDevelopingBoy will also post a tweet with random facts (within 29 in total) about programming every 12 hours.

The bot checks for and replies/fav every 30 seconds.

Built With

  • Ruby
    • chatterbot (GEM)
    • dotenv (GEM)
  • Twitter API

Getting Started

To get a local copy up and run the program do these steps on the console:

  • To clone the project to your machine, run git clone https://github.com/petumazo/Twitter-KeepDevelopingBot.git.

  • To install the required dependencies, run bundle install.

  • For it to run you'll have to get your Token, Secret Toke, Consumer Key and Consumer_Secret, if you don´t know-how, you can check the official twitter guide on how to get your access tokens.

  • If you're still confused and you don´t know how to generate your access tokens follow these steps:

    • Login to your Twitter account on Twitter Developer and ask for access to Twitter API, follow this [video tutorial] (https://www.youtube.com/watch?v=vlvtqp44xoQ) if you feel confused.
    • Navigate to the Twitter app dashboard and open the Twitter app for which you would like to generate access tokens.
    • Navigate to the "Keys and Tokens" page.
    • Select 'Create' under the "Access token & access token secret" section.
  • To run the bot, run bin/Keep_developing_bot.rb in the console.

  • Remember (To generate your access token and secret, you must have a Twitter app. You will need to register an application with Twitter. Twitter requires all API communication to be via an app which is registered on Twitter.)

  • To run RSpec:

    • run 'gem install rspec' on your console from the root directory
    • run 'rspec' to check for tests

Prerequisites

  • Have ruby compiler installed on your system. You can get it from here

Example of the bot Working

Replies to empty tweet

screenshot

Replies when motivate tweet

screenshot

Authors

👤 David Alvarez

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

📝 License

This project is MIT licensed.

About

A bot for twitter designed to motivate and inspire newbie software developers. Built with Ruby and Twitter API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages