![](https://private-user-images.githubusercontent.com/6557139/352795526-b25b17c1-6636-4a01-9f52-4c761c2a033f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0OTEzNjYsIm5iZiI6MTczOTQ5MTA2NiwicGF0aCI6Ii82NTU3MTM5LzM1Mjc5NTUyNi1iMjViMTdjMS02NjM2LTRhMDEtOWY1Mi00Yzc2MWMyYTAzM2YucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMjM1NzQ2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTRiOWZkYWMzZjNhY2YxZGE3NTA0ZTQ0M2MxOWRkY2EzMThmZDdkZDI2YWFjZDk3NTg0MGMwNTU1NjJhYjEzOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.h5t5Cm54xZx4fK_54AQ7FyQxY29aVPbZl9J7SnivyRQ)
- Squad overview web page
- Match history web page
- Discord integration
- Player of the Week challenge
- Match-wise badges (quad-kill, ace, carrier, peach, surpass yourself)
- Session-wise badges (rising star)
- Interactive data exploration via included JupyterLite instance and Python
Create a virtual environment for Python:
python -m venv env
Activate the environment:
source env/bin/activate
Install the dependencies:
pip install -r requirements.txt
To bootstrap CS2PB easily, there is a fully automated process:
sh bootstrap.sh
Note that this requires access to the private repository kosmotive/cs2pb-bootstrap, which you might not have access to. If you don't have access to that repository, you will have to bootstrap manually. To do that, create the file django/discordbot/settings.json
(see django/discordbot/settings.json.skeleton
for an example), and setup the following environment variables.
The following environment variables are required:
-
CS2PB_ADMIN_MAIL_ADDRESS
: The mail address to send notifications to, when important failures occur which might require manual intervention (e.g., failure of the Steam API, or parsing demo files). -
CS2PB_STEAM_API_KEY
: A valid key for accessing the Steam API. -
CS2PB_DISCORD_ENABLED
: Set to1
to enable the Discord integration. -
CS2PB_STEAM_USERNAME
: The username of the Steam account to use. -
CS2PB_STEAM_PASSWORD
: The password of the Steam account to use.
After setting up the environment variables, run:
cd django
python manage.py migrate
python initialize.py --help
- Badge designer: https://badge.design