Sign inSign up

jakestanger/discotheque

By jakestanger

Updated 9 days ago

Discord bot

Image
0

708

jakestanger/discotheque repository overview

Discotheque 2

Yet another general-purpose Discord bot. WIP, of course.

Setup

Requirements
  • Node 12.x or later and Yarn
  • An empty Postgres database
Procedure
  • Copy .env.example to .env and fill out the Bot Configuration section.
    • Optionally fill in the Docker Compose values if using the Compose extras.
  • Run yarn prisma migrate deploy to set up the database.
  • Run yarn build to compile the source.
  • Run yarn disco client add --name <client_name> --token <client_token> to add a bot client.
    • Clients can be added while the bot is running, but it must be restarted to take effect.
  • Run yarn start to start the bot.

Docker

Fill in the env vars in the below command and run:

docker run \
  -v ./logs:/app/logs \
  -e 'BOT_OWNER_ID=' \
  -e 'DATABASE_URL=' \
  -e 'SECRETS_KEY=' \
  -e 'DGM_DATABASE_URL=' \
  -e 'API_AUTH_TOKEN=' \
  jakestanger/discotheque

Tag summary

Content type

Image

Digest

sha256:a74bfa72e

Size

493.7 MB

Last updated

9 days ago

docker pull jakestanger/discotheque