GithubHelp home page GithubHelp logo

sneeu-leeu / eazy-mac-bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 24 KB

A Telegram Bot built with Ruby. It takes specific commands and returns either pictures or quotes pulled from different API's with the

Ruby 100.00%

eazy-mac-bot's Introduction

Light Hearted Telegram Bot

A Telegram bot that can perform various activities.This bot generates : Star Wars quotes, Dog images, Random Useless facts, Geek Jokes.

Built With

  • Ruby
  • Rspec
  • Rubocop
  • VSCode

Commands Availible

  • /help : Shows availible commands
  • /fact : Generates random fact
  • /cute_me : Generates random dog breed image
  • /star_quote : Supplies somewhat inspirational starwars quote
  • /geek_joke : Supplies a geeky joke

How to Install

  • Install Ruby in your system. To install Ruby, you can read the Documentation

  • You can clone it using git clone command. After cloning the git folder you have to run:

  • Navigate to your telegram account or create one here

  • create a bot in Telegram and talk to the Botfather to generate yourself a Token. (click on the Botfather for more info)

  • get the token and replace it with the given token in bot.rb file.

  • $ run ruby bin/main.rb

  • then run the commands in your bot.

  • Or you can go to your telegram account search for :

    t.me/EazyMacBot

  • Then type the comman /help to see what it can do

How to Test the Methods In the Classes

Install Rspec gem in your system. To do this:

Open Command Prompt or Terminal and run:

  bundle install

Navigate into the spec folder and run the following at the console:

  • rspec

Prerequisites Text editor,Github profile and Git.

Author

Stephan Annandale

🤝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!

eazy-mac-bot's People

Contributors

sneeu-leeu avatar

Stargazers

 avatar

Watchers

 avatar

eazy-mac-bot's Issues

the-othos

  • Hide api key using env
  • Refactor repeated code
  • The commands are fun

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.