Closed thnhmai38 closed 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:
app.js
const { YouTubeDLPlugin } = require("@distube/yt-dlp")
@distube/yt-dlp
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
package.json
npm uninstall @distube/yt-dlp
https://github.com/HELLSNAKES/Music-Slash-Bot/issues/7
In
app.js
, you useconst { 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:and remove package
@distube/yt-dlp
inpackage.json
by usingnpm uninstall @distube/yt-dlp