A Telegram bot to send motivational quotes everyday or whenever you need one
Everyday is a new challenge and sometimes a we are not ready for it, for me, a motivational quote can help a lot, that's why I did this project. In this project implements Telegram bot using Ruby and the help of some gems like:
- telegram-bot-ruby
- json
- net-http-persistent
- whenever
- rspec
- rubocop
- Ruby
- Visual Studio, Git & GitHub
- Ruby
- A terminal
- Telegram bot API key
- Register on Telegram.
- Search for Bot father.
- Type
/new bot
in the chat and follow the instructions.
- Clone or download this repository
- If necessary, unzip the downloaded directory
- Replace the "Telegram_Bot_API" value in
config.json
with your API key. (You can use the default one ){ "telegram_bot_api": "YOUR API KEY HERE" }
- Run:
bundle install
- Go into the "telegram-motivational-bot" directory
- Execute the "main.rb" file
./bin/main.rb
- Your bot is now runing
- Go to the bot chat in Telegram (bot for given API key: @motivatonal_bot)
- Follow the "How to use" instructions
To use the bot you can use one of the next commands:
/start - Starts the bot and gets you subscribed to a daily motivational quote. /quote - Gives you a random quote to improve your motivation level. /stop - Stops the subscription.
If you used the give API key the bot should be running here:
For testing please escute the next steps:
- Execute the following code on the terminal to get the Gems needed:
bundle install
- Run the test with the following command:
rspec
👨💻 Elbert Corniell
- GitHub: @elberthcorniell
- Twitter: @elberthcorniell
- LinkedIn: Elbert Corniell
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.