Bots for quiz
Description
This repository contains Vk and TG bots for the quiz. They get used to the questions and check the correctness of the answers to them.
Bot examples:
Table of content
Installation
-
Install using pip:
pip install quiz-bots
-
Create a bot in Telegram via BotFather, and get it API token.
-
Create redis account in Redislabs, and after that create cloud database (you can choose free plan). Get your endpoint database url and port.
-
Create VK's group, allow it send messages, and get access token for it.
-
Register environment variables in the operating system:
export TELEGRAM_TOKEN=telegram_token export DB_ENDPOINT=redis endpoint export DB_PASSWORD=redis_password export VK_GROUP_TOKEN=token_vkontakte
-
Put the question files in a folder(sample files are in the repository folder quiz_files_example) and export quiz content to Redis:
quiz-bots export_quiz_content [path_to_questions_folder]
How to use
Run TG bot:
quiz-bots tg-bot
Run VK bot:
quiz-bots vk-bot
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Project Goal
The code is written for educational purposes on online-course for web-developers dvmn.org.
Metadata
Release files for quiz-bots 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quiz-bots-0.2.2.tar.gz | 8.5 kB | Without provenance | Details for quiz-bots-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quiz_bots-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for quiz_bots-0.2.2-py3-none-any.whl |
Total release size: 18.2 kB
Release files / quiz-bots-0.2.2.tar.gz
| Download URL | quiz-bots-0.2.2.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84a5d4b218ad562346f57c4245b46603a7f28afe614420ac401a677db66fd10b
|
|
BLAKE2b-256 checksum How to use checksums |
8b09350b35bbd7d61f0c48724fb6b59479826ee6683bf3724736890c6e0588f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.3 Linux/5.3.0-53-generic
|
Release files / quiz_bots-0.2.2-py3-none-any.whl
| Download URL | quiz_bots-0.2.2-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2f3ad8d1b1039c472860fcc2b49161ec7b0955f47c6eea8eff51294d4f0b8a0
|
|
BLAKE2b-256 checksum How to use checksums |
c7e4afd76539351efe8c3e3f2db116f6163fc54e26620c93a7725f2b76d98a40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.3 Linux/5.3.0-53-generic
|
Security for quiz-bots 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.