GithubHelp home page GithubHelp logo

sametkum / lilith Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lilith-discord-bot/lilith

0.0 0.0 0.0 356 KB

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

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

License: MIT License

Shell 0.03% TypeScript 99.53% Dockerfile 0.44%

lilith's Introduction

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.

lilith's People

Contributors

ayloonah avatar brentrieck avatar ey4we avatar frawolf avatar glazk0 avatar kasui92 avatar luffy75 avatar mawco avatar piekario avatar queen-of-avalon avatar thomashartmanndev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.