Skip to content

Telegram Joke Bot that sends a new joke, almost everytime!

Notifications You must be signed in to change notification settings

onkarsb/TelegramJokeBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TelegramJokeBot

Telegram Joke Bot that sends a new joke, almost everytime!

Run

1. Manually

We need to export two environment variables TOKEN and JOKE_API_URL before running the joke_bot.py script.

export TOKEN="6255139505:AAGQXZwzi4xH1KPI3UAIPwQ6OcmSvojSayE"
export JOKE_API_URL="https://v2.jokeapi.dev/joke/Any?format=txt"
python3 ./joke_bot.py

2. Docker

build container

docker build -t joke_bot:0.2 .

run docker container

docker run --rm -d \
    -e TOKEN="6255139505:AAGQXZwzi4xH1KPI3UAIPwQ6OcmSvojSayE" \
    -e JOKE_API_URL="https://v2.jokeapi.dev/joke/Any?format=txt" \
    joke_bot:0.2

About

Telegram Joke Bot that sends a new joke, almost everytime!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published