HELLSNAKES / Music-Slash-Bot

A music bot written in Discord.js and Distube using the slash command
MIT License
61 stars 45 forks source link

Has Blocked Package on Railway #9

Closed thnhmai06 closed 2 years ago

thnhmai06 commented 2 years ago

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

HELLSNAKES commented 2 years ago

https://github.com/HELLSNAKES/Music-Slash-Bot/issues/7