Skip to content

syntony666/discord-bot_

Repository files navigation

Discord Bot

Made with TypeScript Package - discord.js Build Status License

view - Documentation


Prerequisite

Fill the .env.example and rename to .env

If you don't use MariaDB, some hard-coded stuff you need to do by yourself.

Quick Install

Using Docker

You can just build it and run it in single command docker-compose up

If you want to run in the background: docker-compose up -d

Manual Install

Database

Prepare the clean database with utf8mb4 encoding and run it

Recommand: Using Docker

version: '3'

services:
  mariadb:
    image: mariadb
    ports:
      - '3306:3306'
    restart: always
    environment:
      - MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=yes
      - MARIADB_USER=user
      - MARIADB_DATABASE=discord_bot
      - MARIADB_CHARACTER_SET=utf8mb4
      - MARIADB_COLLATE=utf8mb4_general_ci
    volumes:
      - data:/var/lib/mysql

Migrate the schema

npm run migrate

Install and Run the bot

Node.js 18.12.0+ is required.

npm install

npm run app