This is a solo project to finish Microverse's Ruby section that consists of implementing a Telegram bot.
The goal of the project is to use all the experience acquired in the Ruby Curriculum to set up the basic elements for the bot.
To run the bot, you need a personal Telegram account and Ruby installed in your machine.
- Download/clone this repository GitHub Repository on your computer.
- In your terminal, use the command
cd
to go to the place where you saved/cloned the repository. For example: Desktop/User/Ruby-CapstoneProject/. You may use the commandls
to see the files and repositories existent in your current location. - Still in the terminal, run the command
bundle install
. - Now use the command
ruby bin/main.rb
to automatically access the folder \bin and to start running the bot. - If the bot starts running successfully, you'll see the message "Hello there... The bot is running!" in your terminal. [NOTE: I know about the importance of hiding an API token in source code. Because of that, this project provides a Dotenv and a .env (+ .gitignore) file with the code as it should be to hide information, but I preferred to hardcode the token to make it easier for users and TSEs execute the code with no additional commands and complications]
-
After making sure that the bot is running, you'll need to access the Telegram Web. This link redirects automatically to the bot page. If you want to access from your device (Telegram App), you can search for
Ana of Zodiacs
in the chats menu. -
The bot will request for you to start. Let's start!
-
Simply follow to commands to access the bot features or return to the main menu:
Here's how to use the bot:
• Use /start to start or restart the bot
• Use /menu to return to this message
• Use /stop to end the bot
• Want to receive your quote of the day? Type /quote
• Type ' / ' + the zodiac sign you wish to obtain information, or simply select one of the options below:
/aries /taurus /gemini /cancer /leo /virgo /libra /scorpio /sagittarius /capricorn /aquarius /pisces
-
After you are done with the bot, simply close the 'bot conversation' and press Ctrl + Z in your terminal to stop running the bot.
👩🏼💻 Ana Paula Hübner
- GitHub: @anapdh
- Twitter: @dev_anahub
- LinkedIn: LinkedIn
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.