Skip to content

exrod/grave

Repository files navigation

Grave

Grave is a music bot developed by Cemetery Studios that integrates with Discord to provide high-quality music streaming. It supports various music sources, including Spotify.

Table of Contents

Features

  • Stream music from various sources
  • Integrates with Discord
  • Automatic deployment with Docker
  • Error logging and monitoring through webhooks

Setup

Node Modules

First, install the modules used in this code using:

npm install

Environment Variables

Create a .env file and add the following configurations:

# Discord Token
TOKEN=""

# MongoDB
DATABASE_URL=""

# Lavalink
LAVALINK_HOST=
LAVALINK_PORT=
LAVALINK_PASSWORD=

# Webhooks
NODE_ERROR_LOGS_HOOK=""
NODE_DESTROY_LOGS_HOOK=""
NODE_CONNECTION_HOOK=""
NODE_DISCONNECT_LOGS_HOOK=""
NODE_RECONNECT_LOGS_HOOK=""
ERROR_LOGS_HOOK=""
GUILD_JOIN_LOGS_HOOK=""
COMMAND_LOGS_HOOK=""
GUILD_LEAVE_LOGS_HOOK=""
RUNTIME_LOGS_HOOK=""
DM_LOGS_HOOK=""

# Spotify
SPOTIFY_CLIENT_ID=""
SPOTIFY_CLIENT_SECRET=""

Prisma

Generate the Prisma client:

npx prisma generate

Docker

Use Docker for deployment as it will automatically start a Redis server too:

docker compose up --build

Usage

Once everything is set up, you can run the bot using Docker. Make sure your .env file is properly configured with all the necessary credentials and settings.

Start the bot in development mode:

npm run dev

Build the project

npm run build

Support

For support, join our Discord or contact us via email at [email protected].

Contributing

We welcome contributions!

Credits

This code was developed by developers of Cemetery Studios, No credits to anyone

License

This project is licensed under the Apache License. See the LICENSE file for details.

About

grave's official source code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published