Were you looking for the user manual?
- Install Docker Compose
- Create a
.env
file with the variables in the table at the bottom - Clone repo:
git clone https://github.com/Regalijan/Virgil
- Checkout to the
tests-passed
branch:git checkout tests-passed
- Run
docker-compose up -d
to start the bot.
Use WSL on Windows
Node 17.5.0 or later is required
- Install Node.js
- Install MongoDB
- Install Redis
- Install Python - you may want to use your package manage on linux
- Linux: Install
gcc
g++
make
| Windows: Install Visual Studio Build Tools - Create a
.env
file with the variables in the table at the bottom - Compile:
npx tsc
- Deploy the slash commands:
node dist/deploy.js
- Start the mongo and redis servers if they are not already running
- Start the bot:
node dist
DISCORDTOKEN: The bot token
DSN?: Your Sentry dsn
INSTALL_FFMPEG?: Set to any value to install FFmpeg.
MFA_API?: Base URL of MFA bridge service.
MFA_API_TOKEN?: API token of MFA bridge service.
MFA_CLIENT_ID?: Discord client id of MFA service OAuth2 app.
MFA_CLIENT_SECRET?: Discord client secret of MFA service OAuth2 app.
MFA_VERIFY_SITE?: User-facing URL of MFA verification site.
MONGOURL?: Mongo connection string, only needed if using external mongo instance or development copy outside of docker.
REDIS?: Redis connection string, only needed if using external redis instance or development copy outside of docker.
REGISTRY_API_KEY?: Virgil Registry API key, can be obtained at https://registry.virgil.gg/developers
SKIPDEPLOY?: Set this to anything to skip deploying slash commands when starting container.
- "?" denotes an optional variable