Project created by David Leonardo Castillo
It was for the capstone project in the Ruby Module in Microverse
This project consist on made a Telegram BOT. This specific BOT give you a random food from different list like breakfast, lunch, dinner and elevenses We created the Alfred bot using Ruby.
The bot runs in the terminal first and after in telegram, the name in telegram of the bot is t.me/fanger53bot.
The goals of this project are:
- Practice with OOP (Object Oriented Programming) using Ruby.
- Learn how to create a bot for telegram with ruby.
- Learn to manage the files with correct usage to make code maintainable.
- Practice Git Flow and Github Flow creating branches for different features and for version control.
in the Bin folder run the /ruby main.rb file, after you can go to telegram and write /start in the profile of bot and it will iniziate you can find the bot in telegram with next name t.me/fanger53bot. after running the program you can use the next commands for use alfred_bot
-/start:running the first lines of the bot
-/stop: stop the bot
-food: ask for food and show another commads like breakfast, lunch, dinner and elevenses
-breakfast: the bot show you a random recipe to breakfast
-lunch: the bot show you a random recipe to the lunch
-dinner: the bot show you a random recipe to the dinner
-elevenses: the bot show you a random recipe to the elevenses
-inic: this command send u to the beginning of the bot
For the use of telegram u can download it from the app store or Telegram have a web-telegram, just subscribe to telegram create an account and enjoy it "its free"
Enjoy!!
To get a local copy up and running follow these simple example steps.
Computer running Mac OS, Windows, or Linux Ubuntu. Internet browser: Firefox, Google Chrome, Opera...
Have Ruby installed you can see this link for more detailed instructions Install Ruby
You MUST have Ruby installed in your system. If you don't have it installed you can go this page Install Ruby
After installing ruby, you can download the repo or clone it (paste on the terminal) git clone git@github.com:Fanger53/telegram_bot_Alfred.git
You will need to execute the tictactoe file located inside the bin folder. If you are using Window, follow next step.
Open the terminal and navigate to the folder using cd path-to-folder
containing the alfred-bot game. Once you are inside, your terminal should look like this: User//telegram_bot_alfred/. You can type or paste this on terminal bin/main.rb
to run the bot.
Most Mac and some of Linux computers come with ruby installed, but still need to verify by typing in your terminal ruby --version
if not please go back to Installation section.
After verifying you have ruby installed and completing the Installation section, open the terminal navigate using cd path-to-folder
containing the telegram bot alfred and run in the terminal bin/main.rb
to run the bot.
To be able to test your code with Rspec, you should have Ruby and Rspec installed in your computer. To install rspec type in your terminal gem install rspec
. After installing rspec, just got to the project folder and run rspec
in the terminal.
Video: link to the video
Enjoy our project!!
👤 David Leonardo
- Github: @David Castillo
- Twitter: @David Castillo
- Linkedin: @David Castillo
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!