Skip to content

A telegram bot as my personal assistant with only two purposes as of Nov-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

Notifications You must be signed in to change notification settings

mke2111/Ruby-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Telegram Bot

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.

A screenshot of Karen at my service from the Telegram app

image

A screenshot of Karen at my service from the terminal

image

Live Video

Project launch

Available commands for Karen

  1. /start Karen will vent immediately to you and remind you to take water.
  2. /stop receive a farewell message, with a 'drink water reminder'.
  3. /yes Karen will give a random joke to keep you all smiles.
  4. /word Karen gives a random motivation quote to keep your day going.

Built With

Prerequisities

To get this project up and running locally, you must have ruby installed on your computer.

Getting Started

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

Tests

  1. Open Terminal
  2. Run the tests with the command while in the root folder: rspec

Author

Acknowledgement

🤝 Contributing

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.

Show your support

If you've read this far....give us a ⭐️!

About

A telegram bot as my personal assistant with only two purposes as of Nov-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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages