Weeb-Devs / Laffey

An adorable lavalink discord music bot that has a lot of features inside it.
MIT License
79 stars 27 forks source link
discord discord-bot discord-music-bot discordjs-bot lavalink lavalink-musicbot

Laffey

An adorable lavalink discord music bot that has a lot of features inside it.

laffey

© Azur Lane | First Project of Weeb-Devs

Features:

✓ High quality
✓ Support filters
✓ Auto resume
✓ Stable
✓ Suport 8 music sources
✓ Feature-rich
✓ Full slash commands
✓ and of course, adorable shipgirl

Current version:

Registering your slash commands

Read this for more information

Requirements:

Lavalink server

You need dev lavalink version to use our filters. You can get it by clicking Here and then, click on Lavalink.jar files How to setup
All required OS and other for lavalink server available here

Server for the bot to run

Data

Available music sources:

Configuration & Starting the bot:

With config.json

  1. First, change config.json.example's name into config.json, and fill it with the following;
{
  "TOKEN": "Your bot's token",
  "PREFIX": "?",
  "OWNERS": [
    "Your id, can be more than 1"
  ],
  "MONGODB_URI": "For database",
  "KSOFT_API_KEY": "For the lyrics. It depend on your choice",
  "GENIUS_API_KEY": "For the lyrics. It depend on your choice",
  "LYRICS_ENGINE": "There are 3 options. ksoft ; genius ; google . Google doesn't need any API",
  "NODES": [
    {
      "HOST": "Your node's host",
      "PASSWORD": "Your node's password",
      "PORT": 80,
      "IDENTIFIER": "This is node's identifier, it's all up to you",
      "RETRY_AMOUNT": 3,
      "RETRY_DELAY": 1000,
      "SECURE": false
    }
  ],
  "AUTO_RESUME_DELAY": 1500,
  "DEBUG": true,
  "LOG_USAGE": false
}
  1. Go to your console, and type cd "path to laffey's file" and install all dependencies by typing npm i
  2. You're ready to go, use node . or npm start to start the bot

With .env

  1. Create a .env file in the root directory of your project.
  2. Copy the text below and paste it in .env file and change the value with required data. ⚠️NODES in .env must be a STRINGIFIED array of node objects, or you can use normal array for nodes in config.json⚠️

    .env file

    TOKEN=TOKEN_HERE
    PREFIX=?
    OWNERS=123456789,987654321
    MONGODB_URI=mongodb+srv://blabla
    KSOFT_API_KEY=1234
    GENIUS_API_KEY=1234
    LYRICS_ENGINE=google
    AUTO_RESUME_DELAY=2000
    NODES=[{"HOST":"Your node's host","PASSWORD":"Your node's password","PORT":80,"IDENTIFIER":"This node's identifier, it's up to you","RETRY_AMOUNT":3,"RETRY_DELAY":1000,"SECURE":false}]
    DEBUG=true
    LOG_USAGE=false

    config.json file (you don't need this if you already provided NODES in .env)

    {
      "NODES": [
        {
          "HOST": "Your node's host",
          "PASSWORD": "Your node's password",
          "PORT": 80,
          "IDENTIFIER": "This node's identifier, it's up to you",
          "RETRY_AMOUNT": 3,
          "RETRY_DELAY": 1000,
          "SECURE": false
        }
      ]
    }
  3. Go to your console, and type cd "path to laffey's file" and install all dependencies by typing npm i
  4. You're ready to go, use node . or npm start to start the bot


    Note:

    • DEBUG is to see more info when your bot is starting or when a warning was thrown
    • LOG_USAGE is to log all command usage by user. Defaults to false because it'll be annoying
    • AUTO_RESUME_DELAY is how many ms do you want to add a delay between guild on auto resume

Screenshots




Commands

Description & About

Created at: Friday, 2 April 2021
Published at: Sunday, 11 April 2021
Laffey is Weeb-Devs 's first project. It was created by our first member aka owner, Takiyo. He really wants to make his first open source project ever. Because he wants more coding experience. In this project, he was challenged to make a project with less bugs. Hope you enjoy using Laffey!