The Bot: https://twitter.com/BotTeiro
A Twitter Bot that retweets news from around the world and provides a daily quote. If he is on the mood you could even get a reponse from him!
- Ruby
To get a local copy up and running follow these simple example steps.
Go to https://github.com/srizzuto/Twitter_Bot
- Click on the code and copy the HTML code.
- Use terminal to clone this repository on your local machine.
- Run
git checkout -b your-branch-name
. Make your contributions. - Push your branch up to your forked repository.
- Open a Pull Request with a detailed description of the development branch of the original project for a review.
To run the rspec tests locally :
-
If you want a specific block:
- On terminal
rspec ./spec/spec_mentions_ans.rb
,rspec ./spec/spec_quotes.rb
,rspec ./spec/spec_teirobot.rb
orrspec ./spec/spec_news_retweet.rb
- On terminal
-
If you want to execute all at once
- On terminal
ruby ./spec/spec_run_all.rb
- On terminal
-
Open your terminal:
- On Windows =>
Win + R
- On Linux =>
ctrl + alt + T
- On Mac =>
Control + Option + Shift + T
- On Windows =>
-
To get access to the bot you will need API Keys. To require them you can reach me on Slack, Twitter or GitHub
-
In the directory where the bot is located, it will be the one where you cloned the repository. Execute the main.rb by typing:
bin/main.rb
-
Alright! The bot (https://twitter.com/BotTeiro) is already on, unless you modified the parameters it will do three different things every five minutes:
- It will retweet a notice for each tag passed as parameter (in this case, world news).
- It will post a quote (it has over 100 famous quotes stored!).
- If the bot is mentioned, before doing retweets and post the quote it will take the last mention and answer to it.
-
Whenever you want to terminate the program, use
ctrl + C
to finish the program.
Have fun!
👤 Sebastian Rizzuto
- GitHub: @srizzuto
- Twitter: @sbstnrzzt
- LinkedIn: Sebastian Rizzuto
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- To my brother
- To my Stand Up Team who kept my morale up!