2.2 KiB
2.2 KiB
QuizBot
Open source Discord bot for quizzes and quest-like events.
Installation
Dependencies
- Python 3.11+
- MongoDB
- Redis/Valkey or Memcached (used for caching, optional)
- Git (only if installing from source)
Installation from release
- Download the release archive from Releases
- Unpack the archive to a folder of your choice
- Go to the project folder
- Create a virtual environment:
python3 -m venv .venv
- Activate virtual environment:
- Linux:
source .venv/bin/activate
- Windows (cmd):
.venv/bin/activate.bat
- Windows (PowerShell):
.venv/bin/activate.ps1
- Linux:
- Install requirements:
pip install -r requirements.txt
- Copy example config to a real file:
cp config_example.json config.json
- Configure the bot (see Configuration)
- Start the bot:
python main.py
Installation from source
- Clone the repository:
git clone https://git.end-play.xyz/profitroll/QuizBot.git
- Go to the project's folder:
cd QuizBot
- Continue from step 4 of Installation from release
Configuration
TODO
Upgrading
TODO
Usage
- Invite the bot to your server with permissions
137707834448
andapplications.commands
scope.
You can also use the following URL template to invite your bot after replacingCLIENT_ID
with you bot's client ID:
https://discord.com/oauth2/authorize?client_id=CLIENT_ID&permissions=137707834448&integration_type=0&scope=applications.commands+bot
- Go to "Server Settings > Integrations > QuizBot" and disable access to admin commands for you default role.
Only admins should have access to following commands:/config
,/event
,/stage
and/user
.
Allowing access to/status
is not recommended, however won't do any harm if done so. - Configure bot for usage on your server using
/config set
providing all the necessary arguments.
Timezones are compatible with summer time (e.g.CET
will be interpreted asCEST
during summer time).