-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
full-bars edited this page May 3, 2026
·
1 revision
SPCBot is designed for flexibility, supporting both containerized and native Linux deployments.
- Python 3.12+ (matches production stack).
- Discord Bot Token: Create one at the Discord Developer Portal.
- Upstash Redis (Optional): Required only for High Availability (Failover).
-
Syncthing (Optional): Required for cross-node
events.dbreplication.
The easiest way to run SPCBot with all scientific dependencies (MetPy, Cartopy) pre-installed.
-
Setup Directory:
mkdir spc-bot && cd spc-bot curl -O https://raw.githubusercontent.com/full-bars/spc-bot/main/docker-compose.yml curl -O https://raw.githubusercontent.com/full-bars/spc-bot/main/.env.example cp .env.example .env
-
Configure: Edit
.envwith your token and channel IDs. -
Launch:
docker compose up -d
Use the portable deploy script for an interactive setup on Ubuntu/Debian.
git clone https://github.com/full-bars/spc-bot.git
cd spc-bot
sudo ./deploy.shThe script creates a virtual environment, configures your service, and installs aliases (spcon, spcoff, spclog) into your .bashrc.
| Variable | Description |
|---|---|
DISCORD_TOKEN |
Your bot token from Discord. |
GUILD_ID |
The ID of your primary server. |
LOG_CHANNEL_ID |
Channel for system alerts and errors. |
NWWS_USER |
NWWS-OI XMPP username. |
NWWS_PASSWORD |
NWWS-OI XMPP password. |
IS_PRIMARY |
Set true for your main node. |
For a full list of configuration options, see the Configuration Guide.