Fill the .env.example
and rename to .env
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:
- ./db/data:/var/lib/mysql
Migrate the schema from syntony666/discord-bot-database
cd discord-database
npm install
npm run migrate
Node.js 19.6.0+ is required.
npm install
npm run app