Giter Site home page Giter Site logo

1intan99 / lavalink-music-bot Goto Github PK

View Code? Open in Web Editor NEW
29.0 2.0 6.0 6.66 MB

An advance discord music bot, build base on Typescript with Discord.js-light and support for button interaction

License: GNU Affero General Public License v3.0

Shell 0.18% TypeScript 56.92% CSS 19.04% JavaScript 16.33% SCSS 3.81% EJS 3.73%
discord-js-v13 discord-music-bot lavalink lavalink-musicbot discord-bot discord-music

lavalink-music-bot's Introduction

Lavalink Music Bot


Amelia Corp.

Lavalink Music Bot is a powerful Management with many features
Example Bot Below:
Nao Tomori!
Narberal Gamma!

โœจ About

Lavalink Music Bot made by Nao#9774 focusing to be a power full discord music bot and have a loot of features

Lavalink Music Bot still in development mode and will have a loot of features

๐ŸŽถ Music Features

Nao has a Music Features that can play music from SoundCloud, Spotify, YouTube, Radio Link

  • The music feature can play music directly from spotify.
  • Music feature that uses buttons for easy control and does not have to type commands to change songs, stop songs, or view song lists
  • Support 24 hours without leaving the voice channel and this is set by default.
  • Auto Leave Channel when there is no someone in Voice Chanenl.

๐Ÿ“ฅ Self Hosting Instruction

  • Download Node.JS LTS version from here
  • Install typescript and ts-node globaly by doing this commands
npm i -g typescript ts-node
  • Clone this repositroy by doing this commands
git clone https://github.com/ameliakiara/Lavalink-Music-Bot

Note: If you doesn't have git you can download this repository or download git from here

  • Install the depencies from by doing this command
npm install --save
  • Setting up you Lavalink Server
    • Self Host method
    • Install Java/OpenJDK/Zulu ( Recommended v13 )
    • Download requirement that i mentioned above
    • Download binaries from the CI server or the GitHub releases.
    • Put an application.yml file in the same folder of Lavalink.jar (Example here)
    • Run with java -jar Lavalink.jar
  • Setting up .env file
# Discord Bot Token
# Get it from (https://discord.com/developers/applications)
TOKEN=

# Discord Ids of bot's developers
# Value must be an array
DEVELOPERS=[""]

# Discord bot's prefix
PREFIX=

# Send error message on console to sentry.io
# Get it from (https://sentry.io)
DSN=

# Lavalink Server
HOST=
PASSWORD=

# Spotify Client ID & Secret
# Get it from (https://developer.spotify.com/dashboard/)
clientID=
clientSecret=

# WebClient Port
# Acces it from (http://localhost:5572)
# Or just custom your port with what ever you want (Ex: 1238102381209380923812093 ) nice right?
PORT=5572

# TOP_GG Poster
# Put your top.gg discord bot token from webhook page in top.gg dashboard when you edit your bot
TOP_GG=


# MongoDB Client
# Get it from (https://mlab.com, https://account.mongodb.com/account/login, https://railway.app <= plugins)
MONGOD=
  • After all those stepp is done, run this command
npm run build && npm start
  • And your bot ready to go.
  • Also fell free to give me star or donate me from link below to keep me update this repo and add more features!
  • If you fell this is hard, or you don't understand, just click Deploy on Railway and just setting the Variable aka .env and your Bot ready to go
  • For Free Lavalink Server List.

๐Ÿ“ˆ Project Stats

Alt

๐ŸŽ—๏ธ Support me to keep update this repo and pay hosting for my bot :3

Patreon
Patreon
Trakteer

๐Ÿš„ Deploy on Railway

Deploy on Railway

lavalink-music-bot's People

Contributors

1intan99 avatar momopi-dark avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lavalink-music-bot's Issues

Error

> [email protected] build
> npm run clean && npm run delete && npm run compile


> [email protected] clean
> rimraf dist


> [email protected] delete
> rm -rf dist


> [email protected] compile
> tsc --build tsconfig.json

src/Models/MusicChannel.ts:15:14 - error TS2322: Type 'Model<{ [x: string]: any; }, {}, {}, {}, Schema<any, Model<any, any, any, any, any>, {}, {}, {}, {}, DefaultSchemaOptions, { [x: string]: any; }>>' is not assignable to type 'Model<IMusicInterface, {}, {}, {}, any>'.
  The types returned by 'castObject(...)' are incompatible between these types.
    Type '{ [x: string]: any; }' is not assignable to type 'IMusicInterface'.

15 export const IMusic: Model<IMusicInterface> = model("IMusic", IMusicSchema);
                ~~~~~~


Found 1 error.

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.