aevtikheev / quiz-bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple bot that plays quiz game with you.

Set up:

Set environment variables:

  • TELEGRAM_BOT_TOKEN - Telegram bot token. Can be obtained from Bot Father.
  • VK_BOT_TOKEN - Vkontakte.ru bot token. Generated at the VK group administration panel.
  • REDIS_HOST - Redis DB hostname.
  • REDIS_PORT - Redis DB port.
  • REDIS_PASSWORD - Redis DB password.
  • QUESTIONS_FILE - Path to a file where questions for the bot are stored (as a JSON).

Usage:

  • Run Telegram bot.

    python run.py telegram_bot

  • Run VK bot.

    python run.py vk_bot

  • Parse questions data and store it in a JSON file (data can be found here).

    python run.py parse_questions --questions_folder data --output_file questions.json

Demo

About

License:MIT License


Languages

Language:Python 100.0%