SE-TINF22B6 / Plapy

Discord Music Bot
MIT License
0 stars 1 forks source link

workflow:

Bildschirmfoto 2023-10-06 um 15 36 50

πŸ€– Plapy (Discord Music Bot)

Plapy is a Discord Music Bot built with TypeScript, discord.js & uses Command Handler from discordjs.guide The project is based on a fork of the open source music bot evobot https://github.com/eritislami/evobot. Goals of the project are:

  1. To add more functionality like saving and playing playlists from the bots database.
  2. To provide an API for the user that allows control outside of discord command
  3. To create a web interface that allows control via the API with a GUI
  4. To improve the queue experience by providing new features like autoplay and play next
  5. To host the bot and website on an external server enabling 24/7 access

Requirements

  1. Discord Bot Token Guide
    1.1. Enable 'Message Content Intent' in Discord Developer Portal
  2. Node.js 16.11.0 or newer
  3. Open port 80 (or the desired port that you configured) on the server that's hosting the project for API and website access

πŸš€ Getting Started

After installation finishes follow configuration instructions then run npm run start to start the bot. If you want to setup the Bot on an Ubuntu server you can follow the instructions in UbuntuServerSetup.md

βš™οΈ Configuration

Copy or Rename config.json.example to config.json and fill out the values:

⚠️ Note: Never commit or share your token or api keys publicly ⚠️

{
  "TOKEN": "",
  "MAX_PLAYLIST_SIZE": 100,
  "PRUNING": false,
  "LOCALE": "en",
  "DEFAULT_VOLUME": 10,
  "STAY_TIME": 30,
  "SERVER_IP": "localhost",
  "STRUCTS_LOCATION": "structs/*.ts"
  // if you want to run the compiled version of the bot, change the extension of the file to .js :
  // "STRUCTS_LOCATION": "dist/structs/*.js"
}

πŸ“ Base Functionality

/play https://www.youtube.com/watch?v=GLvohMXgcBo

/play under the bridge red hot chili peppers

/search Pearl Jam

/playlist https://www.youtube.com/watch?v=YlUKcNNmywk&list=PL5RNCwK3GIO13SR_o57bGJCEmqFAwq82c

/playlist linkin park meteora

πŸ†• New commands and features only available with Plapy

🫡 Available API-Endpoints

reactions

🌎 Locales

⚠️ Note: The Plapy team only maintains the english localization for all added commands ⚠️

Currently available locales are:

⚠️ Not maintained for Plapy commands ⚠️