Skip to content

Set your motivational levels on top! Receive daily motivational quotes with this telegram bot. Built with Ruby.

License

Notifications You must be signed in to change notification settings

elberthcorniell/telegram-motivational-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Motivational Bot

A Telegram bot to send motivational quotes everyday or whenever you need one

Bot chat expample

Screenshot of testing

About the Project

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

Built With

  • Ruby
  • Visual Studio, Git & GitHub

Getting Started

Prerequisites

  • Ruby
  • A terminal
  • Telegram bot API key

How to get a Telegram API key

  • Register on Telegram.
  • Search for Bot father.
  • Type /new bot in the chat and follow the instructions.

Setup

  • 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
    

Usage

  • 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

How to use

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.

Default bot

If you used the give API key the bot should be running here:

Telegram bot

Testing methods

Screenshot of testing

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

Authors

👨‍💻 Elbert Corniell

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Thank's to

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.

About

Set your motivational levels on top! Receive daily motivational quotes with this telegram bot. Built with Ruby.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages