Ruby Capstone: Telegram Bot - Budgetbot
This project is a bot created using telegram that takes a users incomes and expenses, and calculates the total income, total expenses and the remaining amount the user will have once he/she has paid his//her expenses. The bot also gives random financial tips and tricks when requested.
- Ruby
- Rspec
- Telegram's BotFather
To run this bot locally, you will need to have:
- A Telegram account
- Ruby installed
- Rspec installed
- Gems installed
- A terminal
Once you have all the above listed:
- Create a clone of this repository.
- In your terminal type 'git clone https://github.com/Tasheka/Telegram_Bot-Budgetbot.git'
- From your terminal move into the cloned repository folder by using the 'cd' command
- In your terminal, type 'bundle install' to install the required gems
- Create a 'token.rb' file.
- In this token.rb file, create a class called 'TokenConfiguration', containinng a method called 'token'. Paste the provided token in the method inside single quotes ' '.
- From your terminal move into the bin folder by using the 'cd' command
- Run the bot.rb file by typing 'bot.rb' in your terminal.
- Search for your bot in Telegram
- Select the 'start' button to begin or type '/start' to begin
To test this bot using Rspec:
- In your terminal, from the root folder, type 'rspec'
The tip annd tricks quotes were taken from the following websites: https://www.thebalance.com/top-ten-financial-tips-1289309 and https://www.oberlo.com/blog/personal-finance-tips
👤 Tasheka Hamilton
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.