| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A suite of tools for managing the EuroPython Conference Discord server:
The scripts work standalone and only require an Auth token. Please find more documentation in the respective files.
The bot has the following extensions ("Cogs"):
All configuration is server-agnostic. You can set up your own Discord server and use the included configuration.
Arguments and environment variables:
Included example configuration files:
Cache files (will be created if necessary):
This section describes how to install and run the bot. Please see below for development and EuroPython-specific deployment instructions.
With pip:
# create and activate virtual environment (optional, but recommended)
python -m venv .venv
. .venv/bin/activate # Windows: .venv/Scripts/activate
# install this package (use '-e' for 'editable mode' if you plan to modify the code)
pip install .
# set environment variables
export DISCORD_BOT_TOKEN=... # Windows: $env:DISCORD_BOT_TOKEN = '...'
export PRETIX_TOKEN=... # Windows: $env:PRETIX_TOKEN = '...'
# run the bot with a given config file
run-bot --config-file your-config-file.tomlWith uv:
# install dependencies in virtual environment
uv sync
# set environment variables
export DISCORD_BOT_TOKEN=... # Windows: $env:DISCORD_BOT_TOKEN = '...'
export PRETIX_TOKEN=... # Windows: $env:PRETIX_TOKEN = '...'
# run the bot with a given config file
uv run run-bot --config-file your-config-file.tomlNOTE: This project uses uv to manage Python versions and dependencies. If you don't plan to add/remove/update dependencies, you can also use pip, Python >= 3.14.
Follow Discord Server and Bot Setup if you don't yet have a Bot and Server for developing the bot.
Expected outcome: You have a Discord Bot Token and can run a Discord Bot on a Discord Server.
See discord-guild-configurator to configure your Discord Server with the expected channels, roles, and messages.
Expected outcome: A Discord Server ready to be used for this bot.
This bot connects to a Pretix instance to obtain a list of valid tickets.
Follow Pretix Client Setup to either connect to a real Pretix instance, or to use a mock.
To run the bot, use the following:
# set environment variables
export DISCORD_BOT_TOKEN=... # Windows: $env:DISCORD_BOT_TOKEN = '...'
export PRETIX_TOKEN=... # Windows: $env:PRETIX_TOKEN = '...'
# run the bot with a given config file
run-bot --config your-config-file.tomlThis is a list of useful commands when working with uv. Please refer to the uv documentation or uv help for details.
# activate uv-generated virtual environment ("venv")
. .venv/bin/activate # Windows: '.venv/Scripts/activate'
# create/synchronize venv based on uv.lock, update uv.lock based on pyproject.toml
uv sync
uv sync --dev # include dev dependencies
# execute command inside uv-generated venv (can be skipped if venv is activated)
uv run [command]
# add package
uv add [package]
uv add --dev [package] # as dev dependency
# upgrade packages
uv lock --upgrade
# remove package
uv remove [package]For the EuroPython conference, this bot is deployed on a VPS. It uses Ansible to configure the VPS, and Docker Compose to run the bot. The deployment process is executed via a GitHub Action.
Related files:
| Back | FazBrowse Home | New Git URL |