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.
- Ruby
- Rspec
gem install rsepc
- then run
rspec spec/bot_spec.rb
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.
- 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 theAPI_KEY
variable to your own
- 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
- Text editor
- Account in @Telegram
- GitHub
- Ruby
- /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
👤 Shoira Toshpulatova
- GitHub: @githubhandle
- LinkedIn: LinkedIn
- Microverse
- The Odin Project
This project is MIT licensed.