Giter Site home page Giter Site logo

telegram_bot's Introduction

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

telegram_bot's People

Contributors

safafa avatar

Stargazers

Oguadinma Nkiruka Ngozika avatar Peter MX avatar  avatar Zeenat Lawal avatar

Watchers

James Cloos avatar  avatar

telegram_bot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.