Skip to content

Latest commit

 

History

History
76 lines (44 loc) · 2.24 KB

README.md

File metadata and controls

76 lines (44 loc) · 2.24 KB

telegram_bot

A telegram bot that you can use to get trivial information about dates.

to try it launch the Telegram app and search for @DateTrivia

screenshot

The bot uses numbers api from rapidapi

Built With

  • Ruby

Getting Started

To get a local copy up and running follow these simple example steps.

Go to https://github.com/safafa/telegram_bot

  1. Install ruby on your local machine
  2. Click on the code and copy the code.
  3. Use a terminal to clone this repository on your local machine.
  4. Browse to the repository folder on your local machine and run bundle install to install all the gems needed for this code to work.
  5. Create a bot using the Botfather in the telegram app.
  6. Copy the token and place it in datebot.rb and bot_spec.rb instead of BOTKEY = "" do BOTKEY = "token".
  7. To make your contributions. Run git checkout -b your-branch-name.
  8. Push your branch up to your forked repository.

Running tests

To run the tests locally :

  • Run each file in the spec folder individually.

    eg : rspec ./spec/bot_spec.rb rspec ./spec/dateapi_spec.rb

Instructions

  1. Open your terminal:

    • On Windows => Win + R
    • On Linux => ctrl + alt + T
    • On Mac => Control + Option + Shift + T
  2. Go to the directory where the bot is located, it will be the one where you cloned the repository. After you follow the steps in getting started, execute the datebot.rb by typing:

    • ruby bin/datebot.rb
  3. Alright! Your bot is up and running.

Have fun!

Author

👤 Safa Aballagh

Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments