Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
272 views
in Technique[技术] by (71.8m points)

Cannot play song on Heroku using Discord.js

I cannot play music with my bot on Heroku today, its written in Discord.js. But I can play music very well at yesterday, I don't know what happened.(No any info in console) At first I thought it was an error in my code. I changed the code to the previous version and the error appeared again...

I am using Node js 15 (14 has this issue too, already tried to use Node js 14) Discord js fork by Matte(I don't think it's Djs's problem) Heroku free dyno discord-ytdl-core 5.0.0 with ytdl-core 4.4.4(Lasted)

question from:https://stackoverflow.com/questions/65872044/cannot-play-song-on-heroku-using-discord-js

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You probably haven't installed the FFMPEG Buildpack for Heroku. This allowed me to play music on my bot.

If your bot can play locally and not on Heroku, this may be the solution for you:

Below is the link that gives you information on what this buildpack does. https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...