hellsnakes / music-slash-bot Goto Github PK
View Code? Open in Web Editor NEWA music bot written in Discord.js and Distube using the slash command
License: MIT License
A music bot written in Discord.js and Distube using the slash command
License: MIT License
Hello
Bot start playing but finish the song instantly, i am searching for hours but nothing, and nothing in the logs, don't understand...
Why slash commands doesnt work?
<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) {```
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
yt won't show dislikes on videos anymore
"Starting March 15, 2023, all apps with Voice Connections using IP Discovery must send 74-byte UDP packets. IP Discovery requests sending the deprecated 70-byte packet will no longer receive a response." Directly from their message in the Discord Devs server
https://discord.com/channels/613425648685547541/697138785317814292/1080623873629884486
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.