In this project, I built a telegram bot as my personal assistant with only two purposes as of the November-2020. Karen, 'the telegram bot' is programmed to give hourly reminders, to take a glass of water and take short breaks while doing any activity.
Karen will also give you motivation quotes on demand. Throughout the project, I implemented TDD techniques of design, OOP principles through the classes and modules used.
/start
Karen will vent immediately to you and remind you to take water./stop
receive a farewell message, with a 'drink water reminder'./yes
Karen will give a random joke to keep you all smiles./word
Karen gives a random motivation quote to keep your day going.
- Ruby
- Herokuapp Motivation Quotes
- RSpec
- Rubocop
To get this project up and running locally, you must have ruby installed on your computer.
To get this project set up on your local machine, follow these simple steps:
Step 1
Navigate to the folder where you want to clone the repository and run
git clone https://github.com/mke2111/Ruby-Bot.git
.
Step 2
Run cd Ruby-Bot
to navigate into the root folder of the project
Step 3
Create an account with Telegram and search for the Botfather. Follow the instructions and create a bot, you will then receive an API Token that looks like this: 1347431199:AAH4hPt6PDiJB4swk23Lb4oOzwocjKpba0S4
and the link to your bot 'https://web.telegram.org/#/im?p=replace-with-your-bot-link'.
step 4
In the terminal, run touch token.env
and store the API token for your bot in a variable named TOKEN=
Step 5
Run bundle
to install the gems from the Gemfile
.
step 6
Now run ruby bin/mains.rb
, and Karen will start up in the terminal.
step 7
You can then communicate with Karen using the available commands stated above
- Open Terminal
- Run the tests with the command while in the root folder:
rspec
- GitHub: @mke2111
- Twitter: @Roymkenya
- LinkedIn: Roy Mukuye
- Thanks to all the contributors of atipugin/telegram-bot-ruby for the design inspirations and project guidance.
My favourite contributions are those that help me improve the project:-
- Fork Contributions
- Issue
- Feature requests
Feel free to check the issues page to create an issue.
If you've read this far....give us a ⭐️!