telebot

An interactive Telegram Chatbot built from scratch using TELEGRAM BOT API. It displays jokes and motivational jokes, depending on the command. Built with Ruby

Stars
3
Committers
1

Telegram_bot(@wales_telebot)

A telegram bot that can be initialized on the command line It responds to commands - /hello, /quote, /joke, /hi, /help, or /bye.

Purpose

This is a capstone/assessment project for the ruby module microverse curriculum .

Features

  • The bot has two main features
  • It gives you the random jokes based on the name given to it.
  • It diplays motivational quotes.

Commands To Use

/help
/hello
/hi
/start
/bye
/quote
/joke

Built With

  • Ruby
  • Telegram Bot API
  • Type fit Quotes API
  • Chuck Norris Jokes API
  • Type Fit Quotes API

Requirements

  • A computer
  • Ruby. Installing Ruby
  • Telegram account
  • A telegram Chat bot API

Getting Started

  • Get a local copy of this repo Open a terminal and run:git clone [email protected]:OlawaleJoseph/telebot.git

  • Navigate to your telegram account if you have one. Or create new telegram account.

  • Create a new bot with the help of BotFather

  • Obtain your new bot's token.

  • Create .env file in the root directory.

  • In the .env file create a variable as indicated the .env.example file

  • Open a terminal and run bunle install

  • After successful installation run the command ruby bin/main.rb

  • On your telegram account search for your bot's name

  • Then use the commands above to begin interacting.

Dependencies

  • telegram-bot-ruby
  • dotenv
  • httparty

Testing

Install Rspec gem in your system.

Open Command Prompt or Terminal and run: gem install Rspec

Navigate into the project folder and run the following command in the console: rspec

Contributor

Adedeko Olawale

Contributing

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

Show your support

Related Projects