TotomInc / discord-stream

A music-streaming bot for Discord, made to be performant and used on thousands of servers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

note

Greenkeeper badge lerna

A music bot for Discord with high-performance, easily scalable.

Structure

The project is split into smaller packages which can be found into the /packages folder:

  • discord-bot: source for the Discord bot.
  • rest-api: an API to communicate with the MongoDB.

Each package contains a readme.

Quick-setup

  1. Make sure you have the following dependencies installed on your system:

    • FFMPEG (used by discord-bot package)
    • MongoDB (used by rest-api package)
  2. Bootstrap all packages and build them:

# install dependencies across the multiple packages
yarn

# run build script on all packages
yarn build
  1. Create a copy of the .env.example as a .env file and make sure to fill all the requested fields, otherwise the bot won't start and work properly.

  2. You will need to run all packages as background processes, I recommend using PM2.

## start the rest-api server as a background process
pm2 start packages/rest-api/dist --name rest-api

## start the discord-bot as a background process
pm2 start packages/discord-bot/dist --name discord-bot

License

This project is under MIT license.

About

A music-streaming bot for Discord, made to be performant and used on thousands of servers.

License:MIT License


Languages

Language:TypeScript 100.0%