Sign inSign up

simoneklundh/discordbot

By simoneklundh

•Updated almost 4 years ago
Archived

a simple bot which creates and removes text channels for private messages between admin and user

Image
0

190

simoneklundh/discordbot repository overview

A docker version of this bot https://github.com/Simon-Eklundh/discordbot-python⁠

For the feature-list, look at the github above.

It currently requires a very specific database configuration, but it is to be amended to be more agnostic when it comes to the configuration, whilst still being a postgres database.

The following is an example docker-compose file which shows the current database configuration that is required: I've found that you need to do docker-compose up to get mysql running, and then close it and run docker-compose again for the first mysql setup.

version: '3.9'

volumes:
  data:

services:
  mysql:
    image: mysql
    environment:
      - MYSQL_ROOT_PASSWORD=discordbotpw
      - MYSQL_USER=discordbot
      - MYSQL_PASSWORD=discordbotpw
      - MYSQL_DATABASE=discordbot
    ports:
      - 3306:3306
    volumes:
      - data:/var/lib/postgresql
    healthcheck:
      test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", "-uroot", "-ppass"]
      interval: 5s
      timeout: 5s
      retries: 20
    restart: unless-stopped
  myapp:
    image: simoneklundh/discordbot
    depends_on:
       mysql:
          condition: service_healthy

    environment:
    - BOT_TOKEN=OTUyNjAzNDQzMjIxMTMxMjc0.Yi4bFw.uA7spxxJRQXp6HA6EIRJo0cH7dM
    
    restart: unless-stopped
    

Tag summary

Content type

Image

Digest

sha256:24511377e…

Size

297.7 MB

Last updated

almost 4 years ago

docker pull simoneklundh/discordbot