Code Monkey home page Code Monkey logo

muse-archived's Introduction

Muse (μ's)

THIS PROJECT HAS BEEN ABANDONED Please check out MuseCLI instead! Download using npm install -g muse-cli

Muse Logo Image
Discord Users Online
A discord.js bot template already containing music functions
You can add to this bot by writing your own commands code and putting in the commands folder

NOTICE: If the bot crashes or song randomly gets skipped with errors similar to Error: Too many redirects then the error comes from YTDL and I am not responsible for any issues related to said library. If any issues of the like persists, open an issue on their GitHub page.

Requirements

  • NodeJS
  • FFmpeg

NodeJS

You are required to have NodeJS installed.
If you do not have NodeJS installed, download it at https://nodejs.org/ and run the installer. Once installed, open your command line and run node -v to check if it has been properly installed.
You must be running at least V12 of NodeJS!

FFmpeg

You are required to have FFmpeg installed on your machine to play music.
If you do not have FFmpeg installed, download it at https://www.ffmpeg.org/.

Extract the downloaded files into your C: drive and set up your PATH environment variable to the bin folder. Once you have done this, close and reopen your command line if you already have it opened and run ffmpeg -version to check if it has been properly installed.

Watch Linux Leech's Video if you still need help installing FFmpeg.

Installation Instructions

  • Fork this repo
  • Clone your fork to your local machine
  • CD into the bot's root directory
  • Run npm install
  • Copy your discord token and set a command prefix in into config.json
  • Run npm start or node index.js

Getting a Discord Bot Token

  • Head on over to Discord's Developer Page
  • Sign in with your Discord account, if you are not already signed in
  • Click the "New Application" button
  • Give the application a name
  • On the "General Information" Tab, give your application an avatar image
  • Click the bot tab on the left hand side menu
  • Then click "Add Bot" & confirm by clicking "Yes, Do it"
  • Finally, copy the bot token

Note: Do NOT share your bot token with anyone!

Bot Token Tutorial Image

Features

  • Multiple Ways to Start Music:

    1. Play with YouTube video links (also supports YouTube playlist links):
      Method 1

    2. Play with search query:
      Method 2

    3. Play using search command to make a selection from 10 results:
      Method 3

  • Video and Queue Loop:
    You can make a video or a queue loop.

    If video is looping, it will never jump to the next video unless you turn if off or skip the song
    If queue is looping, the entire queue will never end. This is done by pushing the first video to the end of the queue array when it finishes playing

    Loop command

  • Vote Skip if not Admin:
    Skip command

  • Paginated Queue Embed:
    Each page contains up to 5 videos so you need at least 6 videos in the queue for pagination to start
    The reactor for pagination lasts for 60 seconds. If 60 seconds have passed, rerun the queue command for pagination to work again
    Queue embed

  • Duration Bar:
    Updates every 5 seconds to avoid rate limit
    Shows when nowplaying or resume command is executed
    Duration bar

  • Clear Whole Queue or Video at Specified Index:
    Clear queue

  • Responsive Help Message:
    Help message

Command File Template

Make sure you follow the help object's syntax! It is very important for the help command to detect the information of your command!

The way I did it in my code:

module.exports.execute = async (client, message, args) => {
    // Command code in here
}

module.exports.help = {
    name: "", // The name of the command
    aliases: [], // Add aliases inside the array
    category: "", // Specify which category this command belongs to
    usage: "", // Specify the arguments taken by the command
    description: "" // A short description about your command
}

Alternative:

module.exports = {

    execute: async (client, message, args) => {
        // Command code in here
    },

    help: {
        name: "", // The name of the command
        aliases: [], // Add aliases inside the array
        category: "", // Specify which category this command belongs to
        usage: "", // Specify the arguments taken by the command
        description: "" // A short description about your command
    }

}

Author

Spimy:

Support Server

Support Server

muse-archived's People

Contributors

dependabot[bot] avatar spimy avatar

Stargazers

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

Watchers

 avatar  avatar

muse-archived's Issues

stop error

There is a problem with the stop command if there is music in the queue it leaves the channel and rejoins it and plays the other music.

Lyrics Command

Add lyrics command

which lets you see the lyrics of the music

Error

internal/validators.js:112
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received type undefined
←[90m at validateString (internal/validators.js:112:11)←[39m
←[90m at Url.parse (url.js:155:3)←[39m
←[90m at Object.urlParse [as parse] (url.js:150:13)←[39m
at doDownload (C:\Users\Zarko\Desktop\Waves\node_modules\←[4mminiget←[24m\dist\index.js:90:28)
←[90m at processTicksAndRejections (internal/process/task_queues.js:76:11)←[39m {
code: ←[32m'ERR_INVALID_ARG_TYPE'←[39m
}

Shuffle, download and seek commands, lyrics improvement, display likes and dislikes

Hi :)

1 - Make a shuffle command

2 - If the lyrics of the command exceeds 2000 characters it sends the end of the lyrics in another embed.

3 - A seek command example: !seek 1:20

The bot goes 1 minute and 20 seconds from the current music

4 - Displays dislikes, likes, comments in the now-playing command

5 - A command to download the current music or a specified music.

6 - A repeat command that repeats current music.
💙 Thanks for the bot

Bug

When you play music for the first time and after that you want to play a playlist the playlist does not start.

Skip vote be number of people in VC

I don't know how to explain too much but here are examples.

Example:

4 people in the voice channel = 2 votes for skip

7 people in the voice channel = 4 or 3 for skip.

10 people in the voice channel = 5 for skip...

Because if someone is alone in the channel they cannot skip as they need 3 votes.

BUG

Hi there is a problem with the bot when I am in one room and the bot in another room and ask to play the song the bot plays the song in the other room Please fix the bug and make it when I request to play the song and the bot in another room is sending a message to me that the bot is not in my room

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.