Skip to content

Running locally

Adam Hurm edited this page Aug 5, 2024 · 2 revisions

Step 1: Clone this repository and install dependencies

The following instructions are for *NIX machines, but this can just as easily run elsewhere.

# Clone repo
git clone --recursive git@github.com:adamhurm/discord-super-pal-of-the-week.git
cd discord-super-pal-of-the-week

# Create venv and install super-pal dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

# Install spin-the-wheel dependencies
cd discord-spin-the-wheel
yarn install

# (Replace with the appropriate command for your package manager)
apt install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

Step 2: Create a local file named .env to hold your tokens and IDs

Please see the How to get Tokens and IDs table for instructions.

SUPERPAL_TOKEN=
WHEEL_TOKEN=
GUILD_ID=
EMOJI_GUILD_ID=
CHANNEL_ID=
ART_CHANNEL_ID=
OPENAI_API_KEY=
GPT_ASSISTANT_ID=
GPT_ASSISTANT_THREAD_ID=

Step 3: Run!

cd discord-super-pal-of-the-week
python3 super-pal.py

cd discord-spin-the-wheel
yarn start

Follow this guide first:

Then, follow the guidance for your chosen deployment method:

Clone this wiki locally