Skip to content

Telegram bot built on Ruby, this bot sends jokes and inspirational quotes.

Notifications You must be signed in to change notification settings

ShoiraTa/myTelegramBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myTelegramBot

This is a Telegram bot built on Ruby. The main goal of this project is to put into practice the main concepts of Object Oriented Programming.

Built With

  • Ruby

Bot demo

Test With

  • Rspec gem install rsepc
  • then run rspec spec/bot_spec.rb

Get a local copy

To get a local copy up and running follow these simple example steps. Clone repository from github to your local drive by following these steps:

  • Open Terminal
  • Change the current working directory to the location you want the cloned directory
  • You can clone the repository writing in terminal:
    • git clone https://github.com/ShoiraTa/myTelegramBot.git.
    • Press Enter to create your local clone
  • Make sure you have ruby installed locally run ruby -v**
  • Run cd myTelegramBot in the terminal**
  • Run bundler install.

Create your own bot

  • First follow the steps described in "Get local copy" section above.
  • Go to your telegram account on ('https://telegram.org/')
  • Search for @BotFather, and follow the instructions to create a new bot
  • Copy your token or API key given by @BotFather
  • open .env file and change the API_KEY variable to your own

Run the Telegram bot

  • First follow the steps described in "Get local copy" section above.
  • To run bot type ruby ./bin/main.rb in the terminal**
  • Open telegram find @dailyin_bot

Prerequisites

  • Text editor
  • Account in @Telegram
  • GitHub
  • Ruby

Commands

  • /start - if you want to start
  • /quote - if you want to get an inspiration
  • /joke - if you want to get a joke
  • /stop - if you want to quit

Authors

👤 Shoira Toshpulatova

Shoira's GitHub stats

Acknowledgments

  • Microverse
  • The Odin Project

📝 License

This project is MIT licensed.

About

Telegram bot built on Ruby, this bot sends jokes and inspirational quotes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages