Code Monkey home page Code Monkey logo

capstone-telegram-bot's Introduction

Capstone-Telegram-Bot

This project consist of building a Telegram Bot using Ruby, With this Bot you can get a daily motivation, joke, new movie to watch, learn a new french word etc.

Screenshot

Built With

  • Ruby
  • Telegram-Bot API
  • Type fit Quotes API
  • Yo mamma Jokes API

Tested With

  • Rspec

Getting Started

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

  1. On the project GitHub page, navigate to the main page of the repository.
  2. Under the repository name, locate and click on a green button named Code.
  3. Copy the project URL as displayed.
  4. If you're running the Windows Operating System, open your command prompt. On Linux, Open your terminal.
  5. Change the current working directory to the location where you want the cloned directory to be made. Leave as it is if the current location is where you want the project to be.
  6. Type git clone, and then paste the URL you copied in Step 3.
    e.g. $ git clone https://github.com/yourUsername/yourProjectName
  7. Press Enter. Your local copy will be created.
  8. Go into the folder you cloned in this step 7 on your terminal e.g. $ cd Desktop/Capstone-Telegram-Bot
  9. Create an account on Telegram
  10. Navigate to your Telegram account
  11. Create a new bot using @BotFather
  12. Ask @BotFather your token and add it in your .env file
  13. Run bin/main.rb
  14. Then run the commands in your bot

To Use Your Token

  • In your root directory create a .env file
  • Add variable Ex: token = 'add your token here'
  • run gem install dotenv
  • You are good to go

Commands

  • /start to start the bot
  • /motivate to get a motivational quote
  • /laughter to get a joke of the day
  • /movies to get a new movie to watch
  • /learn to learn a new french word
  • /stop to end the bot

Contributing

​ Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Author

​ 👤 Delice Lydia

Acknowledgments

Shout out to Atipugin for the project inspirations

Loom Video

Loom-Video

Show your support

​ Give a ⭐️ if you like this project!

capstone-telegram-bot's People

Contributors

delicelydia avatar

Stargazers

Eric Enaburekhan avatar  avatar

Watchers

James Cloos avatar  avatar

capstone-telegram-bot's Issues

Good project

  • Fix the telegram Token.
  • Place the telegram token on env file.
  • Bot's implementation looks good.

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.