Giter Site home page Giter Site logo

hellsnakes / music-slash-bot Goto Github PK

View Code? Open in Web Editor NEW
62.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 Issues

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) {```

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

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.