Skip to content

[✨ FEATURE]: Deploy bot in server (or a test server) #10

@tqmsh

Description

@tqmsh

Hi Marc, this description will outline the steps for deploying the bot when free

The video tutorial for these steps is here -> https://www.youtube.com/watch?v=C2pKK3UciPI note, slightly outdated

  1. Make discord bot, please ensure below perms are given, the one in the video is outdated and missing the manage channel perm
Image
  1. Get the discord bot token, put it in .env and repo secret
  2. Make firestore, get private key, put the json in repo (at /discord_bot/config/credentials.json) and put the base 64 encoded in repo secret
  3. Make github token with repo perms, put in .env and repo secret
  4. Make github Oauth app, hardcode homepage URL = https://ruxauth.ngrok.io and callback URL = https://ruxauth.ngrok.io/login/github/authorized, put client id and client secret in .env
  5. Fill in the rest of the hardcoded env variables, see DM for them
  6. run:
# Create fresh virtual environment
python3.13 -m venv venv

# Activate virtual environment
source venv/bin/activate

# Upgrade pip
python -m pip install --upgrade pip

# Install dependencies (note the config/ path)
pip install -r discord_bot/discord_bot_requirements.txt
  
chmod +x discord_bot/deployment/deploy.sh

./discord_bot/deployment/deploy.sh

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions