A Discord-only Project Sekai bot. All PJSK data comes from sbuga.com's public API.
pip install -r requirements.txt- On Python 3.13+ this builds
mojimojifrom source (no upstream wheels yet), which needs a C++ compiler (build-essential/ MSVC Build Tools).
- On Python 3.13+ this builds
- Copy
config.example.yml→config.ymland fill in the Discord token, owner IDs, sbuga API URL/token, and Postgres connection. - Create the schema:
python -m scripts.database_setup - Upload app emojis:
python -m scripts.upload_emojis(uploadsdata/assets/emojis/*, exports ids todata/emojis.json; re-run whenever new emoji images are added) - Download unidic data
python -m unidic download - Install required libraries (Linux and Windows need FFMPEG! install in path (or put into libraries as ffmpeg.exe for Windows))
- Remember to
chmod +xthe Linux executable every time you reupload it!!!!! - Run:
python main.py
bcz mojimoji and libraries
sudo apt update
sudo apt install -y python3 python3-venv python3-dev build-essential git
# chart-preview renderer: needs ffmpeg, a virtual X display, and Mesa's software GL.
# (GLFW dlopens the X11/GL libs, so they don't show up in `ldd`.)
sudo apt install -y ffmpeg xvfb libgl1 libglx-mesa0 libgl1-mesa-dri libx11-6 libxext6 libxrandr2 libxinerama1 libxcursor1 libxi6
chmod +x libraries/nxsk-chart-preview
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python -m unidic download
python -m scripts.database_setup
python -m scripts.upload_emojis
python main.py