Interactive team-based quest platform for Telegram with customizable storylines and administrative controls.
- Quest Management:
- π Multiple parallel quests with unique themes
- π§© Team formation with participation confirmation
- π Step-by-step quest progression
- Communication:
- π¬ Real-time team chat
- π’ Broadcast messages to entire teams
- Administration:
- π§Ή Clear participant lists (
/delete) - π View all participants and teams (
/list)
- π§Ή Clear participant lists (
-
Clone repository
git clone https://github.com/Zebaro24/Quest-Game.git cd telegram-quest-bot -
Create virtual environment
python -m venv .venv # Windows .venv\Scripts\activate # Linux/Mac source .venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
-
Configure environment
Create.envfile with your bot token:TOKEN=your_telegram_bot_token_here
python main.py- Start bot with
/startcommand - Choose a quest from available options
- Join a team and confirm participation
- Follow bot instructions to complete quest stages
/delete- Clear all participant lists/list- Show all participants and teams
main.py # Bot entry point
quests/ # Quest implementations
βββ sample.py # Base quest class
βββ QuestHacker.py # Hacker-themed quest
βββ QuestVirne.py # Reliability-themed quest
βββ QuestVtrach.py # Lost-hour-themed quest
requirements.txt # Dependencies
.env # Environment configuration- Create new Python file in
quests/directory - Inherit from
SampleQuestbase class - Define quest attributes:
name = "Quest Name" max_count = 4 # Max players description = "Quest description"
- Implement
func_start()for initial message - Define stage functions in
stage_func_get - Add quest to
all_questsinmain.py
Example:
from sample import SampleQuest
class MyQuest(SampleQuest):
name = "New Adventure"
max_count = 3
description = "An exciting new quest"
stage_func_get = {0: lambda: 0, 1: lambda self: self.stage_1()}
def func_start(self):
self.send_text_all("Welcome to the quest! First task: ...")
def stage_1(self):
# Stage 1 logic
pass| Quest Name | Theme | Players | Description |
|---|---|---|---|
| QuestHacker | Cyberpunk | 1-4 | Hack through digital barriers |
| QuestVirne | Mystery | 2-5 | Solve puzzles to uncover truth |
| QuestVtrach | Adventure | 3-6 | Recover a lost artifact |
- Developer: Denys Shcherbatyi
- Email: zebaro.work@gmail.com
Note: This project is a template with implemented interaction mechanics, ready for content creation. Development is currently on hold but may resume in the future.