Giter Site home page Giter Site logo

hellsnakes / music-slash-bot Goto Github PK

View Code? Open in Web Editor NEW
61.0 2.0 43.0 845 KB

A music bot written in Discord.js and Distube using the slash command

License: MIT License

JavaScript 99.10% Batchfile 0.46% Shell 0.40% Procfile 0.03%
discord-js music-bot slash-commands discord discord-bot nodejs bot distubejs distube discord-music-bot

music-slash-bot's Introduction

Music-Slash-Bot

๐Ÿค– Music-Slash-Bot ๐Ÿค–

Size Stars Fork Commit Version License

Table of content

Requirements

  1. Nodejs>=16: Link
  2. Git: Link
  3. Discord Bot Token: Link
  4. Discord Bot CLIENT_ID: Link

Setting

  1. Run git clone https://github.com/HELLSNAKES/Music-Slash-Bot.git
  2. Run cd music-slash-bot
  3. Run npm i to install the modules required
  4. Rename .env_example to .env
  5. Edit .env
  6. Run npm start to get the bot working
  • Update Bot : npm run updatebot

Video Installation instructions

  • Deploy Heroku :

Heroku

  • Window :

Coming soon

Contributing

  1. Fork the repository
  2. Clone your fork: git clone https://github.com/your-username/music-slash-bot.git
  3. Create your feature branch: git checkout -b <branch-name>
  4. Commit your changes: git commit -m <commit message>
  5. Push to the branch: git push -u origin <branch-name>
  6. Submit a pull request

Contact

Author

License

Released under the MIT License

Deploy Heroku

Deploy

Note: Heroku Button is currently not working -> Issues

Project Activity

Alt

Contributors โœจ

Thanks goes to these wonderful people


HELLSNAKE

๐Ÿ’ป ๐Ÿ’ก โš ๏ธ โœ…

allehS

๐Ÿ’ป ๐Ÿค” โš ๏ธ

music-slash-bot's People

Contributors

dependabot[bot] avatar hellsnakes avatar shellawa 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  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  avatar  avatar  avatar

Watchers

 avatar  avatar

music-slash-bot's Issues

Has Blocked Package on Railway

In app.js, you use const { YouTubeDLPlugin } = require("@distube/yt-dlp") but package @distube/yt-dlp has package which is blocked on Railway. So, you cannot deploy to Railway because it will auto-not-received this repo. You must use the old way:

client.distube = new Distube.default(client, {
    youtubeDL: true,
    leaveOnEmpty: true,
    emptyCooldown: 30,
    leaveOnFinish: false,
    emitNewSongOnly: true,
    updateYouTubeDL: true,
    nsfw: true,
    youtubeCookie: process.env.ytcookie,
    plugins: [new SoundCloudPlugin(), new SpotifyPlugin()]
})

and remove package @distube/yt-dlp in package.json by using npm uninstall @distube/yt-dlp

Bot don't play

Hello

Bot start playing but finish the song instantly, i am searching for hours but nothing, and nothing in the logs, don't understand...

Help

Why slash commands doesnt work?

Play Error

<rejected> DiscordAPIError: Unknown interaction
      at RequestHandler.execute (/home/ubuntu/bots/YlohSong/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async RequestHandler.push (/home/ubuntu/bots/YlohSong/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
      at async CommandInteraction.reply (/home/ubuntu/bots/YlohSong/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:99:5)
      at async Object.run (/home/ubuntu/bots/YlohSong/commands/Music/play.js:25:9) {```

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.