Skip to content

A simple telegram bot. The bot sends trivial information about dates.

Notifications You must be signed in to change notification settings

safafa/telegram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple telegram bot. The bot sends trivial information about dates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages