Giter Club home page Giter Club logo

cosmomusic's Introduction

CosmoMusic

The greatest discord music bot which provides superior music experience.

Using Lavalink v4 and Shoukaku Client.

You can invite the public instance (a.k.a the bot which is running in my PC) here , but the bot's uptime is terribly bad.

For license, see ./LICENSE

For security policy, see ./SECURITY.md

For code of conduct, see ./CODE_OF_CONDUCT.md

If you want to contribute, see ./CONTRIBUTING.md

Star, Fork History and People

Star History Chart

Stargazers repo roster for @USERNAME/REPO_NAME

Forkers repo roster for @USERNAME/REPO_NAME

🖥️ Install on your device

Be aware that this bot might not be suitable for personal uses because it requires SSL certificate or domain or something like that. If you do not want to do such tedious things, you should remove some lines from this repo such as the code that establishes server, or palm AI chat.

This repository is a fork for personal use.

Clone this repository somehow. For example, you can simply do this command:

git clone https://github.com/Fyphen1223/CosmoMusic.git 

Then just change directory in the "CosmoMusic" folder, and install packages with the below command:

pnpm i 
When error

You have not installed pnpm yet. Please install pnpm using below command:

npm install -g pnpm

Then you have to create config.json, which will be a core config of the bot. See ./config.json.example to get some instance.

You can get genius lyric api's api key with here

When finished editing config, you will basically be ready to boot up your bot.

However, before that, you have to register slash commands.

Please type

node slash.js

to register this bot's slash commands to the Discord server.

If that's done, then simply type

node index.js

in "CosmoMusic" folder, and you also have to start Lavalink server as well (or just use public server).

To start the server, you have to do these:

cd Lavalink

and

java -jar Lavalink.jar

When the console shows "Lavalink is ready to accept connection", your bot will connect to the Lavalink server, and that's done!

Enjoy the highquality music bot!

🧰 Feature

-✅Play music from YouTube, SoundCloud, Spotify, YouTube Music, Deezer, Apple Music, and etc...

-✅Queue system

-✅Seek function

-✅24/7 playing

-✅Lyric searching

-🔴Dashboard with SSL (still in development)

-🔴Filter (still in development)

ToDo

[]Music recommendations with Spotify API [x]Music recommendations with YouTube music search

Internal architecture

Using new queue system on this bot.

Queue System Architecture

Using JSON as queue. Declared in ./utils/utils.js

Benchmark

Playing in 1 server without filter:

RAM:

Node.js Runtime (v20.0.1): 40MB

JDK (Java 17 LTS): 300MB

CPU: 6%~15% with Core i7-7500U

55 Music in queue

cosmomusic's People

Contributors

fyphen1223 avatar dependabot[bot] avatar

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.