Star us on GitHub!

Container

Set up Archiver in a Docker/Podman container

Requirements

Setup


Make a Discord app

Go to the Discord developer dashboard and make a new app. Click Create Application at the upper right corner of the page Set the name, picture and bio to whatever you want.

Configure the bot

To make your bot private, go to Installation and change Discord Provided Link to None, then click Save. Do what is said above, this is a picture of that Now, go to Bot and turn off Public bot (remember to hit Save again). Turn off Public Bot

Add the bot

Go to OAuth2 and scroll down to OAuth2 URL Generator. Choose the applications.commands scope and User Install (or Guild Install if you want to use it in a server). Scopes you have to set, explained in paragraph above

Copy the URL and paste it in a new tab. Add the bot from there.

Copy the token

Go to Bot and click Reset Token. You will then be shown your token, click Copy. Click reset Token

Set up the environment

Go to the source code repository and clone the code using Git.

git clone https://github.com/Ast3risk-ops/archiver

Copy docker-compose-example.yml to docker-compose.yml:

cp docker-compose-example.yml docker-compose.yml

Edit docker-compose.yml with your token and error webhook URL:

docker-compose.yml
version: '3'
services:
  archiver:
    image: ghcr.io/ast3risk-ops/archiver:latest
    restart: unless-stopped
    environment:
      - WEBHOOK_URL=webhookurlhere
      - TOKEN=tokenhere

Run the bot

Using your OCI runtime (Podman or Docker), execute the Docker Compose file.

Docker
Podman
docker compose up -d

Updating

In the same folder, simply run the following commands:

Docker
Podman
docker compose down
docker compose pull
docker compose up -d