Skip to content

A simple Telegram bot that tells jokes of various types using the JokeAPI.

Notifications You must be signed in to change notification settings

saa1man/Jokes-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Jokes Telegram Bot

A simple Telegram bot that tells jokes of various types using the JokeAPI.

You can try the telegram bot by following this link.

Requirements

  • Python 3.7 or higher
  • telegram package
  • requests package

Installation

  1. Clone this repository: git clone https://github.com/saa1man/Jokes-bot.git
  2. Install the required packages: pip install -r requirements.txt
  3. Set your bot token as an env variable: $ export BOT_TOKEN=YOUR_BOT_TOKEN
  4. Run the bot: python main.py

Usage

  1. Start the bot by typing /start.
  2. Type /help to get a list of available commands.
  3. Use the commands to get jokes of various types:
    • /any for a random joke of any type.
    • /programming for a random programming joke.
    • /misc for a random miscellaneous joke.
    • /dark for a random dark joke.
    • /pun for a random pun joke.
    • /spooky for a random spooky joke.
    • /christmas for a random Christmas joke.

Contributing

If you find any issues or have any suggestions, feel free to create a pull request or submit an issue.

Releases

No releases published

Packages

No packages published

Languages