Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

antonykamp/QuizBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuizBot

example workflow Documentation Status codecov

QuizBot is a Telegram bot with which you can create and attempt quizzes. A quiz is a collection of possibly random questions.

The processes and conversation of creating, attempting to, renaming, and removing existing quizzes can be shown as automata-diagrams. Please take a look at the docs.

Question types

Multiple choice

What is QuizBot?

  1. A Telegram bot
  2. A python application
  3. A city

Answer: A Telegram bot, A python application

Single choice

What is Quizbot?

  1. A Telegram bot
  2. A dish
  3. A fish

Answer: A Telegram bot

Yes or no

Is Quizbot a telegram bot?

  • yes
  • no

Answer: yes

Check number

In which year was QuizBot created?

Answer: 2020

Check string

Where can you contribute?

Answer: Github

Create new quiz

my_quiz = Quiz()

Attemp quiz

my_attempt = Attempt(my_quiz)

TOKENS

If you want to host QuizBot by yourself you need some enviroment variables:

Variable Usage
MONGODB The token from your MONGODB
TELEGRAM_TOKEN The token of your telegram bot
WEBHOOK The webook to deploy the boot (eg heroku)

If you want to test the bot you also need

Variable Usage
API_HASH Your personal API_HASH to send messages
API_ID Your personal API_ID to send messages
SESSION_STR Your personal session-string to send messages
UPDATER_ID The Updater ID to send and receive messages

It's no rocketscience ;)