SametKUM / lilith

A Discord.js bot for Diablo 4 that allows tracking events, news and more.

Home Page:https://discord.gg/Mv2yCrJK87

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lilith Discord Bot

A Discord.js bot for Diablo 4 that allows tracking events, news and more.

Contributing

If you want to contribute to this project, please mind joining the Discord server first.

Installation

We recommend using our hosted version of Lilith, but if you want to host it yourself, follow the instructions below.

Requirements

Setup

Don't forget about the .env file !

  1. Clone the repository
git clone https://github.com/lilith-discord-bot/lilith.git
  1. Install dependencies
npm install
  1. Create a .env file in the root directory and add the following:
TOKEN=your_token_here

#Database
POSTGRES_HOST=postgres_database_host # Doesn't need to be set if running with Docker.
POSTGRES_USER=postgres_database_user
POSTGRES_PASSWORD=postgres_database_password
POSTGRES_DATABASE=postgres_database
DATABASE_URL="postgresql://user:password@host:5432/database"

#Cache
REDIS_HOST=redis_host # Doesn't need to be set if running with Docker.
REDIS_PORT=0000 # Doesn't need to be set if running with Docker.
REDIS_PASSWORD=redis_password
  1. Start the bot
npm run bot:up
  1. Init Prisma migration (will be handled by us directly through the Docker)
docker cp /local/path/to/schema.prisma lilith-discord-bot:/schema.prisma
docker exec -it lilith-discord-bot npx prisma migrate dev --name init_migration --schema /schema.prisma

If you're running docker, you can just use

docker run --name bot -e REDIS_HOST=redis -e REDIS_PASSWORD=password -e DATABASE_URL=something://user:password@host:port/database ghcr.io/lilith-discord-bot/lilith:latest

you still have to run Redis and a database, if you don't wanna bother with that, npm run bot:up sets everything up for you using compose

Other commands:

  • npm run bot:stop - Stop the bot
  • npm run bot:restart - Restart the bot
  • npm run bot:rebuild - Rebuild the bot

Issues

If you find a bug or have a feature request, please open an issue on GitHub.

License

This project is licensed under the MIT License.

About

A Discord.js bot for Diablo 4 that allows tracking events, news and more.

https://discord.gg/Mv2yCrJK87

License:MIT License


Languages

Language:TypeScript 99.5%Language:Dockerfile 0.4%Language:Shell 0.0%