josegomezr / opentdb-quiz-bot

A Quiz Telegram bot fed with opentdb.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenTDB Quiz Bot

A telegram quiz bot fed with opentdb.com data.

Dependencies

  • python-venv or pipenv
  • requests
  • python-telegram-bot
  • Your bot will needs privacy mode to be disabled. Go to: BotFather > /mybots > <select your bot> > Bot Settings > Group Privacy

Running

  1. Clone the repo & cd into it.
# if using pipenv
pipenv install
pipenv shell
QB_BOT_TOKEN="YOUR TELEGRAM BOT TOKEN" python bot.py

# ============

# if using python-venv / virtualenv
python3 -m venv env/
source env/bin/activate
pip install -r requirements.txt
QB_BOT_TOKEN="YOUR TELEGRAM BOT TOKEN" python bot.py

Credits

About

A Quiz Telegram bot fed with opentdb.com


Languages

Language:Python 100.0%