Skip to content

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

Notifications You must be signed in to change notification settings

OlawaleJoseph/telebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram_bot(@wales_telebot)

screenshot

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 git@github.com: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.

    env example

  • 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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages