#development

1 messages ยท Page 824 of 1

bitter sundial
#

then...

earnest phoenix
#

under it says db is undefined again there is nothing else

#

like it keeps repeating

#

I have a question...
(In discord.js)
Is the filter method has been changed to something else or deleted?

bitter sundial
#

what about then

#

any filenames?

quartz kindle
#

@earnest phoenix in v12 it has been moved to the cache

#

bla.cache.filter

earnest phoenix
#

Oh that makes sense...

#

Thx for the help...

quartz kindle
#

@earnest phoenix listen, the error can be ANYWHERE in your code. The full error will show exactly what part of the code the error comes from. If you're sure that there is no full error, then you need to look for it yourself, in ALL your code, not in the code you posted, the error is not there

earnest phoenix
#

omg

#

nvm

unique nimbus
#

Did you find the error

quartz kindle
#

lmao

#

one cannot help those who do not want to be helped

unique nimbus
#

๐Ÿ˜”

earnest phoenix
#

thats what i keeep getting

quartz kindle
#

ok, finally some more information

#

this confirms that the error is NOT in the code you showed

#

please show your OTHER code

earnest phoenix
#

i been saying it but no one seen it

#

thats the only code i have to get server count

quartz kindle
#

THIS IS NOT A SERVER COUNT ERROR

unique nimbus
#

bruh

quartz kindle
#

the error is in your code, it has nothing to do with server count

bitter sundial
#

search for db in ALL of your bot's files

vestal star
#

What commands should I charge coins for? You get coins by voting for my bot

cursive dagger
#

What commands do you have

vestal star
#

I'll be making new ones that I charge for

#

My current commands will be free

cursive dagger
#

What's your bot about? What does it have?

copper cradle
#

@quartz kindle tim why are you screaming?

quartz kindle
#

scroll up and you'll understand

copper cradle
#

lemme see

vestal star
#

It's a general purpose bot... It has Image, Joke, and vote commands. I was just working on a bunch of helper code to make admin commands exist.

copper cradle
#

OMFG

#

I'm getting outta here

vestal star
#

Admin:
set
Eco:
balance, free
Fun:
advice, chuck, joke, trivia
Images:
giphy, imgur, meme, random
Misc:
help, ping, stats, support
Utility:
vote

#

@cursive dagger ^^

cursive dagger
#

Eco multipliers?

copper cradle
#

wrong channdl

vestal star
#

What no.

#

Anything else?

cursive dagger
#

No

empty owl
#

help

#
const Discord = require('discord.js')
const prompt = require('../prompt.js')

module.exports.run = async (bot, message, args) => {
let questions = bot.apply.get("Questions")
let final = new Discord.RichEmbed()
  .setTitle("New Application")
  .setDescription(`New Application from ${message.author.tag} - ${message.author.id} - <@${message.author.id}>`)
questions.forEach(async question => {
  let answer = await prompt(message, question)
  final.addField(question, answer)
  
  
})
  bot.channels.get("688889149897572375").send({embed: final})
  
}





module.exports.help = {
  name:"apply"
}```
#

discord.js

#

uh

#

soo im try8ing to make a apply thing

#

and it just sends every question all at once

#

it doesnt wait for an answer

#

and it sends the final thing when i do the command

earnest phoenix
#

debug your code

#

go through each block and see where your issue is

quartz kindle
#

@empty owl you cannot use forEach

#

you need a regular for loop

dapper hill
#

        case 'mute':
            if (!msg.member.hasPermission('BAN_MEMBERS'))
                return msg.reply('you do not have permissions to use this command!')
            let person = msg.guild.member(msg.mention.user.first() || msg.guild.members.get(args[1]))
            if (!person) return msg.reply("Couldn't find that user");

            let mainrole = msg.guild.roles.get(role => role.name === "Bot Tester");
            let muterole = msg.guild.roles.get(role => role.name === "Muted");

            if (!muterole) return msg.reply("Couldn't find the mute role!");

            let time = args[2];

            if (!time) {
                return msg.reply("You didn't soecify a time!");
            }

            person.removeRole(mainrole.id);
            person.addRole(muterole.id);

            msg.channel.send(`@${person.user.tag} has now been muted for ${ms(ms(time))}!`);


            setTimeout(function(){
                person.addRole(mainrole.id);
                person.removeRole(muterole.id);
                msg.channel.send(`@${person.user.tag} has been unmuted!`)
            }, ms(time))

            break;```
#

if you could could you @ me when you respond because I have this server muted and will most likly forget that I put this here

#

likely*

prime cliff
#

@dapper hill you need to check if the message actually contains mentions otherwise it will error

zenith terrace
#

@dapper hill .users, not .user

#

And

#

.mentions, not .mention

dapper hill
#

I tried .find

#

and that doesnt work either

zenith terrace
#

@dapper hill remember

#

Its not .get, its .some in V12

#

And the cache

#

.roles.cache.some

dapper hill
#

so would it be msg.roles.cache.some?

zenith terrace
#

Yes

dapper hill
#

ok thank u

zenith terrace
#

Just like the bot tester role

dapper hill
zenith terrace
#

@earnest phoenix U gotta have ' or " at the start and end of ur token

prime cliff
#

@earnest phoenix line 9 also nice half of your token leaked ThonkangEyes

zenith terrace
#

All of it

#

๐Ÿ‘€

prime cliff
#

No the other parts contain . and -

dapper hill
#

in the original code it said that it was supposed to be msg.guild.roles.find has that changed since 11v?

prime cliff
#

Yea some parts of the cache changed in v12 due to gateway intents

dapper hill
#

ok so if there somthing else I should change it to?

#

besides that

zenith terrace
#

I would do the role ID again @dapper hill

dapper hill
#

ok

#

thamk u

#

The error says that cache is not defined

prime cliff
zenith terrace
#

@earnest phoenix not helpful on what you want

quartz kindle
#

@earnest phoenix token is a string, not a variable

#

"TOKEN HERE"

#

with the quotes

dapper hill
#

But would the cache this have to do with weather or not I have a role id?

#

@zenith terrace

#

cache thing*

zenith terrace
#

@dapper hill Probably not but IDs would be better incase role names ever change

dapper hill
#

ok thank u

#

I will try that and if it doesnt work I will come back lol

quartz kindle
#

msg.roles is not a thing, messages dont have roles

zenith terrace
#

Forgot the .members

#

๐Ÿ‘€

quartz kindle
#

.some will return true or false if one or more elements pass the condition, not the role itself

dapper hill
#

uh

zenith terrace
#

Uuggghhh im trynna load up my laptop but its slow af since it was doing an update

dapper hill
#

would I use .find?

zenith terrace
#

No, ur in V12.

#

Its .some

quartz kindle
#

no

dapper hill
#

but tim said that wouldent work PepeHands

quartz kindle
#

some and find are completely different things

#

they both exist in both versions

dapper hill
#

so it still says that cache is not a thing. So instead of msg.roles.cache.find what should I do?

quartz kindle
#

messages dont have roles

dapper hill
#
            if (!msg.member.hasPermission('BAN_MEMBERS'))
                return msg.reply('you do not have permissions to use this command!')
            let person = msg.guild.member(msg.mentions.users.first() || msg.guild.members.get(args[1]))
            if (!person) return msg.reply("Couldn't find that user");

            let mainrole = msg.roles.cache.find(role => role.id === "579799065676742666");
            let muterole = msg.roles.cache.find(role => role.id === "688897222930464804");

            if (!muterole) return msg.reply("Couldn't find the mute role!");

            let time = args[2];

            if (!time) {
                return msg.reply("You didn't soecify a time!");
            }

            person.removeRole(mainrole.id);
            person.addRole(muterole.id);

            msg.channel.send(`@${person.user.tag} has now been muted for ${ms(ms(time))}!`);


            setTimeout(function () {
                person.addRole(mainrole.id);
                person.removeRole(muterole.id);
                msg.channel.send(`@${person.user.tag} has been unmuted!`)
            }, ms(time))

            break;```
quartz kindle
#

message.guild.roles.cache.find

zenith terrace
#

I must be blind then since I didnt see .find in the V12

dapper hill
#

So that section of my code is no longer a error

#

but

#

it now says that .remove role is not a function

#

and keep in mind I am watching a guy do a toutrial on this that is using v11

zenith terrace
#

.role.remove if I remember

dapper hill
#

so idk what they have chnaged

#

ok

#

I will try that

#

no

quartz kindle
#

roles

zenith terrace
#

O

dapper hill
#

o

#

roles

#

ok

#

ahhh

#

ok

#

how do I explain this

#

sp

#

so*

#

it sends the message saying that he is muted (without actully pinging this person) it also doesnt give him the muted role, doesnt remove the role I want it to remove and it says that I dont have the perms do mute him

#

even tho I do

#

so

#

       case 'mute':
            if (!msg.member.hasPermission('BAN_MEMBERS'))
                return msg.reply('you do not have permissions to use this command!')
            let person = msg.guild.member(msg.mentions.users.first() || msg.guild.members.get(args[1]))
            if (!person) return msg.reply("Couldn't find that user");

            let mainrole = msg.guild.roles.cache.find(role => role.id === "579799065676742666");
            let muterole = msg.guild.roles.cache.find(role => role.id === "688897222930464804");

            if (!muterole) return msg.reply("Couldn't find the mute role!");

            let time = args[2];

            if (!time) {
                return msg.reply("You didn't soecify a time!");
            }

            person.roles.remove(mainrole.id);
            person.roles.remove(muterole.id);

            msg.channel.send(`@${person.user.tag} has now been muted for ${ms(ms(time))}!`);


            setTimeout(function () {
                person.addRole(mainrole.id);
                person.roles.remove(muterole.id);
                msg.channel.send(`@${person.user.tag} has been unmuted!`)
            }, ms(time))

            break;```
zenith terrace
#

U did person.user.tag thats why

dapper hill
#

should it be users?

#

not user

zenith terrace
#

Try
msg.channel.send(person + `has been muted!`)

#

Unless that had changed in V12

#

Lemme look

dapper hill
#

I dont have person as a const var tho

#

so would it still work?

zenith terrace
#

It takes it from the let person

dapper hill
#

ok

#

let me try thayt

#

that*

#

np

#

no*

#

it does not work

zenith terrace
#

Uh

#

Try
msg.channel.send(`${person} has been muted!`)

dapper hill
#

No

#

why did they change so many small commands from v11 to v12 PepeHands

zenith terrace
#

ยฏ\_(ใƒ„)_/ยฏ

dapper hill
#

this is me when I realize how many discord bot tutorials are obsolete because of the v12 update

zenith terrace
#

Ima look on the forums here

#

CLASH

dapper hill
#

I am gonna look aswell

#

also on a side not is clash back yet?

zenith terrace
#

She is

#

xD

dapper hill
#

lol

#

FOKIN MUPPET

#

-clash 2018

zenith terrace
#

Im looking at the forums

#

It says it changed to the ${}

quartz kindle
#

v12 is a major version, its supposed to be breaking

zenith terrace
#

:/

warm marsh
#

let person = message.mentions.members.first() || ...

quartz kindle
#

if you dont like it, stay with v11

zenith terrace
#

Cant go back now after everything he has

#

๐Ÿ‘€

dapper hill
#

I just started to code my bot and I think I am too deep to just switch back to v11 lol @quartz kindle

#

I mean my bot isnt "big"

quartz kindle
#

then dont complain lul

smoky spire
#

You do know there's a complete guide of everything that changed from v11 to v12 right?

dapper hill
#

but just to many lines for me to justify going threw and changing eveything back

#

yes I am aware but that has helped 75 % of the time

smoky spire
#

You did something wrong 25% of the time then

dapper hill
#

yes

zenith terrace
#
msg.channel.send(`<@${person.id}> has been muted!`)```
#

@dapper hill

dapper hill
#

lol brask...

#

Thank u

#

I will try this

zenith terrace
#

SHUSH

warm marsh
#

They break the tostring method on a member?

quartz kindle
#

dont think so

warm marsh
#

Then they don't require to use person.id the problem probably lies somewhere else.

pale vessel
#

`${member} message` would work.

grizzled raven
#

how

pale vessel
#

how what?

minor kelp
#

this might sound, confusing but

#

how will I send a Web request to python code for it to then store in a db

red hollow
#

what

#

if this is what you mean
you have to do a request
store body
then store it in db?

earnest phoenix
#

How do I fix fields.flat is not a function in discord.js? I am using discord.js v12.0.2 and node v13.9.0

#

nvm I solved in by restarting

#

๐Ÿค”

earnest phoenix
#

lol

pale vessel
#

restarting solves 90% of problems

earnest phoenix
#

yea ofc

wide ridge
#

anyone else having issues with running their bot? client.login(token) is taking quite some time for my bot.

earnest phoenix
#

nah

wide ridge
#

how many servers is your bot in?

red hollow
#

@wide ridge wdym

earnest phoenix
#

35

red hollow
#

does anything happen tho?

wide ridge
#

it just takes very long for it to connect

red hollow
#

how long

earnest phoenix
#

what are u running it on?

wide ridge
#

not connecting

#

been like 5 mins

#

nodejs

red hollow
#

uh

wide ridge
#

discordjs

#

I run my test server and it connects fine

earnest phoenix
#

no i mean like vps?

#

pc?

wide ridge
#

digitalocean

red hollow
#

wdym not connecting

#

like nothing happens?

earnest phoenix
#

might be a vps problem

wide ridge
#

client.login(token);

sudden geyser
#

may be your vps, or what language and library (or framework) are you using?

wide ridge
#

DiscordJS 11.5 and DigitalOcean

red hollow
#

ah yes

earnest phoenix
#

maybe its the vps slow

red hollow
#

im also having issues with logging in the bot in on d.js 11.5.1

wide ridge
#

850 servers for my bot

red hollow
#

on v12 it works fine

earnest phoenix
#

is your vps big?

wide ridge
#

if I run it on my laptop, my test server which is on 18 servers runs fine

#

yeah

red hollow
#

try restarting ur vps?

#

or simply disconnect the bot for ~10mins

#

then start it up

#

helped for me when i had similar issue

wide ridge
#

I see

#

will do, thanks

#

!

earnest phoenix
#

restart the vps

frosty sierra
#

im having troubles

#

i would use visual studio code but i have no idea if it will work on windows 7

earnest phoenix
#

It would work just fine, But I'm not sure if what you're asking fits in this channel

lilac wharf
#

@frosty sierra this question would be more suited for #memes-and-media but yes, VS Code should have support for windows 7 if I remember correctly.

earnest phoenix
#

A

dapper hill
#
        case 'mute':
            if (!msg.member.hasPermission('BAN_MEMBERS'))
                return msg.reply('you do not have permissions to use this command!')
            let person = msg.guild.member(msg.mentions.users.first() || msg.guild.members.get(args[1]))
            if (!person) return msg.reply("Couldn't find that user");

            let mainrole = msg.guild.roles.cache.find(role => role.id === "579799065676742666");
            let muterole = msg.guild.roles.cache.find(role => role.id === "688897222930464804");

            if (!muterole) return msg.reply("Couldn't find the mute role!");

            let time = args[2];

            if (!time) {
                return msg.reply("You didn't soecify a time!");
            }

            person.roles.remove(mainrole);
            person.roles.add(muterole);

            msg.channel.send(`${person} has now been muted for ${ms(ms(time))}!`);


            setTimeout(function () {
                person.roles.add(mainrole);
                person.roles.remove(muterole);
                msg.channel.send(`${person} has been unmuted!`)
            }, ms(time))

            break;``` Where in this would I add a unmute command and how would I go about doing this? I have tried to look for good totorials for it but I can't find one that works with my code.
radiant parcel
#

how to set status for node.js?

#

(discord.js)

tight plinth
#

Statuts for node.js?

radiant parcel
#

yes

tight plinth
#

You mean, set a custom game for your bot?

radiant parcel
#

yes

tight plinth
#

It's something like client.user.setGame('what you want')

#

I'm not sure

radiant parcel
#

I'll try, please wait

#

this error :

#
TypeError: Cannot read property 'setGame' of null
    at Object.<anonymous> (C:\Users\RecuvaPum\Desktop\Discordjs\Test\index.js:109:15)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
    at Module.load (internal/modules/cjs/loader.js:1002:32)
    at Function.Module._load (internal/modules/cjs/loader.js:901:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
    at internal/main/run_main_module.js:18:47
PS C:\Users\RecuvaPum\Desktop\Discordjs\Test>
#

@tight plinth please help

tight plinth
#

Client.user is undefined?

#

What djs version

#

@radiant parcel

radiant parcel
#

miss

tight plinth
#

Yes I know

radiant parcel
#

wait, I will take a look

tight plinth
#

What discord.js version you havr

radiant parcel
#

"discord.js": "^12.0.2",
"dotenv": "^8.2.0"

plucky heart
#

Maybe 'client.user.setActivity('YouTube', { type: 'WATCHING' }); '

radiant parcel
#

12

tight plinth
#

Hm

torn nebula
#

in v12
it would be setPresence

tight plinth
#

Yea, try @plucky heart's solution

#

Oh

radiant parcel
#

no

#

error

#

TypeError: Cannot read property 'setActivity' of null
at Object.<anonymous> (C:\Users\RecuvaPum\Desktop\Discordjs\Test\index.js:108:15)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47
PS C:\Users\RecuvaPum\Desktop\Discordjs\Test>

plucky heart
#

Hm

tight plinth
#

Bot.user maybe?

radiant parcel
#

when I put the bot so it also writes that it does not exist, I have to say client

torn nebula
radiant parcel
#

client.user.setPresence({ activity: { name: 'RecuvaPum | Developing' }, status: 'idle' })
.then(console.log)
.catch(console.error);

#

not working

#

:c

#

@torn nebula

plucky heart
#

Hm

tight plinth
#

No error in log?

radiant parcel
#

yes

#

Should I try to download a better version?

tight plinth
#

Hmm

radiant parcel
#

TypeError: Cannot read property 'setPresence' of null
at Object.<anonymous> (C:\Users\RecuvaPum\Desktop\Discordjs\Test\index.js:108:15)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47
PS C:\Users\RecuvaPum\Desktop\Discordjs\Test>

#

of null

tight plinth
#

Client.user is not defined for you

lilac wharf
#

it's telling you the error right there, client.user is returning in a null.

tight plinth
#

How

lilac wharf
#

Is the bot logging in first before it runs the event @radiant parcel?

#

I'd personally suggest registering the presence on the ready event. to validate that it's logged in and no error will return

radiant parcel
#

oh wait

#

it works ! but the status game won't show up ..

#

client.on("ready", () => {
console.log(Jsem online, moje jmรฉno je ${client.user.username});

client.user.setPresence({
    status: "online",
    activities: {
        name: "Developuje mฤ› RecuvaPum",
    }
});

})

lilac wharf
#

replace game with activities

#

it's changed from v11 to v12.

radiant parcel
#

this ?

#

ohg

lilac wharf
#
    client.user.setPresence({
        status: "online",
        activities: {
            name: "Developuje mฤ› RecuvaPum",
        }
    });
pale vessel
#

activity*

lilac wharf
#

not what the api doc that I'm looking at says...

radiant parcel
#

YES

#

activi

#

astivity

#

activity*

#

is working!

#

THX!!

lilac wharf
#

Ah.

radiant parcel
lilac wharf
radiant parcel
#

oh

pale vessel
#

that's for grabbing the activity

#

we're setting them

lilac wharf
#

oh my I completely just realized that

finite bough
#

lmao

pale vessel
#

not funny?

lilac wharf
#

I don't work with v12 so SuwonShrug

finite bough
#

:/

#

it's the same in11v

earnest phoenix
#

why don't you just refer to the docs directly instead of reading shitty guides

pale vessel
#

that is one of* the docs

#

don't blame him

radiant parcel
#

change my name RecuvaPum

#

xd

pale vessel
#

he just misread

lilac wharf
#

It's normal for people to misread @earnest phoenix.

earnest phoenix
#

wat

#

that's not what i said

pale vessel
#

that's what she said

earnest phoenix
#

i know

#

i wasnt referring to the misreading

finite bough
#

^ agreed read official guides

pale vessel
#

him not reading the docs I get it

#

i don't get why people don't too

finite bough
#

easier guides if possible

earnest phoenix
#

i was referring to the fact that they're using some other third party guide instead of the official docs

pale vessel
#

it's not the third party though

#

it's from djs GitHub

finite bough
#

use stackflow

pale vessel
#

wtf

#

no.

finite bough
lilac wharf
#

stackflow is for help with code issues not docs.

finite bough
#

still use stack flow

#

or ban

lilac wharf
#

I'll take the ban then.

pale vessel
#

stack is full of outdated information

finite bough
#

yt too

pale vessel
#

well, most of the time

#

yt is full of kids using notepad to make tutorials

radiant parcel
#

ehm.. what create embed message ? for discord.js (node.js)

finite bough
#

I hope one of them is jot u

pale vessel
#

please refer docs

lilac wharf
finite bough
#

@radiant parcel version?

radiant parcel
#

12

finite bough
#

messageEmbed

pale vessel
#

docs

lilac wharf
#

MessageEmbed instead of RichEmbed

finite bough
#

depend upon how u set it

radiant parcel
#

ok

pale vessel
#

duck man why can't people read the docs. it's easy af

radiant parcel
#

thx

lilac wharf
#

np.

finite bough
#

actually nah

pale vessel
#

MessageEmbed*

finite bough
#

yeah

pale vessel
#

not messageEmbed

finite bough
#

yea

#

that's why I said "nah"

lilac wharf
#

Capital M not lowercase...

pale vessel
#

yes

finite bough
#

thats

#

why

#

i

#

said

#

nah

radiant parcel
#

is there any way to set bot to have more game status?

finite bough
#

array

radiant parcel
#

(node.js)

#

ok

#

thx

pale vessel
#

btw saying discord.js is enough since it's using node.js

quartz hill
#

"Something took too long"
I've been getting this error for the past few days. There is no change in my code. My bot shuts down and it takes too long to log in.

pale vessel
#

full error?

radiant parcel
#

@pale vessel ok.

pale vessel
#

๐Ÿ‘Œ

radiant parcel
pale vessel
#

up to you

quartz hill
#

yes only this error "Something took too long"

pale vessel
#

if you're more proficient at js, then djs it is and so is vice versa

radiant parcel
#

I mean from your point of view

pale vessel
#

i like js so discord.js

#

@quartz hill there should be a full error

#

like with the traceback

radiant parcel
#

@pale vessel is spongery ๐Ÿ˜„

quartz hill
#

2020-03-16T08:32:54.414016+00:00 app[web.1]: Error: Something took too long to do.
2020-03-16T08:32:54.414051+00:00 app[web.1]: at /app/node_modules/discord.js/src/client/ClientManager.js:40:57
2020-03-16T08:32:54.414052+00:00 app[web.1]: at Timeout._onTimeout (/app/node_modules/discord.js/src/client/Client.js:436:7)
2020-03-16T08:32:54.414053+00:00 app[web.1]: at listOnTimeout (internal/timers.js:549:17)
2020-03-16T08:32:54.414054+00:00 app[web.1]: at processTimers (internal/timers.js:492:7)

#

this full error

pale vessel
#

h e r o k u

quartz hill
#

yes

pale vessel
#

well it has something to do with the client

#

i'm not sure with this one

quartz hill
#

Likewise, I cannot log in from cmd.
I haven't changed the code and this has been happening for the past few days.

radiant parcel
#

how to create join / left message in discord.js version 12

tight plinth
#

how can I get a video thumbnail using ytdl_core?

lilac wharf
#

@radiant parcel by using the events in discord.js version 12
Should still be guildMemberAdd & guildMemberRemove

quartz hill
lilac wharf
#

However you won't be able to use the default channel anymore so you'll need some sort of pre-set from the server admins.

restive furnace
#

@tight plinth info.thumbnail

#

try lookikg ytdl docs

tight plinth
#

I tried, it returns undefined

#

I cant find the docs anywhere online

lilac wharf
#

console.log(info)

#

See what that outputs.

restive furnace
#

@tight plinth

tight plinth
#

it outputs a paragraph

restive furnace
tight plinth
#

this

lilac wharf
#

oh lord

#

47kb...

restive furnace
#

@tight plinth

lilac wharf
#

DELETE IT, It has your API key in it

tight plinth
#

thx

#

I dont have any yt api key

lilac wharf
#

10:06:07 AM worker.1 | innertube_api_key: 'AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_<filter>',

tight plinth
#

never heard of innertube

lilac wharf
#

Try outputting info.player_response.videoDetails now see if that outputs the exact videoDetail.

tight plinth
#

undefined ;-;

#

e

lilac wharf
#

with the player_response?

tight plinth
lilac wharf
#

there you go

tight plinth
#

then I do .thumbnail

lilac wharf
#

that has the collection of the thumbnails from all the queries

#
thumbnail: { thumbnails: [ [Object], [Object], [Object], [Object], [Object] ] },```
tight plinth
#

  {
10:27:09 AM worker.1 |    thumbnails: [
10:27:09 AM worker.1 |      {
10:27:09 AM worker.1 |        url: 'https://i.ytimg.com/vi/Xokx96yxEws/hqdefault.jpg?sqp=-oaymwEiCKgBEF5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLCcaQArTP2cMF2vflyEwrGgXY4c2Q',
10:27:09 AM worker.1 |        width: 168,
10:27:09 AM worker.1 |        height: 94
10:27:09 AM worker.1 |      },
10:27:09 AM worker.1 |      {
10:27:09 AM worker.1 |        url: 'https://i.ytimg.com/vi/Xokx96yxEws/hqdefault.jpg?sqp=-oaymwEiCMQBEG5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLCYIb4NZvs572b1WPlIt6os2I9S2g',
10:27:09 AM worker.1 |        width: 196,
10:27:09 AM worker.1 |        height: 110
10:27:09 AM worker.1 |      },
10:27:09 AM worker.1 |      {
10:27:09 AM worker.1 |        url: 'https://i.ytimg.com/vi/Xokx96yxEws/hqdefault.jpg?sqp=-oaymwEjCPYBEIoBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLAAVNbb6T2ZNKSnQGT5kIZlGdDvKQ',
10:27:09 AM worker.1 |        width: 246,
10:27:09 AM worker.1 |        height: 138
10:27:09 AM worker.1 |      },
10:27:09 AM worker.1 |      {
10:27:09 AM worker.1 |        url: 'https://i.ytimg.com/vi/Xokx96yxEws/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDsbeBO-KqcilX5vh4dWl_mMn6W8g',
10:27:09 AM worker.1 |        width: 336,
10:27:09 AM worker.1 |        height: 188
10:27:09 AM worker.1 |      },
10:27:09 AM worker.1 |      {
10:27:09 AM worker.1 |        url: 'https://i.ytimg.com/vi/Xokx96yxEws/maxresdefault.jpg',
10:27:09 AM worker.1 |        width: 1920,
10:27:09 AM worker.1 |        height: 1080
10:27:09 AM worker.1 |      }
10:27:09 AM worker.1 |    ]
10:27:09 AM worker.1 |  }```
#

and then I have to choose one

lilac wharf
#

yes.

tight plinth
#

but which one

#

the last one...

lilac wharf
#

That's your choice, those are the lists songs thumbnails.

tight plinth
#

thanks for help!

lilac wharf
#

No problem Lumap.

tight plinth
#

Duration is 3:05

pale vessel
#

make a leading 0 function

quartz kindle
#

i usually do like this:
let minutes = min < 10 ? "0"+min : min

tight plinth
#

ok

#

works!

#

thx

tight plinth
#

this is the beggining of my music function to queue songs. Everything works, except if the song is invalid (video.player_respone doesn't exist). if the song is invalid, the scrpit stops at the line 104. How can I handle invalid videos?

#

line 104 is "artist:"

#

I tried doing if (!video.player_response) return, but it says that the song has been added to the queue, but it's not

#

my bot is suposed to play the song after it's being queued, but nothing happens too

#

it doesnt even connect into the vc

pale vessel
#

does video exist?

tight plinth
#

yes

lilac wharf
#

try if (!video) return;

#

just a random thought in advance, I'm half asleep, it's 8pm

tight plinth
#

video always exist

#

the actual error is "can't read propriety videoDetails of udefined"

lilac wharf
#

hmm, are you pushing it to the server queue?

tight plinth
#

yes

lilac wharf
#

okay hmm, try this:

if (!video.player_response.videoDetails) return;```
// ignore that code, I was blind
pale vessel
#

it'll say player_response is undefined

tight plinth
#

shouldnt work

lilac wharf
#

okay uh... if it's not defined then that's something on video...

pale vessel
#

your bot worked fine before. what did you do now?

tight plinth
#

yep, dont work

#

I added song artist, song thumbnail and duration

pale vessel
#

ah

#

what's the error returned by console?

radiant parcel
#

kk thx

#

thx @lilac wharf

pale vessel
#

bruh

lilac wharf
#

huh? for what?

radiant parcel
tight plinth
#

cannot read propriety videoDetails of undefined line 104 (where I define song artist)

pale vessel
#

but it says that the song has been added to the queue, but it's not
where did you make the bot say that?

tight plinth
pale vessel
#

wtf

#

a plate of spaghetti

lilac wharf
#

Your for (const video of videos) is returning with the await queueSong, after it does that if the song is added or not the message will be edited.

#

You need to add {} around the for method and the message edit.

tight plinth
#

like for (const videos of videos) {code} ?

lilac wharf
#

yes.

#

I was going to write it out but I'm not a code feeder so I'm letting you figure it out yourself.

tight plinth
#

ok

#

apparently it doesnt help...

finite bough
copper cradle
#

what's your current code

copper cradle
#

lmao

#

what's the error

#

show the file

tight plinth
finite bough
#

LOL

copper cradle
#

player_response is undefined

tight plinth
#

yes

copper cradle
#

console.log video and see what you get

tight plinth
#

wait a sec

copper cradle
#

aight so

#
player_response: {
10:06:07 AM worker.1 |      playabilityStatus: {
10:06:07 AM worker.1 |        status: 'OK',
10:06:07 AM worker.1 |        playableInEmbed: true,
10:06:07 AM worker.1 |        liveStreamability: [Object],
10:06:07 AM worker.1 |        contextParams: 'Q0FFU0FnZ0M='
10:06:07 AM worker.1 |      },
10:06:07 AM worker.1 |      streamingData: {
10:06:07 AM worker.1 |        expiresInSeconds: '21540',
10:06:07 AM worker.1 |        adaptiveFormats: [Array],
10:06:07 AM worker.1 |        dashManifestUrl: 'https://manifest.googlevideo.com/api/manifest/dash/expire/1584371166/ei/fkFvXuaPKYuO1wKlm46gDg/ip/144.91.118.171/id/5qap5aO4i9A.0/source/yt_live_broadcast/requiressl/yes/tx/23813230/txs/23813225%2C23813226%2C23813227%2C23813228%2C23813229%2C23813230%2C23813231/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/vprv/1/pacing/0/keepalive/yes/fexp/23842630%2C23882514/itag/0/playlist_type/DVR/sparams/expire%2Cei%2Cip%2Cid%2Csourc
10:06:07 AM worker.1 |  >  e%2Crequiressl%2Ctx%2Ctxs%2Cas%2Cvprv%2Citag%2Cplaylist_type/sig/ADKhkGMwRAIgbsa-kurIT1YbLJoPvBcQfJlGDUnvUXOOSoXZmh6vQu0CIB4iEZtmThpxBLqmTQ1qWBwYlZUvCi75kt6-jruoJm_e',
10:06:07 AM worker.1 |        hlsManifestUrl: 'https://manifest.googlevideo.com/api/manifest/hls_variant/expire/1584371166/ei/fkFvXuaPKYuO1wKlm46gDg/ip/144.91.118.171/id/5qap5aO4i9A.0/source/yt_live_broadcast/requiressl/yes/tx/23813230/txs/23813225%2C23813226%2C23813227%2C23813228%2C23813229%2C23813230%2C23813231/hfr/1/maudio/1/vprv/1/go/1/keepalive/yes/fexp/23842630%2C23882514/dover/11/itag/0/playlist_type/DVR/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Ctx%2Ctxs%2Chfr%2Cmaudio%2Cvprv%2Cgo%2Citag%2Cplaylist_t
10:06:07 AM worker.1 |  >  ype/sig/ADKhkGMwRgIhALEsxe0GZGjTebYy_OnC1wFyZrJjy0cgpo_ohlBf0nq5AiEA0rBmvEp8ILmu-SZAo_ADCnI3_B6ZQaAHilsH1gPw4Fs%3D/file/index.m3u8'
10:06:07 AM worker.1 |      },
#

there's more

#

I mean

#

you should be able to access them

tight plinth
#

oops, wrong chan

#

the problem is only with playlusts

lofty hamlet
#

2 days i have this error

#

And some shards does not work

#

client n*x become ready took to long

#

Wtf

slender wagon
#
    if (message.content === '$play hot girl bummer') {
        if (message.channel.type !== 'text') return;

        const voiceChannel = message.member.voice.channel;

        if (!voiceChannel) {
            return message.reply('please join a voice channel first!');
        }

        voiceChannel.join().then(connection => {
            const stream = ytdl('https://www.youtube.com/watch?v=k-T4Odb-r5c', { filter: 'audioonly' });
            const dispatcher = connection.play(stream);
            dispatcher.on('end', () => voiceChannel.leave());
        });
    }
});```
#

i need to make my bot play music when i put a link in the command

#

this plays the song that i've already linked

tight plinth
#

$play [url]

#

const stream = ytdl(url, {filter: 'audioonly'})

slender wagon
#

thank u!!

#

how can i define url

#

sorry im so dumb

torn nebula
#

with args

tight plinth
#

args

lofty hamlet
#

2 days i have this error
And some shards does not work
client n*x become ready took to long
Wtf

tight plinth
#

@lofty hamlet no repost plz

summer torrent
#

var url = .....

#

learn basic js first

tight plinth
#

^

uncut rose
#

how to change the background img of top.gg bot page ?

zenith terrace
#

Bot gotta be certified

#

But it gotta be in here first

uncut rose
#

oh okay

restive furnace
#

@zenith terrace nope

#

css

uncut rose
#

i tried css

restive furnace
#

but you dont need to be certified

uncut rose
#

but i'm not too experimented in css so idk what class or id i should edit

summer torrent
#

Bot gotta be certified
@zenith terrace that is bot card

uncut rose
#

.page-wrapper {
background-image : url("");
}

restive furnace
#

ask then like this: "How to edit bot page with css"

uncut rose
#

oh, yes

#

my bad

zenith terrace
#

@summer torrent Oh

summer torrent
lyric mountain
#

@uncut rose the class you're looking for is shapes-background shapes-1

#

not page-wrapper

uncut rose
#
  .shapes-background {
      background-image: url("https://miro.medium.com/max/1024/1*9WeJrBj6pp-qnGjRGg2NUw.png);
  }
#

this doesn't works

#

it's a random img

slender thistle
#

FeelsQuotationMarkMissing

slender wagon
#

welp im stuck at url thing

sudden geyser
#

That's what syntax highlight is for

#

helping you find your code easier and point out mistakes!

pale vessel
#

i'm triggered

summer torrent
#

@uncut rose missing "

pale vessel
#

or remove it

uncut rose
#

still don't work

azure tinsel
#

star eval (1 + 1) = 2

uncut rose
#

maybe it just don't work in preview mode ?

azure tinsel
#

oop

summer torrent
#

try #bot-details-page

azure tinsel
#

ok cool thx

summer torrent
uncut rose
#

owo thanks

glad whale
#

Knowing such a solution for 2 days?

summer torrent
slender thistle
#

Is there difference between numpy matrices and arrays in Python?

earnest phoenix
#

tldr stop using free hosting

finite bough
#

below qt

pale vessel
#

if you want the best solution for everything, ask cri

#

he sounds harsh but it's rational

finite bough
#

@earnest phoenix how to fix this issue Error: girlfriend is not defined

slender thistle
whole hamlet
#

Anyone any ideas why this isn't working? it's puzzleing me waitwhat js if(![config.ownerID, config.validDevs].includes(msg.author.id)) return msg.react("451795217914396676")

pale vessel
#

validDevs

#

is that an array?

whole hamlet
#

Yes

#
validDevs: ["272442568275525634", "476812566530883604"],```
pale vessel
#

is that legal in js?

summer torrent
#
if(!config.validDevs.includes(msg.author.id))```
#

no

pale vessel
#

and add && config.ownerID

#

wait

summer torrent
#
if(!config.validDevs.includes(msg.author.id) || !config.ownerID.includes(msg.author.id)) return msg.react("451795217914396676")
pale vessel
#

that works too

#

nope

#

it wouldn't work

#

if the id is on config.ownerID it would still return

#

you need &&

#

so that if one of them is valid, it wouldn't return.

whole hamlet
#

So why wouldn't this work then? js if(![config.ownerID, config.validDevs].includes(msg.author.id)) return msg.react("451795217914396676")

pale vessel
#

because array in array

#

you can't use includes just like that

whole hamlet
#

Ah

pale vessel
#

so this:js if(!config.validDevs.includes(msg.author.id) && !config.ownerID.includes(msg.author.id)) return msg.react("451795217914396676")

whole hamlet
#

Yeah that seems to have worked, thank you for the assistance.

quartz kindle
#

you could do ```js
if(!config.validDevs.concat(config.ownerID).includes(msg.author.id))

#

or simply ```js
if(![...config.validDevs,config.ownerID].includes(msg.author.id))

tight plinth
earnest phoenix
#

cAnary diScOrD

#

update any packages you have

#

youtube had a change recently

#

or if you're using youtube-dl, download a newer version

pale vessel
#

ytdl-core hasn't been updated for 22 days

#

that could be the cause

tight plinth
#

apparently ytl is not the issue

#

according to his creator

#

ytpl hasent been updated since a month

zenith terrace
#

My bot plays fine

summer torrent
#

or simply ```js
if(![...config.validDevs,config.ownerID].includes(msg.author.id))

@quartz kindle what is the function of ...

earnest phoenix
#

it clones the array into the new one

mystic violet
#

Its also not searching properly

tight plinth
#

wait for an update, this is a yt issue

earnest phoenix
#

update lavalink

mystic violet
#

Ive updated it to latest

#

V3.3

earnest phoenix
#

gotta wait for an update then ig

mystic violet
#

rip

earnest phoenix
#

lavalink is trash anyways

mystic violet
#

what should I use lmao

earnest phoenix
#

i dont get why people use it over ffmpeg and youtube-dl/any other youtube scraping lib

tight plinth
#

youtube-dl is trash

#

ytdl better

mystic violet
#

^^^^^^^^^^

#

EW

slender thistle
#

I heard LL is more performant

mystic violet
#

I hope you dont mean for playing music ๐Ÿ˜‚

earnest phoenix
#

lOL

tight plinth
#

it is, but its borked

earnest phoenix
#

imagine saying lavalink is is performant

#

...it isn't

#

ffmpeg is, because it's native code

tight plinth
#

as borked as my bot

mystic violet
#

Im not sure how to use ffmpeg

slender thistle
#

Never played with YT scraping libs, don't know

mystic violet
#

any wrappers for it? (that aren't terrible)

earnest phoenix
#

you don't need a wrapper

mystic violet
#

never used it lmao ok lemme google

earnest phoenix
#

it's quite literally inputting your arguments and specifying where ffmpeg should output it

#

i use pipes

mystic violet
#

can you input a file or a link?

earnest phoenix
#

yes

#

-i <url>

#

but i don't do that since i want to buffer my content and make it seekable

#

so instead i process the file/link in my code to buffer it and then send the bytes to ffmpeg via pipes

#

-i pipe:0

mystic violet
#

so I can download a file temporarly of like the mp4

#

and play it through discord?

#

I mean you can do that with opusscript

earnest phoenix
#

well, you can't

#

opusscript is just bindings for opus

#

the whole point of using ffmpeg is to convert the input audio to a format discord accepts

mystic violet
#

ok

earnest phoenix
#

so I can download a file temporarly of like the mp4
you don't need to directly download the file

mystic violet
#

do you think rythm uses ffmpeg?

earnest phoenix
#

probably

#

or it uses lavalink

#

i don't know

mystic violet
#

lmao sry

#

Im adding ffmpeg to my path rn

earnest phoenix
#

it's going to be a bit harder to migrate to ffmpeg

mystic violet
#

Its okay, im making a huge update anyway

tight plinth
#

rythm uses LL

mystic violet
#

I just migrated to shoublahblah idk the name of it

#

it uses lavalink though

#

But Im probably gonna use ffmpeg

#

its probably faster and less resource heavy?

tight plinth
#

shoukakou

mystic violet
#

im literally trying to act smart but ive never used it lmao

#

what do you use to search?

#

youtube-search?

tight plinth
#

yt-search yes

#

and some weird stuff

#
const ytsr = (url) => new Promise((resolve, reject) => ytsearch(url, (err, r) => err ? reject(err) : resolve(r)))
#

really,really weird

mystic violet
#

Its just changed the search to a promise

#

whats weird about that lmao

tight plinth
#

the syntax

mystic violet
#

true lmao

earnest phoenix
#

<rejected> { Error: Client network socket disconnected before secure TLS connection was established
at TLSSocket.onConnectEnd (_tls_wrap.js:1095:19)

#

can anyone help me out here

tight plinth
#

code? context?

quartz kindle
#

that is usually related to outdated libraries or system

earnest phoenix
#

cause it was working 20 minutes ago my bot

#

js

solemn quartz
#

eloguyz

earnest phoenix
#

and now it is still up and running

#

but it isn't responding to commands

pale vessel
#

cry

#

nice old bot name

earnest phoenix
#

ikr

#

i kinda miss public bot deving but i kinda dont

mystic violet
#

does anyone know how to check if a string is a playlist?

pale vessel
#

ytpl?

tight plinth
#

yes

mystic violet
#

Yeah

tight plinth
pale vessel
#

cry do you still host your bot though?

plucky heart
restive furnace
#

d.js version?

#

and error?

plucky heart
#

TypeError: message.guild.channels.find is not a function

restive furnace
#

d.js ver

#

?

#

12?

#

guild.cache

#

and you need to pass a function

plucky heart
#

discord.js@12.0.2

restive furnace
#

k

#

then use guild#cache

#

and pass a function on the find.

mystic violet
#

How do you pipe with ffmpeg (youtube URL to discord)

restive furnace
#

ytdl core

mystic violet
#

no

#

like pure ffmpeg

#

no ytdl

#

thats gross

#

lmao

#

@tight plinth do you use ffmpeg?

tight plinth
#

yes

mystic violet
#

could you guide me in the right direction?

tight plinth
#

ffmpeg + ytdl-core + sodium + @cosmic surgejs/opus

earnest phoenix
#

cry do you still host your bot though?
i killed my bot ageees ago

mystic violet
#

does it need to be ytdl-core??

#

cause that shi lags like hell

tight plinth
#

no

gritty frost
#

.setAuthor(bot.username,user.avatarURL)

#

Not Showing user avatar Discord V12

tight plinth
#

nvm, we ARE in dev

#

avatarURL is now a function

#

use it like this : ```js
.avatarURL({format: 'jpg', dynamic: true, size: 2048})

#

@gritty frost

mystic violet
#
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sodium@3.0.2 install: `node install.js --install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sodium@3.0.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\jnsho\AppData\Roaming\npm-cache\_logs\2020-03-16T15_22_12_828Z-debug.log``` (sorry for the random error)
finite bough
#

@gritty frost that comma

tight plinth
#

try libsodium

#

excactly the same, but should work

gritty frost
#

Hydrahttps://cdn.discordapp.com/avatars/547905866255433758/6db57ae216790490f53cbd9e2a49d486.png?size=2048
@tight plinth

#

that error

#

no show it

tight plinth
#

erm, yes?

finite bough
#

@gritty frost u wrote a comma

#

username,user

mystic violet
#

it worked! ๐Ÿ™‚

tight plinth
#

I should add author to all my embeds lol

finite bough
#

gl with that lmao

gritty frost
#

@finite bough m

#

ok

finite bough
#

@gritty frost n

pale vessel
#

@earnest phoenix that's actually sad. i was about to add your bot to my server to test but it was private. you seemed very enthusiastic about bot-developing so that was unexpected. at least the patreon is still there.

unique nimbus
#

what

#

You don't need a public bot to know how to program bots

pale vessel
#

ik

#

but

#

coding to yourself isn't as fun than letting people use your work

slender thistle
#

Depends

unique nimbus
#

I mean I don't like people spamming me asking how X works

#

because they don't read the error

slender thistle
#

if you make it obvious enough then yeah

#

otherwise it'll just get annoying

broken jay
#

What is best compiled language for discord bot that have command handler in-built library?

vestal star
#

Would making a bot that track discord invite links (scan messages for the link) be too weird?

cerulean pebble
#

help

#

why me bot can not run on heroku

#

depite it can run on PC

earnest phoenix
#

stop using free hosting

cerulean pebble
#

lol

#

i do not have money

earnest phoenix
#

then get some

cerulean pebble
#

i have 2 bot

#

1 can run 24/7

earnest phoenix
#

a vps is like

cerulean pebble
#

but 1 is always get error

earnest phoenix
#

3 bucks a month

#

discord started banning heroku and glitch ips

cerulean pebble
#

she stop here

#

@earnest phoenix

#

hmm why

#

what should i do

earnest phoenix
#

get a proper vps

cerulean pebble
#

i do not have money

earnest phoenix
#

ok

cerulean pebble
#

do aws connect with github ?

native thunder
#

got error
Error: Something took too long to do.

I cant run it from vps and from local machine..
Didn't found real solution in history here.
Who could explain what is going on?

earnest phoenix
#

where are you hosting your bot

native thunder
#

vps

earnest phoenix
#

yes but what provider

cerulean pebble
#

@native thunder yes

#

i same on you

native thunder
frosty sierra
#

how do i make a command without the bot having to tag you?

cerulean pebble
#

i try to use aws

earnest phoenix
#

if it's happening locally too it must be your code

#

otherwise

frosty sierra
#

im using node.js

earnest phoenix
#

discord probably flagged that providers ip too

native thunder
#

No, it was working properly till todays night

#

without any changes

earnest phoenix
#

then it's discord banning the ip

#

contact your provider for an ip change

shy turret
#

I can't find a way to add a json styled req.body in my code

app.post("/", (req, res) => {
  console.log(req.body)
  res.send(req.body)
});
<html>
  <body>
    <form action="/" method="post">
      <div>
        <label for="username">Username</label>
        <input type="text" id="name" name="username" aria-describedby="username" placeholder="Enter Username">
      </div>
      <input type="submit" name="submit" value="Login">
    </form>
  </body>
</html>
app.use(express.json({
  inflate: true,
  limit: '100kb',
  reviver: null,
  strict: true,
  type: 'application/json',
  verify: undefined
}))
pale vessel
#

console.log req and see

#

de-fricking-bug

native thunder
#

@earnest phoenix but i cant run it from my local machine also

pale vessel
#

then it's your code

native thunder
#

mine?
I didn't changed anything for 2 weeks.
And it was working properly.
Right now it just doesn't go to "ready" state

cerulean pebble
#

my bot is 85000+ users

#

but my 500+ users can run

earnest phoenix
#

@shy turret you can't send JSON data via a html form raw

cerulean pebble
#

so i think =))

earnest phoenix
#

you have to use js to make a request

earnest phoenix
#

you don't need jquery

#

you can use XMLHttpRequest

native thunder
#

@earnest phoenix do you have any ideas about my issue?
It shouldn't be any provider ip issues , as i can't run it from my machine.

earnest phoenix
#

your ip on your local machine might be flagged too

cerulean pebble
#

@earnest phoenix about my fucking problem

#

heroku is deny loli girl =))

earnest phoenix
#

wat

modest maple
#

never say that

cerulean pebble
#

=)))

earnest phoenix
#

there's a low chance that it actually is, but if the issue persits it's your code @native thunder

native thunder
#

ok. but what should i do?
how to unflag it?

shy turret
#

worked now gotta find a way to get back data

native thunder
#

It cant be my code - as code wasnt changed for 2 weeks and worked properly.

#

It cant be my code - as code wasnt changed for 2 weeks and worked properly.

pale vessel
#

can't you request for a new ip?

earnest phoenix
#

i guess the only thing you can do is contact discord and let them know about your issue

#

that only works with providers which allow dynamic ips

#

many don't and make you pay for it instead

finite bough
#

cant it be stringified?

native thunder
#

Bot started(become online)
client.on("guildDelete", guild => {

but doesn't reach
client.on("ready", () => {
State

pale vessel
#

wat

finite bough
#

wat

earnest phoenix
#

it seems that covid-19 is also lowering iq

mystic violet
earnest phoenix
#

what

mystic violet
#

the event

earnest phoenix
#

once a stream is started, it's started and it's... there, it doesn't end unless you terminate the connection

mystic violet
#

how do I check when the song ends?

cerulean pebble
#

lol

#

no one care

unique nimbus
#

what

cerulean pebble
#

i mean no one care me

pale vessel
#

when it starts

finite bough
#

see the duration

pale vessel
#

the previous one ends

mystic violet
#

well some are livestreams so I guess when duration = 0 then dont end?

finite bough
#

@earnest phoenix > it seems that covid-19 is also lowering iq
100% true

cerulean pebble
#

why

finite bough
#

yes @mystic violet

mystic violet
#

How would I make a skip command then? because if it goes on duration im so confused lmao

finite bough
#

@cerulean pebble did u try checking console logs?

cerulean pebble
#

100%

#

i think 85000 users is problem

#

but

earnest phoenix
gritty frost
#

[Support Server](`https://discord.gg/${bot.support}`) how write this correctly

earnest phoenix
#

i'm not a hundred percent sure if it actually is, test for it

cerulean pebble
earnest phoenix
#

you're using the wrong quotations @gritty frost

gritty frost
#

yes

earnest phoenix
#

well

gritty frost
#

pls

cerulean pebble
#

@finite bough

earnest phoenix
#

nevermind i just saw that it's a variable

#

you aren't

#

what's the issue?

gritty frost
#

resolve

#

pls

cerulean pebble
#

@finite bough can wait 9 hours and restart

earnest phoenix
#

but what is your

finite bough
#

@cerulean pebble any errors?

earnest phoenix
#

fucking issue

mystic violet
#

lmao cry

sturdy hamlet
#

Could anyone help me with a "Something took too long to do" Websocket connection error?

cerulean pebble
#

no

#

just 85 000 users make it down

earnest phoenix
#

your ip got flagged; stop using free hosting

cerulean pebble
#

i think

#

@earnest phoenix what do you mean ?

#

why ?

finite bough
#

@sturdy hamlet error pls

gritty frost
#

@earnest phoenix you know how to write it correctly

mystic violet
#

bruh why dont they just have an end event like v11

earnest phoenix
#

@cerulean pebble discord is banning heroku and glitch ips, i already told you

cerulean pebble
#

@earnest phoenix i do not think

#

beacause

earnest phoenix
#

@gritty frost ???? what's your issue in the first place

cerulean pebble
#

other bot is running

earnest phoenix
#

it doesn't mean that they have the same ip

modest maple
#

HEROKU AND GLITCH HAVE MORE THAN ONE IP

finite bough
#

@cerulean pebble users r irreverent unless u r using any high dbs

sturdy hamlet
#

I'm literally hosting from my rasperry pi

cerulean pebble
#

@earnest phoenix why they ban my ip ? i do notthing wrong

earnest phoenix
#

it's not your ip

gritty frost
#

[Support Server](`https://discord.gg/${bot.support}`)
how write this correctly @earnest phoenix

earnest phoenix
#

BUT

cerulean pebble
#

@modest maple oke what should i do to restart my enormuos bot

earnest phoenix
#

WHAT IS YOUR FUCKING ISSUE

#

HOLY FUCK

modest maple
#

this is the most aids development chat ever

native thunder
#

I use paid and known hosting..
It doesnt become "ready"(no logs from it appears)

finite bough
#

@native thunder name?

cerulean pebble
#

@earnest phoenix my bot is running and it suddenly off

native thunder
#

@earnest phoenix i suppose, same as i have ๐Ÿ™‚

cerulean pebble
#

no any fucking error

native thunder
#

@finite bough name of what? Bot?

earnest phoenix
#

i wasn't referring to you, i was referring to blackcat

gritty frost
#

@earnest phoenix quotations

finite bough
#

@cerulean pebble did u update the discord.js

earnest phoenix
#

what about them???

finite bough
#

@native thunder host

native thunder
#

ahah.. so mach spam ๐Ÿ™‚

sturdy hamlet
#

@finite bough Error is the timeout error off of the Websocket Connection method "Something took too long to do" Error message

finite bough
#

@sturdy hamlet full error

native thunder
#

@finite bough nazwa.pl
should i move to v12?

cerulean pebble
#

@cerulean pebble what

finite bough
#

@native thunder no u have to change ur code then

cerulean pebble
#

no

finite bough
#

try moving onto another project if possible and try there

eternal ermine
#

When using a DBL module as Python, what should be added to the main code? It's hard to understand in a document.

sturdy hamlet
#

That's the full error lmao. Running on discord.js 11.6.2- here, this is the full path of the error if you want

modest maple
#

@eternal ermine its setup to be added as a cog

finite bough
#

@sturdy hamlet a screen shot of the error pls

sturdy hamlet
#
Error: Something took too long to do.
    at C:\Users\raphael\Documents\Work\Den-Bot\node_modules\discord.js\src\client\ClientManager.js:40:57
    at Timeout._onTimeout (C:\Users\raphael\Documents\Work\Den-Bot\node_modules\discord.js\src\client\Client.js:436:7)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)
cerulean pebble
#

ยป I'm running Discord.js version 11.5.1.

modest maple
#

@sturdy hamlet make sure you havent got blocking code

pale vessel
#

@gritty frost remove `

#

please

finite bough
#

guys is there an issue with time outs?

#

coz

pale vessel
#

no

finite bough
#

almost 80% of the people r here with time outbiasues

unique nimbus
#

Discord is dying

gritty frost
#

@pale vessel what

pale vessel
#

discord has covid so yeah

#

YOU said

#

how to do it correctly

modest maple
#

this is the only discord chat that i ever go to trying to help people and actually get dumber the longer i watch

earnest phoenix
#

discord is flagging ips, chances are they flagged some ISP ips because sometimes it doesn't work locally. it's most likely the result of your ISP being shit and scamming you

mystic violet
#

ytdl keeps skipping back its so annoying lmaoo

gritty frost
sturdy hamlet
#

It's just weird- started on the weekend, initially thought my rpi was dying as my bot hit 1500+ servers, but I can't get it to run on anything, not just my rpi

pale vessel
#

@gritty frost ```js
[Support Server](https://discord.gg/${bot.support})

earnest phoenix
#

the bot went down?

finite bough
#

@mystic violet it does not unless u r song smthing wrong

#

@earnest phoenix ?

gritty frost
#

@pale vessel I fix it Thanks

earnest phoenix
#

invitemanager went down

#

sad

pale vessel
#

fucking markdown

finite bough
#

wrong server @earnest phoenix

pale vessel
#

holy shit

earnest phoenix
#

schools being cancelled in most regions means we get a huge influence of stupidity

gritty frost
pale vessel
#

this is the result

earnest phoenix
#

fun

finite bough
#

@earnest phoenix bro u r hilarious xD

pale vessel
#

sometimes

earnest phoenix
#

i'm honestly just being realistic

sturdy hamlet
#

So Discord is dying then?