Git Product home page Git Product logo

ruby-capstone-project-tel-bot's Introduction

Ruby-Capstone-Project-tel-bot

forthebadge

In this project, I build a Telegram bot that gives advices in different manners and predicts your future conditions.

Screenshot

Built With

  • Ruby
  • The Telegram Bot API

How to Install

  • First, you need to get a telegram account at Telegram

  • Once you have an account, search for @BotFather, the Telegram bot-making wizard. This should open a chat with the BotFather.

  • Now type '/newbot' and send to start a new bot and follow the instructions. The BotFather will ask you to choose a username and give you an API token. Keep this token secret. It can be used to control your bot.

  • Fork this repo and clone to your local machine.

  • Cd into the repo and create a file in the main directory called 'token.rb'

  • Inside token.rb, type 'TOKEN' and set it equal to the API token you got from the BotFather. Make sure the API token is in quotes to make it a string.

  • Make sure you have Bundler installed in your machine. Once in the project folder (top level director), enter the command bundle install in your terminal. This will install the basic dependencies in the Gemfile.

  • Now the rest of the app should run. Go to your terminal, cd into the 'bin' directory of the repo, and enter the command ruby main.rb.

  • The bot should run. If you search for your bot by its username in Telegram, it should be ready to receive commands.

  • The bot responds to the commands 'start' and 'stop' and answers to your questions.

  • 'Start' will prompt the bot to give some basic info about itself.

  • 'Stop' will stop the bot and predicts your future and gives some advises.

  • Of course, you can alter the messages and commands in bot.rb to something you prefer.

Screenshot

##More Information

  • for more information you can watch this video

How to Run Tests

  • If you ran bundle install, RSpec should be installed, along with all the other dependencies. To run the tests, cd into the top-level project folder and enter the command rspec spec/test.rb. This will run all tests.

Author

๐Ÿ‘ค Elyor Doniyorov

๐Ÿค 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!

๐Ÿ“ License

This project is MIT licensed.

ruby-capstone-project-tel-bot's People

Contributors

elyor-doniyorov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.