#development
1 messages · Page 532 of 1
How to remove all the reactions of a message? plz
Lib?
Thanks you
Hello
i have a problem
My code work but my bot send a embed message to all the discord who have my embed
You understand ?
My code :
var embedpoke = new Discord.RichEmbed()
.setColor(embedcolor)
.addField(`Pokémon trouvé !`, `Bien joué ${sender}, vous avez capturé un **${Pokemon.Noms[FinalRand]}#${FinalRand}** & vous avez Gagné **${pokep}** Points`, false)
.setImage(Pokemon.Gifs[FinalRand])
.setColor(`${color}`)
message.channel.send(embedpoke)
.then(message => {
// https://discord.js.org/#/docs/main/stable/class/ReactionEmoji
// https://discord.js.org/#/docs/main/stable/class/MessageReaction?scrollTo=emoji
var TonEmoji = client.emojis.find("name", "Rappel")
message.react(TonEmoji)
client.on('messageReactionAdd', (reaction, user) => {
if (reaction.emoji === TonEmoji && user.id !== client.user.id) {
if (user.id !== sender.id) return
message.channel.send(':Rappel: **__Un rappel a été lancé, dans 15 minutes vous serez mentionné ici !__** :Rappel:')
message.clearReactions()
setTimeout(() => {
message.channel.send(`**__Rappel pour :__** ${sender} :Rappel:`)
}, 900000);
}
})
})```
anyone know how to get emoji id's, i cant get it :/
Respond me plz
ctrl shift I -> Network -> Send an Emoji & you will see the ID of the Emoji in the inspect element side (sorry for my english) @earnest phoenix
ok
Lol I’m bout to take a reading test I could answer both of ur question sksksks
@earnest phoenix i cant see 😦
l
Are you in the "Network" section ?
yes emojis at there but i cant find it so i cant get id 😫
hm, you see "message" when you send emoji

nope
Can you take a screen ?
🤠
thats not i
t
hmm, strange

😭 JUST TELL ME HOW TO GET EMOJİ GRR
Sorry :c
but why you need emoji id ?
İ NEED TO ADD İT TO MY BOT

oh ok
Hello
i have a problem
My code work but my bot send a embed message to all the discord who have my embed
You understand ?
My code :
var embedpoke = new Discord.RichEmbed()
.setColor(embedcolor)
.addField(`Pokémon trouvé !`, `Bien joué ${sender}, vous avez capturé un **${Pokemon.Noms[FinalRand]}#${FinalRand}** & vous avez Gagné **${pokep}** Points`, false)
.setImage(Pokemon.Gifs[FinalRand])
.setColor(`${color}`)
message.channel.send(embedpoke)
.then(message => {
// https://discord.js.org/#/docs/main/stable/class/ReactionEmoji
// https://discord.js.org/#/docs/main/stable/class/MessageReaction?scrollTo=emoji
var TonEmoji = client.emojis.find("name", "Rappel")
message.react(TonEmoji)
client.on('messageReactionAdd', (reaction, user) => {
if (reaction.emoji === TonEmoji && user.id !== client.user.id) {
if (user.id !== sender.id) return
message.channel.send(':Rappel: **__Un rappel a été lancé, dans 15 minutes vous serez mentionné ici !__** :Rappel:')
message.clearReactions()
setTimeout(() => {
message.channel.send(`**__Rappel pour :__** ${sender} :Rappel:`)
}, 900000);
}
})
})```
😭
SOMEONE TELL ME HOW TO GET EMOJİ İD
WHY İTS SO HARD DİSCORD, DİDNT YOU THİNK DEVS CAN NEED TO ADD İT TO BOTS 😡
wow
i found it with eval command 
Xd
@earnest phoenix j'ai eu le même problème, je vais essayer de retrouver mon code 😉
Merci tu peux décale en PV ?
oui
with?
You can moove private ?
I can but I don't really want to
Plz
@earnest phoenix or you can just right click the emoji in chat and click copy link, the id will be in the link.
Much easier
like this

The ID 469565491397001223
wow i am really idiot 😦
or
@west raptor i got permission to have his gif
ok guys dont shitpost here or mute is coming seriously
@west raptor hey can you teach me how to do it
In discord.py, I have a command that requires arguments from the user ( >[command] [args]) and if the args the user gives is a custom emote, the command doesn't execute and nothing happens. How can I get it to take a custom emote as an argument from the user?
code: https://hastebin.com/yugiqagehe.js
error: https://hastebin.com/uyuluhuzib.php - discord.js
https://vyan.is-not-on.ovh/i/pPT9VW7pyuEPJw.png this is a generic class
please define it that way and show me the error.
I mean you can entirely remove the constructor if it's empty
can I get app/AntiRaid.js lines 320 - 330
where is spamfilter required?
because you'd need to do
const { spamfilter, linkfilter, mentionfilter } = require('path/to/Protection.js')
From a design standpoint, passing message and message.client to a function is kind of pointless
All discord.js classes have a client
Hello everyone, I'm creating a bot for Discord, but when I put ** $ {client.users.size} ** on client.user.setActivity it does not work, does anyone know why...
no space
its ${client.users.size}
dont put a space between the $ and {
@balmy parrot
hmm
${} doesnt work without template literals
backtics indicate a template string
But the other works ...
no it doesn't
"em "+client.guilds.size+" servidores" // normal string
'em '+client.guilds.size+' servidores' // normal string
`em ${client.guilds.size} servidores` // template literal```
how is it zero if its in a server
^
Strange, it is in this server and in development, and continues with 0 ...
because it doesnt work
This template works, but something happens and gets 0.
also its not in this server
The bot is on the server and on the development server, but still it still generates 0, why?
are you trying to use it before the ready event?
yes
Put the array in the ready event
?
client.on("ready", () => {
activities_list = [blablabla]
})

Lol. What's so hard about moving your code
oh
.>
@earnest phoenix Tu es français je vais t'expliquer ?
Ok*
@balmy parrot show your code again
@tight heath
var {
spamfilter,
linkfilter,
mentionfilter
} = require('./protection.js')
i already defined it
but it still shows the error
yes, but english only here
fds
shudhusadshuasdhu
mas n entendi
tipo, o bot tá em 2 guilds
mas n tem 3 users utilizando o bot
yep*
and this guild doesnt count, because your bot is not accepted yet
true
can anyone help me with getting my bot up and running on my vps? I am using putty for the linux server. I keep getting this error.
@earnest phoenix If you put a backslash before the emoji you can receive the emoji id fully.
Emoji: 
Emoji ID: :GrandCat:
Oh lol
Did they change that or wut
:thinking:
oof
Wuttt
/🤔
Nop
It wzs backslash
Does it still work for channels?
[#general](/guild/264445053596991498/channel/264445053596991498/)
Yep
Thonkr
Y did they change that reee
They didn't change anything
@quartz kindle I GOT IT TO WORK!!
Hi everyone, I was doing a help command in categories, where you select a reaction and the bot edits the message, showing the commands and among others, but when I execute the command, edit directly, what do I do?
js
.-.
@balmy parrot could you explain what specifically you need?
Hi everyone, I was doinh a help command in categories, where you select a reaction and the bot edits the message, showing the commands and among others, but when I execute the command, edit directly, what do I do?
Code (Js/Javascript):
http://prntscr.com/lr8u95
Reads that you understand ❤
Oh, thanks ❤
Np
This way it's a little more complicated, better not even try. 
shrug
Im joking by the way but Maria needs to know and I'm a bit busy
Just stop process and restart it with a script
Yea
I think you can use the . destroy function right? @primal egret
or something
.destroy*
Ah ok
Stop the process
😂
I made it with my bot @low cloak
😂
😂
Lul
Sad
Or a boyfriend
Oh
:v
I'm joking btw
😂
@earnest phoenix It's not hard
Make it yourself? :V
Just make a while
You don't learn by taking
Learn whatever language your doing?
:p 😂
@gilded plank bots @lusty dew
@molten prairie
;)
:C
The bot is Yukari
Is not here
It's here I think
No, I only see the ID
@earnest phoenix you can use something like this.
Isn't that batch?
Yeah 😂
Lol
ok
OH that ilegal boy
Yea yea
hello. i just finished a bot running on linux on gcp. i am also using putty. after i close the putty cmd my bot turns off around 2 minutes after? why is this?
Eu gosto demais de dinheiro
http://prntscr.com/lr955f
Because you stop the process when you close putty
how can i have it continue running?
use pm2
I think if you make a screen you can close putty without stopping bot process
Or pm2
whats that?

process manager 2
or systemctl
😂
or a lot of things
tmux also w0rks
can someone walk me through how to use that
they have a website
they have a doc
so i have to install it then just do pm2 start app.js
yup
yay another error
mp2
😂
LOL
@quartz kindle Hi
my b
It's pm2 right?
yup
Yes
Okie
hahah im start 
okee dokie, well, lets hope this works
but its me so it probably wont
so after pm2 start app.js, i can close cmd?
well, you managed to get everything else working so far
so you'll be able to get this too
@primal egret ask tim, everything doesnt work with me lol
yes you can close
@serene sun oh
now time to wait a few minutes
when you open the connection again you can do pm2 ls to list running processes
and pm2 monit to get live information about them
oh perfect
pm2 log to see past logs and errors
and pm2 will auto restart your bot in case of crash
and if you launch it with pm2 start file.js --watch it will auto restart on code change
so you dont need to restart it when you add changes
wait so do i do node . , then type pm2 start app.js
when i started using pm2 i was like "why didnt i use this before lmao"
😂
ohhhhh
so do i have to replace it or it detects it
yes it is god
😂
literally just run pm2 start filename instead of node filename
alrighty
it also saves the process by name (without .js)
so you can do pm2 restart name and pm2 stop name
tim literally carried me through this project
i feel bad for wasting close to like 4 hours of his time lol
@gilded plank bots @quartz kindle
@oak sentinel 
the GOAT himself ^^
Why dosnt the /votes api also give you the unix time when the user voted :3
hmmm
testing it rn and when i need it to join the call, countdown, then leave it just instantly joins and instantly leaves. it worked before the pm2 stuff as well
check pm2 log
should i do pm2 monit
yeah, but monit doesnt show past logs, only current ones
it starts logging them from the moment you use it
did you manage to install the lzma thing? i believe lzma is a dependency for the audio stuff
yup
i think atleast
lol
i just did npm rebuild and the bot started to work
then i had to download ffmpeg
nice
Those are to ensure the process comes back up after system reboot
should i try to restart the pm?
Hey can someone tell me how the Icarus bot got a custom background on the discordbots page? or is that something only the webadmins can do?
thats what i mean
How to imp .Spaceflight News API?
@quartz kindle hey, i got these errors when checking pm2 log
@primal egret ^^ also if you can help.
looks like an internal error, not sure whats causing it
you can try adding this to your code
client.on('error', function(e){
console.log(e.error,new Date());
});```
anyone know any node modules that can turn things like 14000 into 14k or such?
^
thanks
i was doing research and found that this error has to do with a connection to the internet...
odd huh
should i try a different program?
the bot works fine when im not using pm2 @quartz kindle
reee
if(!kickeduser) return message.channel.send('Specify who the offender is.')
if(message.kickeduser.hasPermission('KICK_MEMBERS')) return message.channel.send('This student cannot be expelled due to their high status in school.')```
Howcome it says hasPermission cannot be read
user doesnt have hasPermission
only member does
and idk @serene sun never happened to me... it shouldnt be an issue with pm2 tho
damn 😦
does it happen consistently every time it joins voice?
not in pm2 log ?
try adding the on("error") to your voice connection
it should be something like js voiceChannel.join() .then(connection => { connection.on("error", e => console.log(e)) });
You could just do js connection.on("error", console.log)
let startgame = function(guild,channel1,channel2) { channel2.join().then(connection => { const dispatcher = connection.playFile('bot/sound/321go.mp3'); dispatcher.on('end', () => { channel2.leave(); const embed2 = new RichEmbed() .setColor(0xff0000) .addField("Waiting for server 3 digit codes...","Please enter them in here. They are located on top of your screen on left side in game, last 3 digits is the code.",false) channel1.send(embed2) scrims[guild.id].codes = true; scrims[guild.id].codedata = {} scrims[guild.id].message = false; }); }) }
oof i tried to be cool like you guys
but is that where i should throw in the error
have you heard of codeblocks
if thats the only place you use voice connections, then yeah, add it right after you declare connection
i dont think that is the only place
well, if you remove all your voice features and it works, then you could try remaking them
idk about problems with pm2, since my bot doesnt use voice
maybe someone else who uses voice and pm2 can help
windows
i think i got the bot working with tmux
i got this error from a server with 2FA enabled
unhandledRejection: DiscordAPIError: Two factor is required for this operation

so either enable 2fa or tell them to disable the requirement
i did that, I had no choice
This is about python not discord bots why does it make me run my .py files in a cmd prompt
because
@earnest phoenix where else are you going to run them
whenever i am able to double click an app it will run it.
what
a python file
yes but
you can't run a .py file by double clicking it
Dumb question for y'all...
I'm working on a new bot, and stupid Clyde keeps telling me the bot has explicit image filtering on; in the user account that owns it, content filtering is turned off.
Is there a way to make the explicit filter off, via code? If not, is there a way to disable it entirely?
JavaScript (like everything I make and list here)
Discord.js (like everything else I make and list here lolz)
@sick cloud they just edited it btw
@oak imp can you provide an image thanks
@earnest phoenix of what? clyde rejecting images?
yes
I'm pretty sure bot accounts have explicit filter enabled in dms anyway, it's not something you can change
Alright, welp, I'll have to figure out a wrokaround
It's surprising that you are even allowed to attach a file in bot dms, just my opinion
Agreed; basically we're creating (and almost done) a replacement service since tumblr is removing adult content. Given the nature of such a service, you can see how explicit content is like the vast majority of what we're handling lolz... I think I'll just need to create a command that uses an NSFW-marked channel, instead of DMs
well, the fact that discord itself has optional content filtering is proof that its allowed
otherwise they wouldnt bother implementing it if its gonna be banned anyway
That's for receiving content, bot accounts have that enabled by default
you mean a user sending an image to a bot?
Yes
oh thats stupid lmao
well, bots can still extract it from the message
could use it to upload files for example
Well I can see the point in discord doing it, for example to prevent people from using bot dms to use as an alternative for NSFW marked channels, or post something that is explicitly against TOS
i have a problem with
dbl.webhook.on('ready', hook => {
console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
dbl.webhook.on('vote', vote => {
console.log(`User with ID ${vote.user} just voted!`);
});
its do error TypeError: Cannot read property 'on' of undefined
should be very clear
yes
the only time you're accessing the property 'on' of something is when you're doing dbl.webhook.on
so dbl.webhook is undefined
Not exactly bot development but the api for it. I need a plug-in for hapi for server side session storage, I didn't manage to find any. Also why is hapi caching so complex?
Is there a way in HTML / JS to ask a user where he would like to save a file
@shadow dust it's the default download
Mmh true
<div class="col-12 text-center">
Are you sure that you want to remove "<div class="selected-file-name">UNKNOWN_FILE</div>" ?
</div>
.selected-file-name {
display: inline;
font-weight: bold;
}
let sfilename = "lol";
let filenamedivs = document.getElementsByClassName("selected-file-name");
for(let div in filenamedivs)
div.textContent = sfilename;
With that following code my div's text never gets changed so I dont get what im doing wrong
consider changing innerHTML instead of textContent
textContent would work for <p> <span> and such
but not sure for div
just fire up the console and test it live
textContent actually work for me
well
it doesnt work with innerHTML either and the variable isnt an empty string or null
this is so weird 😟
is your div well displayed ?
is the " well escaped ?
should look something like this
i was using span, it was for testing purposes
:/
" is in the html part so it shouldnt need escaping right?
did you tried to run your javascript in the console ?
yep
did it work ?
actually let me try that out again
run it in parts
can you run document.getElementsByClassName("selected-file-name")[0].textContent = "lol"; and look for the first ?
sure
just do document.getElementsByClassName(selected-file-name)
to see if it even finds it
and if it finds the correct thing
document.getElementsByClassName("selected-file-name").length
1
it finds it
and @misty rune thing worked
try with for or forEach instead of for in
oh wait!
thats the issue
its of in javascript
im stupid
Yes! that was the issue
Im so used to lua that I just used in by habit
in seems to be keys
i always though that in and of would do the same
and of values
you can deconstruct it
but yeah it's key
oh yeah, i forgot for in gets the key even in arrays
i forget that arrays are basically objects with indexes as keys lol
Good to know
.setTitle('[View Profile](https://web.roblox.com/users/' + rblx[rId].userId + '/profile)')
Is there a typo in this code? Because it wont appear to be clickable and show all the words I type instead.
sir
may I ask
are you under 13
@earnest phoenix ?
@earnest phoenix Also markdown doesn't work in titles iirc
No I am not because due to the Discord ToS. Why are you asking that tho?
web.roblox.com is known the link for underage
How so?
I am adding a Roblox verification feature to my bot.
how it changed the background and color of letters where the bot appears on the discord bots page
@earnest phoenix Use CSS
ok thanks 😄
you’re welcome
@earnest phoenix use .setURL
titles cant have masked links in them
but you can combine title and url
a
hello anybody knows some free country radio stations that i can use for my bot please
yes but only country
Idk how you would stream through that but sadly no
hmm ok 😦
iirc it does
node index.js
Yes?
yes write that
I have a file called index.js
not node index
So type node index.js not node index
node index
node index.js
is there a way I can make it more clear
C:\Users\hi\Desktop\TC Helper>node index.js
module.js:550
throw err;
^
Error: Cannot find module 'C:\Users\hi\Desktop\TC Helper\index.js'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Function.Module.runMain (module.js:694:10)
at startup (bootstrap_node.js:204:16)
at bootstrap_node.js:625:3
The error I got when saying node index.js
okay
I do not get the error
dir /s | findstr /v "\node_modules" > dir.txt
just send the file
Ok
this looks suspiciously like DBM
Whart that?
nvm
well so what I'm asking myself is
are you following some kind of guide?
because you have no file that actually contains the code to load the commands in /commands or the events in /events
and no node_modules like discord.js installed
not in that folder though
no
you literally sent me a directory listing; there is none lmao
dir.txt is the names of your directories
there's no discord.js there
if you did npm i install discord.js it probably crashed at trying to install a module called "install"
lmao
ikr
but what about the file loading your commands and stuff?
e.g. https://vyan.is-not-on.ovh/i/a-9Ny9WsloAQag.png dis mine
the folder on the left is unrelated btw
side project
Mine is index.js too
npm i discord.js installed some random stuff
yes it did so what
this is my command loader
btw
not very elegant but it works
I didn't bother rewriting my 7 month old loader since my framework (aurora) has an inbuilt one
const Discord = require("discord.js");
const client = new Discord.Client({disableEveryone: true});
const fs = require("fs");
client.commands = new Discord.Collection();
const config = require("./config.json");
const client = new Discord.Client();
//Error Event (To not trigger errors that will end your process, you must handle this event)
client.on('error', console.error);
fs.readdir("./events/", (err, files) => {
if (err) return console.error(err);
files.forEach(file => {
let eventFunction = require(`./events/${file}`);
console.log(`Event Loaded: ${file}`);
let eventName = file.split(".")[0];
client.on(eventName, (...args) => eventFunction.run(client, ...args));
});
});
fs.readdir("./commands/", (err, files) => {
if(err) console.log(err);
let jsfile = files.filter(f => f.split(".").pop() === "js")
if(jsfile.length <= 0){
return console.log(`No commands available.`);
}
jsfile.forEach((f,) => {
let props = require(`./commands/${f}`);
console.log(`Command Loaded: ${f}`);
client.commands.set(props.help.name, props);
});
});
client.login(config.token);
This is my index.js
it's not there though apparently
So what do I add?
that file
as index.js
because this is your directory content
did you forget to save it or something?
it is
probably
is there a way to "test" if a discord webhook url is valid or not without sending a message?
my idea was to send a bad request, assuming I'll get a 400 instead of 403 or something
depends in which order it checks
and while that api idea is good, I need to be able to check by only having the entire webhook url and not just it's token
just make a get request instead of a post request
looks like the url structure is the same
can you give me a direct link to that webhook part from the discord portal?
Step up your game with a modern voice & text chat app. Crystal clear voice, multiple server and channel support, mobile apps, and more. Get your free server now!
thanks
yw
`Could not find node >=8.0.0, using 10
/opt/watcher/app-types/node/start.sh: line 49: null: command not found` glitch commando
First one: your format for the node version is wrong but looks like its handling it
Second: command not gonna found is probably something with commando so ask in the commando channel in the djs server
Hey, im asking this because i have seen other bots do this, any way to set up vote rewards? like how can i use it
so when i vote for my bot on dbl, it gives a reward to the user. like lets you access a command
@earnest phoenix https://discordbots.org/api/docs
Thanks
Can anyone help me fork a bot over to Heroku to get it on my server?. Not how to do this right
Or if the bot can even be hosted on heroku
@amber junco You defined client twice
Does anyone know how to set up giveaway bot or any bot in particular
go to their support server
Can you send me the server in a pm
oh ok
I connected to the ws
you dont need ws
oh
just use https://listen.moe/opus
I can use that with LL?
yea
yes
like you do with youtube or soundcloud urls
time to attract the weebs
mmlol
Is there any specific reason why my bot's status keeps disappearing after a few days?
Yeah. It's getting annoying
I just make it update on an interval
@high lava discord cache is fucking up from time to time, you know, typical discord...
in discord.py does on_shard_ready only starts working if I'll actually start using more than 1 shard?
in .py
How do you make a command like:
!run.
Bot replies
Hello
how do I get the discord bot list webhook server pass and port?
Google it grape
dbl.on('vote', vote => {
console.log(`User with ID ${vote.user.id} just voted!`);
});
Does this work
I tried it and it didn't work and didn't send any errors
I'm using await fetch with node-fetch but because i'm using it my bot won't start, what could be the issue?
what errors
There's no errors, the bot just refuses to start when i include await in the code
const mentioned = message.mentions.users.first();
// Add sentences to the responses in the embed title.
var sentences = [
`${message.author} embraces ${mentioned} close to them.`,
`${message.author} holds ${mentioned} tightly.`,
`${message.author} gives ${mentioned} a big hug~`,
`${message.author} grabs onto ${mentioned} and hugs them.`,
`${message.author} opens their arms to ${mentioned} to give a big huggie~`
];
var random = sentences[Math.floor(Math.random()*sentences.length)];
if (!message.mentions.users.size) {
return message.channel.send('Tag a member to hug them.');
}
if (message.author === mentioned) {
return message.channel.send(`${message.author} hugs themselves... You'll be alright 💕`);
}
if (mentioned === client.user) {
return message.channel.send('Awww, *huggieeeeez*');
}
const url = await fetch('https://nekos.life/api/v2/img/hug')
.then(response => response.json())
.then(body => body.url);
let embed = new MessageEmbed()
.setColor('#363942')
.setDescription(`${random}`)
.setImage(url)
message.channel.send(embed);
is it an async function
When i remove await it starts
you cant use await without making your function async
const DBL = require('dblapi.js');
const dbl = new DBL(yourDBLTokenHere, { webhookPort: 5000, webhookAuth: 'password' });
dbl.webhook.on('ready', hook => {
console.log(`Webhook running at http://${hook.hostname}:${hook.port}${hook.path}`);
});
dbl.webhook.on('vote', vote => {
console.log(`User with ID ${vote.user} just voted!`);
});
``` How would I use this, I don't understand?
read the docs
it's limited on detail
then make sense of it, its pretty obvious how to use it
okay?
use fs
const data = new Uint8Array(Buffer.from('Hello Node.js'));
fs.writeFile('message.txt', data, (err) => {
if (err) throw err;
console.log('The file has been saved!');
});```
this was my code
tho is 'Hello Node.js' module or you nammed it
or my main file
its basically a string
why do you have a closing thingy there tho
why do you close after TextToWrite
idk :d
i should probably read it xd
its complicated and you dont need 99% of it
does anyone have an idea why on_shard_ready on discord.py does not do anything at all, even if I'm running 2 shards on the AutoShardedBot object? I've already asked in at least 4 servers, including dapi and discord.py, but no one gave me a proper answer for over several hours now
guys how can i play c# system.IO stream object directly to discord
do i need some additional software like ffmpeg or what
?
most likely
fmmpeg is for converting a mp3 file to stream
but i dont need that
i already have the stream
wasiest way might be ffmpeg
but how can i give ffmpeg info about the stream object
is there a way
?
so wait i dont get it if opus is an audio format what is pcm
?
another audio format
but i use a method called createpcmstream
why would i need to convert it to opus
because discord requires audio to be sent as opus
¯_(ツ)_/¯
check the docs of your lib
i wasted 3 4 days on that porblem
it says Creates a new outgoing stream accepting PCM (raw) data.
and the stream is pcm too
help
r!help
https://www.youtube.com/watch?v=RY_2gElt3SA
3th time this is posted today 
Sometimes, numbers on sites like YouTube and Twitter jump up and down; subscriber counts lag, like-counts bounce all over the place. Why is it so hard for co...
@earnest phoenix it’s how it is catched I think
Hello,
I would need a person who takes care of checking the bots for the meters on the site of discordbots and, who speaks French please. Thank you.
who can help me i have aproblem with pcm stream
basically i have a stream object that is pcm and 16000 hz and i want to play it on discord voice channel which requires 48000 ,but it does not play why?
heh
Are you using yt API?
Youtube
Do you have fs?
fs?
Not fs, I mean ffmpeg
ffmpeg is also for playing music
yes i know
It is
i want to play it in discord
i do not need ffmpeg
i have a audio source i just use copytoasync method
but it does not work
im not sure why
It allows it to convert the stream to a readable object, I believe that's what the purpose was
What's your play command look like?
no it plays on join
its not really important
the problem is that it does not pkay
play
Yes I know what does it look like?
Who can help me with a coding problem please?
?
because I'm starter
ok
@graceful warren dont ask to ask
Please be more specific bou
just ask the question ^_^
So when I run node bot.js I get an error

What is the error?
at function.module etc etc
Error: Cannot find module 'C:\Users\User\bot.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:776:12)
at executeUserCode (internal/bootstrap/node.js:342:17)
at startExecution (internal/bootstrap/node.js:276:5)
at startup (internal/bootstrap/node.js:227:5)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
A guide made by the community of discord.js for its users.
easy
ty
👀
and I should find here?
You need to change \ to /
@graceful warren You're in the wrong directory, you have to change it to where your project is
or what korean said 
you switch folders with ls
yes, ls and then the directory you want. ../ is to go one folder back
I followed a tutorial dude and that's the single problem
And I need this to can make the bot on
Are you using Windows 10?
In your file change the file pathway, so it is C:/User/User/bot.js
yes
What library?
a friend told me some things are missing
What coding language are you using?
the .js I think
It's first time when I'm coding
I just followed a tutorial how to make a discord bot
And everything is working but not this
ok, go to where the bot.js folder is, and click this part. it should all be highlighted. Then copy what comes up https://i.imgur.com/mfviXX0.png
Where the empty space to the right is
sorry
then delete everything and type cmd

Why all bots go shutdown?
How fast is your internet
download or up?
down
hm shouldn't take too long
hmm
