Discord Music Bot Tutorial | Discord.js V12

Discord Music Bot Tutorial | Discord.js V12

Derock

3 года назад

19,278 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

ItzDerock
ItzDerock - 13.07.2020 05:50

Well, seems like I forgot a part of the queue system. I'll post a part 2 video soon.

It'll also include skip, stop, etc

Ответить
DanzZcoding
DanzZcoding - 04.03.2021 06:01

When u realize it’s not his idea

Ответить
Muhammad Athar Ghazi
Muhammad Athar Ghazi - 30.01.2021 17:01

Love From Indonesia :")

Ответить
VideoEnCode Shorts
VideoEnCode Shorts - 10.12.2020 20:57

internal/modules/cjs/loader.js:883
throw err;
^

Error: Cannot find module 'ytdl-core'
Require stack:
- C:\Users\arod1\OneDrive\Escritorio\Naranjita-Bot\server.js
[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15) [39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:725:27) [39m
[90m at Module.require (internal/modules/cjs/loader.js:952:19) [39m
[90m at require (internal/modules/cjs/helpers.js:88:18) [39m
at Object.<anonymous> (C:\Users\arod1\OneDrive\Escritorio\Naranjita-Bot\server.js:7:14)
[90m at Module._compile (internal/modules/cjs/loader.js:1063:30) [39m
[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) [39m
[90m at Module.load (internal/modules/cjs/loader.js:928:32) [39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:769:14) [39m
[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) [39m {
code: [32m'MODULE_NOT_FOUND' [39m,
requireStack: [
plis help

Ответить
SUVY
SUVY - 09.12.2020 20:58

this is the same kid that makes the roblox scripting tutorials

Ответить
Altan
Altan - 02.12.2020 16:51

help me: (node:24728) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined)
what should i do!?

Ответить
Deadsito ツ
Deadsito ツ - 29.11.2020 22:47

it does not work :/

Ответить
Jigzyy
Jigzyy - 24.11.2020 00:50

I keep getting an error:

UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: the ‘url’ argument must be a type of a string.
Received undefined at validateString

Ответить
Sterv
Sterv - 20.11.2020 20:59

Hi please include how to play without a link

Ответить
Eclipse Game18
Eclipse Game18 - 19.11.2020 13:11

when will be part 2?

Ответить
DaFatty
DaFatty - 13.11.2020 23:20

Help pls i cant hear anything

Ответить
Brodie
Brodie - 21.10.2020 23:22

client.on('message', async (message) => {
^

ReferenceError: client is not defined
at Object.<anonymous> (C:\Users\wille\Desktop\Discord Bot\index.js:10:1)
[90m at Module._compile (internal/modules/cjs/loader.js:1158:30) [39m
[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10) [39m
[90m at Module.load (internal/modules/cjs/loader.js:1002:32) [39m
[90m at Function.Module._load (internal/modules/cjs/loader.js:901:14) [39m
[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) [39m
[90m at internal/main/run_main_module.js:18:47 [39m

anyone know how to fix?

Ответить
Ainamo
Ainamo - 07.10.2020 17:39

My bot is joining but leaving in Just 1 second does someone knows what happens

Ответить
Moghul Kant
Moghul Kant - 30.09.2020 21:35

how would you play a song from your own local mp3 file?

Ответить
Achtung
Achtung - 12.09.2020 23:17

ffmpeg is getting discontinued in a few days you will need to find your own way to host it to continue using it theres no point pal.

Ответить
GoldenShiba
GoldenShiba - 06.09.2020 09:59

Really said nyoom

Ответить
ChopChop
ChopChop - 30.08.2020 11:27

i am getting this err
`TypeError: Cannot read property 'get' of undefined`
pls help

Ответить
Pakistani Gamer Umair
Pakistani Gamer Umair - 28.08.2020 08:47

It plays but very slow

Ответить
Sensei Munchkin
Sensei Munchkin - 25.08.2020 05:01

Leaving this here for everyone!

This piece of code in the video:
`const dispatcher = serverQueue.connection.play(ytdl(song.url, options)).on('end', () => {
serverQueue.songs.shift();
playSong(guild, serverQueue.songs[0]);
})`

MUST be replaced with
`const dispatcher = serverQueue.connection.play(ytdl(song.url, options)).on('finish', () => {
serverQueue.songs.shift();
playSong(guild, serverQueue.songs[0]);
})`

for the queue to work

Ответить
Hailyy
Hailyy - 23.08.2020 06:45

its not installing node-opus for some reason but then ytdl-core and ffmpeg are fine

Ответить
Gia Bảo Đinh Phạm
Gia Bảo Đinh Phạm - 19.08.2020 15:11

My bot have no sound, how can i fix it?

Ответить
DenizTube
DenizTube - 19.08.2020 00:17

seeing this from a person probably younger then me is shocking bro your crazy good with scripting xD

Ответить
NBD Batman
NBD Batman - 18.08.2020 06:22

been a month and part 2 isn't out

Ответить
zukz
zukz - 17.08.2020 19:31

message.content.index0f is not a function

Ответить
Pandaman
Pandaman - 15.08.2020 07:21

for some reason, it only plays the first song and the rest that were added to the queue never play, anyone know why?

Ответить
Furazu
Furazu - 12.08.2020 04:18

serverQueue is not defined?

Ответить
FGK-FIRAT
FGK-FIRAT - 08.08.2020 22:01

!play and video name work ? or we just can link

Ответить
Sloomy
Sloomy - 30.07.2020 02:53

the bot don t go online

Ответить
Galvin
Galvin - 27.07.2020 12:34

What do you remove/add when putting this in the commands folder? It won't work unless it's in the commands folder for me :/

Ответить
MaxK
MaxK - 25.07.2020 21:12

why can i not hear the music ? 🥺 the bot is in my VC and he says Playing Now: (title)... but i cant hear the music in the vc

Ответить
Bloofy
Bloofy - 25.07.2020 12:14

I'm getting the "SyntaxError: await is only valid in async function" at "let songinfo = await ytdl.getInfo(url);"

Ответить
Topper
Topper - 18.07.2020 23:59

I don't think ytdl-core works anymore :(

Ответить
Zuryin
Zuryin - 18.07.2020 02:03

im having this error
ReferenceError: connection is not defined
at Client.<anonymous> (C:\Users\FakeZ\Desktop\Music Bots\Music 1\index.js:58:41)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
please help me

Ответить
Ethan
Ethan - 16.07.2020 05:44

good video! Just a suggestion when making the package.json file just do npm init -y which will automatically fill everything out.

Ответить
Alek Buettler
Alek Buettler - 15.07.2020 23:08

does anyone know how to fix when is says that you can only use await when it is usee with an async function?

Ответить
Neo
Neo - 15.07.2020 06:22

at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ 'C:\\Users\\Lenovo\\Desktop\\MusicPlayer\\index.js' this error pops up when i type "node ." in terminal.

Ответить
Duncan O
Duncan O - 14.07.2020 02:54

I'm getting an unhandled promise rejection... Would like some help.

Ответить
The Beast Zone
The Beast Zone - 13.07.2020 21:18

FFmpeg / avconv not found! this error does anyone knows

Ответить
Miranda Inc.
Miranda Inc. - 13.07.2020 15:50

I can't resolve this problem: Error [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds.
Somone help me?

Ответить
SPARROW
SPARROW - 11.07.2020 23:49

Could you do a leave, queue and pause command?

Ответить
rocket
rocket - 10.07.2020 17:08

do the music tutorial but with lavalink and erela

Ответить
NEYON
NEYON - 09.07.2020 10:21

`info.title` will be removed in a near future release, use `info.videoDetails.title` instead.
`info.video_url` will be removed in a near future release, use `info.videoDetails.video_url` instead.
i am getting this error in terminal ? what to do ?

Ответить
the boy next door
the boy next door - 06.07.2020 10:30

Can you make a video about banners? Like how people make welcome messages with a custom background but expect with the banner command you run it like ${prefix}(command) (text to be displayed) and it prints the text on a plain banner

Ответить
Stuwar Gaming
Stuwar Gaming - 05.07.2020 00:16

speed itself

Ответить
rocco
rocco - 05.07.2020 00:16

good work jet

Ответить