Frequently Asked Questions
1. Budget VPS Hosting
Blazingly fast, reliable VMs in 16 global locations at an extremely affordable price!
Available locations: πΊπΈ π³π± πΈπͺ π¦πΉ π³π΄ π¬π§ π¨π ππ° πΈπ¬ π―π΅ π¦πΊ
Official DisTube Bot is hosted on this provider in Los Angeles πΊπΈ β
All plans, even 4$ plan, use the below specification:
- CPU: AMD EPYC Milan
- SSD: Samsung Enterprise NVMe Storage
- Public Network Port: 10Gbps | 40Gbps (depends on location)
CPU vCore |
RAM GB |
Storage GB |
Price US$ |
---|---|---|---|
1 | 2 | 10 | $4 |
2 | 4 | 20 | $6 |
2 | 8 | 35 | $9 |
4 | 12 | 50 | $12 |
6 | 24 | 100 | $22 |
8 | 32 | 125 | $29 |
8 | 48 | 150 | $39 |
12 | 64 | 200 | $49 |
16 | 96 | 250 | $69 |
2. FFmpeg/avconv not found
Reason:- FFmpeg is not installed
Solution:
- Install FFmpeg on: Windows - Linux (Ubuntu, Mint,...)
Download FFmpeg from this repo if the download links are not available
Note:
- Do NOT install
ffmpeg
npm package. Uninstall it if installed withnpm uninstall ffmpeg
3. The song ends instantly without any errors - Error: write EPIPE
Reason:- This is due to your ffmpeg version is not stable. Mostly due to you are installed
ffmpeg-static
.
Solution:
- Uninstall
ffmpeg-static
or your ffmpeg current version and install FFmpeg with the guide above.
How to uninstall ffmpeg-static
npm uninstall ffmpeg-static npm ci --no-optional npm update
If it still happens after using this workaround, delete
node_modules
folder andpackage-lock.json
file then runnpm install
.
It should work whennpm ls ffmpeg-static
returns(empty)
.
4. Error: Cannot find module '@discordjs/opus'
RangeError: Source is too large
RangeError: offset is out of bounds
Reason:
-
@discordjs/opus
package is not installed, or you installednode-opus
,opusscript
package
Solution:
- Install
@discordjs/opus
package. Uninstallnode-opus
,opusscript
if installed
npm uninstall opusscript node-opus
npm install @discordjs/opus
5. Error: Status code: 429 | 403
Reason:- It is caused by requesting YouTube videos too fast.
Solution:
- Use youtubeCookie option (Guide).
You have to sign in before getting the cookie. And you may have to wait for YouTube to unblock your IP after getting this error.
6. Sign in to confirm your age
Reason:- Playing YouTube age-restricted videos
Solution:
- Use youtubeCookie option (Guide) from an account can play age restricted videos
7. Error: VOICE_CONNECTION_TIMEOUT
Reason:- It is caused by your hosting/VPS network
Solution:
-
Try to join the voice channel with
<DisTube>.voices.join(voiceChannel)
before usingDisTube.play()
.
You can retry if this function throws the above error. -
Use a better network service (like the above VPS)
My bot plays a random song after finishing all the queue
How to turn off autoplay
How to change queue's default properties
Reason:
- Autoplay is on by default.
Solution:
- To turn it on/off by a command, use toggleAutoplay().
- To change the queue's default setting, use initQueue event.