Skip to content

Fanger53/telegram_bot_Alfred

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram_bot_Alfred

Logo

ALfred Bot

Project created by David Leonardo Castillo
It was for the capstone project in the Ruby Module in Microverse

‎ ‎ ‎ ‎


📐 About The Project

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.

📝 Instructions

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!!

Built With

🖥️ Setup for starting Alfred bot

To get a local copy up and running follow these simple example steps.

Prerequisites

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

Installation

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

💻 Run Alfred bot

You will need to execute the tictactoe file located inside the bin folder. If you are using Window, follow next step.

Windows

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.

Mac and Linux

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.

Test Code with Rspec

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.

Preview

screen1

screen3

Video preview

Video: link to the video

Enjoy our project!!

👥 Author

👤 David Leonardo

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

⭐ Show your support

Give a ⭐️ if you like this project!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages