#development

1 messages ยท Page 959 of 1

regal saddle
#

Hes arabic

gentle gazelle
#

im kurdish

regal saddle
#

well

lyric mountain
#

So he can read

quartz kindle
#

so he can read

#

lmao

earnest phoenix
#

lol

gentle gazelle
#

color help

regal saddle
#

busted on a other level ๐Ÿ˜„

quartz kindle
#

dude...

regal saddle
#

:DDDDDD

lyric mountain
#

@slender thistle

earnest phoenix
#

initiate mod alert

gentle gazelle
#

help๐Ÿฅบ

regal saddle
quartz kindle
regal saddle
earnest phoenix
#

also we use client.executeWebhook() to send something to a webhook right?

lyric mountain
#

I don't think color bots will work here tho

quartz kindle
#

idk, if it says so in the docs then yes

fiery stream
#

hey

earnest phoenix
#

also does the bot needs to be in the server that has the webhook in in order to execute it?

pine bear
#

If I uninstall discord, will my bot go offline?

earnest phoenix
#

@pine bear no

pine bear
#

oh ok, thx

fiery stream
#

anybody know of a good package that tells os type arch n stuff

#

for python**

quartz kindle
#

@earnest phoenix no

fiery stream
#

by package i mean module

quartz kindle
#

but the server needs to have the webhook enabled

fiery stream
#

if its possible easily by default can you tell me how

lyric mountain
#

@fiery stream doesn't the os package do that?

earnest phoenix
#

hmm then im gonna try and see where i did wrong because the message just wont send

fiery stream
#

i dont think its for that

#

its for navigation in system

#

like path n stuff

#

i just looked at it

lyric mountain
#

Maybe sys?

fiery stream
#

lemme see that

lyric mountain
#

Idk, probably there's a vanilla python for that

fiery stream
#

idk thats why im asking someone

lyric mountain
#

Yep, it's os lib

proven lantern
#

what permissions do i need for overwriting a channel's permission?

                        CONNECT: false,
                        VIEW_CHANNEL: false,
                        SPEAK: false,
                    })```
```>  { DiscordAPIError: Missing Permissions
>      at item.request.gen.end (C:\Users\Tower\IdeaProjects\team-up-server\functions\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:85:15)
>      at then (C:\Users\Tower\IdeaProjects\team-up-server\functions\node_modules\snekfetch\src\index.js:215:21)
>      at process._tickCallback (internal/process/next_tick.js:68:7)
>    name: 'DiscordAPIError',
>    message: 'Missing Permissions',
>    path:
>     '/api/v7/channels/718253562836287548/permissions/89607284866428928',
>    code: 50013,
>    method: 'PUT' }
fiery stream
#

thx for that effort

proven lantern
lyric mountain
#

what permissions do i need for overwriting a channel's permission?

                        CONNECT: false,
                        VIEW_CHANNEL: false,
                        SPEAK: false,
                    })```
```>  { DiscordAPIError: Missing Permissions

@proven lantern manage_roles I think

proven lantern
#

@lyric mountain thanks, let me test that out

lyric mountain
#

It could also be manage_channels together with that one

proven lantern
#

the manage roles did the trick

#

@lyric mountain thanks

lyric mountain
proven lantern
#

is it possible to update my bots permission on https://top.gg/bot ? my bot is currently awaiting approval

#

i guess i could just delete it and make a new submission

lyric mountain
#

Just change the invite url

#

But note that your bot will first be tested with 0 permissions, so remember to set error messages

fiery stream
#

ayyy

proven lantern
#

@lyric mountain good to know

fiery stream
#

i need a help so when i do print(platform.architecture())

#

it returns this

#

('64bit', 'WindowsPE')

#

how do i get 64bit only

#

i tried this print(platform.architecture(1))

#

and it gave me this ('64bit', '')

lyric mountain
#

Use []

fiery stream
#

print(platform.architecture[])?

#

like that>

lyric mountain
#

[0] will get the first index

fiery stream
#

with 1 in it

#

ohk thx

#

didnt work @lyric mountain

#

its python btw

#

ik it works like that in javascript

lyric mountain
#

Ik

#

[] is still the way to access arrays

#

In any lang

fiery stream
#

it didnt work here tho

lyric mountain
#

Is that an array?

fiery stream
#

this is what i evaluated

#

print(platform.architecture[0])

lyric mountain
#

If so, do this:

fiery stream
#

('64bit', '')its that i dont think thats array

lyric mountain
#

bit, arch = platform.architeture

#

If it's an array this should unwrap them in those vars

fiery stream
#

i dont think ats an array tho

lyric mountain
#

Try the above

#

If it doesn't work we'll try other things

fiery stream
#
Out[12]: AttributeError: module 'platform' has no attribute 'architeture'```
#

i dont think that seems to work

lyric mountain
#

Wut

#

Why does it say it's invalid now?

#

The print worked

fiery stream
#

uh no idea

#

maybe ()

lyric mountain
#

Ah

#

It's a tuple

fiery stream
#
Out[14]: AttributeError: module 'platform' has no attribute 'architeture'```
#

whats tuple?

#

im new to py btw

lyric mountain
#

Try bit, arch = platform.architeture()

fiery stream
#

not that new but new

#

didnt i just try that ^^^

lyric mountain
#

Hn

#

Ah

#

Missin C

#

platform.architecture()

fiery stream
#

wait what

lyric mountain
#

There's a C before "ture"

fiery stream
#

it worked

#

thats weird tho

#

is there a way i can make it print within one line

#

like print(platform.architecture())

#

that hurts my ocd

lyric mountain
#

print(arch, bit)

#

Will print "Windows 10 64bit"

fiery stream
#

not really eh

#

windowsPE 64bit

#

thats what it ill print

lyric mountain
#

Yeah that

#

But you get it

fiery stream
#

wait u didnt answer my thing

#

can i do it without the bit, arch thing

#

so am i

lyric mountain
#

can i do it without the bit, arch thing
@fiery stream that bit, arch thing is the unwrapping of the array

fiery stream
#

but it hurts my ocd

lyric mountain
#

You can just to platform.architecture()[0]

fiery stream
#

lemme see if that owkr

lyric mountain
#

But get used to that unwrapping

#

It's very convenient to split arrays like that

fiery stream
#

okay thx very much

lyric mountain
#

Better than ```py
bit = platform.architecture()[0]
arch = platform.architecture()[1]

fiery stream
#

i like it this way

#

its easier to understand for me

lyric mountain
#

Up to you

indigo flax
#

can someone give me the eval script for discord.js 11.5.1

lyric mountain
#

No

#

And update to v12

indigo flax
#

.

fiery stream
#

ayyy btw

#

by default are embed inlined?

tired nimbus
#

if you were to access a property of an object based on an user's id would object[message.author.id] do it?

lyric mountain
#

by default are embed inlined?
@fiery stream you can pass a boolean to the field

tired nimbus
#

ok I tested it is true

fiery stream
#

ik i can but

#

by defualt are the inlined or not?

boreal ore
#

not by default, i dont believe

lyric mountain
#

Idk, best I can say is try it and see

#

It depends in the lib

boreal ore
#

^

fiery stream
#

ohk

proven lantern
#
    CONNECT: true,
    VIEW_CHANNEL: true,
    SPEAK: true,
})```
I am getting a `DiscordAPIError: Missing Access` error when running this code. The issue happens when the `msg.author` is connected to a different guild than the `channel` is in.
fiery stream
#

it was well worth it tho

proven lantern
#

is there a way to give a user permission to a channel in a guild that they are not in?

river terrace
#

nope

#

they must be in that guild

#

no idea homie

#

anyone know how to make message.member.role.highest tag the actual role instead of displaying the ID

#

if u do @ me

earnest phoenix
#

mention property or <@&id>

river terrace
#

ok let me show u my code tho

#
            .setThumbnail(member.user.avatarURL({ format: "png", dynamic: true, size: 128 }))
            .setColor(color)
            .setTitle(member.user.tag)
            .setDescription(member.user.toString())
            
            .addField("Member User Info", `**Username** ${username}` +
            `\n**ID** ${member.user.id}` +
            `\n**Status** ${member.presence.status}`, true)

            .addField("Server User Info", "**Created** " + created.toString().toLowerCase() + "\n" + 
                "**Joined** " + joined.toString().toLowerCase() + "\n" + 
                "**Highest Role** " + message.member.roles.highest, true)```
#

at the bottom

earnest phoenix
#

...ok?

river terrace
#

how do i make that display the role and tag it

#

instead of the ID

earnest phoenix
#

i told you

river terrace
#

can u copy and paste that and then edit it

#

?

earnest phoenix
#

no

river terrace
#

i dont understand what u mean

#

i dont get it

#

where the hell do i put it

#

what u said makes no sense

river terrace
#

k

#

i found nothing

#

litterally nothing

#

all it shows me is some stupid bs about showing ALL the roles of a user

#

thats not what i want

#

@earnest phoenix

earnest phoenix
#

oh wow d.js doesn't have a mention property on the role

#

just send <@&role id> instead

amber fractal
#

It has .toString()

#

Turns it into a mention

river terrace
#

ok so i do <@message.member.roles.highest>?

#

Steven

#

thats what i want

#

but

#

where do i put that

lyric mountain
river terrace
#

no

#

not id

#

i want it to mention the role

amber fractal
#

After highest because that returns the role, but if you're surrounding it in <@&> just use the id

river terrace
#

ok so i think i get what ur saying

#

message.member.roles.highest.toString()

#

like that right

amber fractal
#

Yep

river terrace
#

ok tysm

fallow steppe
#

Anything I should be writing in the discord bot's folders to be hosted in uptime robot? I spefify the live app link ( in glitch ), does not work with a specific project but does with others. Is there somethkng I may write innthe bot's project files? ( if this is the correct channel for it )

lyric mountain
#

You what?

dawn trout
#

How to make bots?

lyric mountain
#

@dawn trout read rule 2

#

No, wait

#

What rule was it?

dawn trout
#

Idk

#

Imma make a own bot

lyric mountain
#

@modern sable gimme a hand here

#

Use the "how to make bots" command

modern sable
#

-faq 3 -c

gilded plankBOT
lyric mountain
#

Thx

modern sable
#

(thats not a rule btw)

lyric mountain
#

Ah, faq, I'll try to remember that one

dawn trout
#

Ohh

fiery stream
#

hey

proven lantern
#

can a guild invite give permission to a channel

    CONNECT: true,
    VIEW_CHANNEL: true,
    SPEAK: true,
})```
I am getting a `DiscordAPIError: Missing Access` error when running this code. The issue happens when the `msg.author` is connected to a different guild than the `channel` is in.

@proven lantern I was able to fix this by giving the bot admin permission. i tried checking all the permissions besides admin and that doesn't work

lyric mountain
#

Errrr

#

Admin is never required

#

There's always a way around

proven lantern
#

maybe i need to add scopes?

misty sigil
#

yes, bot scope

dawn trout
#

Guys

proven lantern
#

that's the only scope i have

misty sigil
#

hmm.

valid frigate
#

bruh

misty sigil
#

yes pisces

dawn trout
#

I saw a app like Discrod.js or Pythin

#

its code

#

not free

lyric mountain
#

Well obviously

dawn trout
#

bot

misty sigil
#

discord.js is free tho

dawn trout
#

But need download

lyric mountain
#

It's only free if you make a bot yourself

dawn trout
#

My pc having a problem

misty sigil
#

^ and host it

dawn trout
#

can you teach me

#

what to put in first

misty sigil
#

google should work

lyric mountain
#

There are lots of tutorials out there

misty sigil
#

combine that with the documentation

#
lyric mountain
#

Is there any language you have experienced with?

misty sigil
#

only language im really experienced in is scratch skull

topaz fjord
#

scratch isn't a language mmLol

misty sigil
lyric mountain
#

Have you checked channel perms?

#

Because admin bypasses them all

#

While the others don't

proven lantern
#

i have these checked

lyric mountain
#

I mean channel perms

#

The ones that you define within a channel

proven lantern
#

i create the channel like this, msg.guild.createChannel and use that channel

lyric mountain
#

Idk then

misty sigil
#

how to obtain battery percentage via nodejs

proven lantern
cunning gorge
#

How do you add markdown text in html

#

for the long description

lyric mountain
#

how to obtain battery percentage via nodejs
@misty sigil why would it have a battery percentage?

misty sigil
#

dont ๐Ÿ‘ even ๐Ÿ‘ ask

hardy vector
#

whats heart beat ping

lyric mountain
#

How many milliseconds have passed since last heartbeat

misty sigil
#

computers dont have heartbeats

lyric mountain
#

Servers do actually

earnest phoenix
#

websockets do*

misty sigil
#

oh, they do

#

thats cool

dawn trout
#

Pls tell me

lyric mountain
#

Tell what?

#

How to make a bot?

#

Do you know any programming language?

wanton nova
#

do bots actually have a server creation limit?

lyric mountain
#

10 servers

wanton nova
#

ah

lyric mountain
#

Only if your bot isn't in 10+ servers

wanton nova
#

makes sense

earnest phoenix
#

How do i make a random number generator with math.random?

strong tundra
#

Math.Random() * x

uncut iron
#

anyone got any idea what Unexpected end of input means

earnest phoenix
#

Means your end of input is unexpected. Your end of input could be a } or ) or etc.

#

Is anyone here familiar with the Tiktok API?

#

tiktok doesnt have an api

#

their endpoints are complicated asf and authorization is a bitch

raven nova
#

Hi, I'd like to ask for advice. I have developed a bot for production. For develpment purpose I also cloned a testing bot. Now I want to make it join top.gg, should I add both production and testing bot to top.gg?

earnest phoenix
#

What about this then?

#

you can make the servers believe you call them from the app but if you fuck up one thing ur acc is bonked

#

which tiktok scraper does

raven nova
#

If shouldn't, how can I test my code about communication with top.gg?

earnest phoenix
#

Alright thanks

fiery stream
#

ayy

#

can anyone suggest me how my error embed should look like

#

please

earnest phoenix
#

color: #FF0000, title: type of error, author: user who requested the command that returned the error, footer: statistics for nerds, description: what exactly fucked up, field #1: the error

#

@fiery stream

fiery stream
#

k thx

#

that kinda seems hard

#

splitng the type of error

earnest phoenix
#

if you dont manage to do it just let it say โ€žerrorโ€œ

fiery stream
#

k ill try too

grizzled raven
#

array of strings, including ๐Ÿ—‘๏ธ, doesnt include ๐Ÿ—‘๏ธ

#

but ๐Ÿ—‘๏ธ === ๐Ÿ—‘๏ธ

#

oh wait nvm seems to be two different types of the emoji

#

huh

fiery stream
#

ayy how is timestamp done

#

in python

earnest phoenix
#

Users : 10 <= how to get only 10 ?

fiery stream
#

wdym

#

python or js

proven lantern
#

when a user joins the server i am trying to give them permission to join a channel. channel.overwritePermissions is giving me permission issues.

fiery stream
#

wow that code

earnest phoenix
#

I try to make it so that in a message that my bot sends, of the style Number of users: 26 (this is an example) that its retrieves only the number that there is in the message

fiery stream
#

it makes a perfect 90* triangle

proven lantern
#

i will organize it once it works

fiery stream
#

this is the most organized code i have seen lmao

earnest phoenix
#

so @fiery stream ?

fiery stream
#

wait what

earnest phoenix
#

I try to make it so that in a message that my bot sends, of the style Number of users: 26 (this is an example) that its retrieves only the number that there is in the message

fiery stream
#

bruh you copied same thing

earnest phoenix
#

yes

#

u donโ€™t understand ?

fiery stream
#

explain it bet

earnest phoenix
#

Ok

grizzled raven
fiery stream
#

better

small prairie
#

Lmao

#

@earnest phoenix get the message parseInt the content with no optional settings it will just get the number back

earnest phoenix
#

Example : My bot send a sentence : There are 360 โ€‹โ€‹users on your server.

I want to get only the number in this sentence (so 360), but how

small prairie
#

get the message parseInt the content with no optional settings it will just get the number back

earnest phoenix
#

Ok thx

proven lantern
earnest phoenix
#

Can u give me a example ? @small prairie

proven lantern
#

"There are 360 users on your server.".split(" ").reduce((acc, val)=>parseInt(val) ? val : acc)

#

there you go @earnest phoenix

earnest phoenix
#

thx

proven lantern
#

you should always write your code on one line

fiery stream
proven lantern
#

this is when i create the invite to the channel and save the userId to channelId mapping

turbid bough
#

Role hierarchy on the bot?

proven lantern
#

no roles

turbid bough
#

Your bot has a role when you invite it

proven lantern
#

i gave the bot all permissions in the image above

#

everything besides admin

#

it works when it has admin permission though

turbid bough
#

I dont think you can set channel overrides when the bot role is lower than the target role in the roles hiarchy

#

Nvm u setting channel overrides for user

#

Can you even set channel overrides to a person that is on a higher role level

#

Have you tried it on a normal member?

proven lantern
#

i have a test account that i am using with this

#

i kick out the test account and then give it an invite. my test account has no special permissions

#

but i am using my admin account to create the channel

#

let me try with two test accounts

turbid bough
#

Could it be a channel permission that prevents it?

small prairie
#

i think meme perms over ride any other role perms

#

member*

proven lantern
#

i create it with these permission overwrites

turbid bough
#

The bot cant see the channel.

#

You denied it for everyone

proven lantern
#

oh

#

so i should give the bot a static role and add it to all the private rooms i create

turbid bough
#

Or give the bot the member role

proven lantern
#

oh, even better

#

let me try that out

sudden geyser
#

Off-topic tip, but you can get the everyone role by the guild ID since they're the same.

turbid bough
#

Oh yeah, I saw that it was overriding per user. So yeah you could just add the bot to the override

#

I thought it was a role named member

proven lantern
#

that fixed the issue

#

@turbid bough thanks

turbid bough
#

:+1:

earnest phoenix
#

After a few hours of my bot being active it goes offline with this error

#

Someone help

proven lantern
#

looks like a certificate issue maybe

#

oh, nm

#

does your hosting put instances to sleep after idling for some time?

#

i think glitch hosting does that

cosmic girder
fast trench
#

why wouldn't this recognize the oldMessage part if it was a message sent before the bot was started?? js client.on('messageUpdate', async (oldMessage, newMessage) => { const definedGuild = await StateManager.connection.query(`SELECT * FROM guildconfigurable WHERE guildID = ${oldMessage.guild.id}`) const definedPrefix = definedGuild[0][0].prefix // if (oldMessage.author.id === `703091048100003891`) return; const updateLog = client.channels.cache.find(dl => dl.id === `708519292907290684`) if (oldMessage.guild.id === `708514630204522574`) { console.log(deleteLog.name); const embed = new MessageEmbed() .setTitle(`Message Deleted`) .addField(`Old Message:`, oldMessage.content, true) .addField(`New Message:`, newMessage.content, true) .addField(`Message Channel Name:`, oldMessage.channel.name, true) .addField(`Message Channel ID:`, oldMessage.channel.id, true) .addField(`Message Author tag:`, oldMessage.author.tag, true) .addField(`Message Author ID:`, oldMessage.author.id, true) .setThumbnail(oldMessage.author.displayAvatarURL()) .setFooter(process.env.FOOTER) updateLog.send(embed) } });

proven lantern
#

what error is happening?

#

oldMessage == undefined?

fast trench
#

(node:29800) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'tag' of null

#

but if I update a message after I restart the bot it works just fine...

proven lantern
#

oldMessage.author must be null for some reason

#

but oldMessage.channel.id is not null

fast trench
#

let me try newMessage.author

earnest phoenix
#

the message isn't in cache

#

you need to fetch it

fast trench
#

I have partials set though?

#

I thought that would solve it

earnest phoenix
#

uh

#

no

#

the point of partials is so you can get uncached data

fast trench
#

which the oldMessage.author would be wouldn't it?

earnest phoenix
#

correct

#

so you need to fetch it in order to get the data that's missing

proven lantern
#

is it possible to create an invite to a guild that doesn't go to a channel? like guild.createInvite() instead of channel.crateInvite()

earnest phoenix
#

no

proven lantern
#

shucks

fast trench
#

somebody helped me get it ๐Ÿ˜ I just had to fetch like you said. Thanks guys

proven lantern
#

my invite is sending the user to a channel they dont have permission for initially. the guildMemberAdd listens for them to join and then gives them permission to join the channel, but they are in a bugged out state because they are already in the channel. they have to join a different channel and then join the channel again to get out of the bugged out state

#

should i just look for a public channel and give them an invite to that channel?

#

then move them to the private channel after they have joined

earnest phoenix
#

does your hosting put instances to sleep after idling for some time?
@proven lantern na as i host a game server on it as well. and itโ€™s a VPS

turbid bough
#

That's how any normal invite works

#

You invite someone to a channel

#

You cant have a server with 0 channels to view

#

Or shouldn't.

#

Dont you have an announcement channel you could use instead?

proven lantern
#

@turbid bough this bot will be in guilds that i dont own so there might not be a public channel, but i think i can just make that a requirement for people

fiery stream
#

Ayy is it possible for py bot to not create py cache

turbid bough
#

You could try searching for existing invities

proven lantern
#

i'm thinking about iterating over the guild.channel and finding a channel with @everyone permissions

#

invite them to the public channel. they join and then my bot gives them permission and then moves them

cosmic girder
#

Help

proven lantern
#

is there more code to see?

cosmic girder
pale vessel
#

have you tried scrolling down on that channel

cosmic girder
#

No y

pale vessel
#

try doing that and read what it says

cosmic girder
#

Oh ok examples

#

Are old I knew tht

#

I was just u know trying them

dawn trout
#

Guys

#

How to start code a bot

pale vessel
dawn trout
#

What will i put at the first

cosmic girder
#

Oh it worked

fiery stream
#

hey

#

how do i get weebsh token

pale vessel
#

email them

fiery stream
#

uh

#

is it instant?

pale vessel
#

no

fiery stream
#

freak

#

okay thx

dawn trout
#

Hey

#

What is the first part before make a bot

fiery stream
#

learn coding

pale vessel
#

learn a programming language

earnest phoenix
#

i want to make a ticket command

pale vessel
#

read docs

cosmic girder
#

@pale vessel y aren't u a mod my guy

pale vessel
#

no

#

i didn't apply

cosmic girder
#

Oh tuff

boreal ore
#

pretty much if you read docs you'll find it instantly, horror

cosmic girder
#

Docs be confusing sometimes

#

To me anyways

earnest phoenix
#

discord.js docs are good

pale vessel
#

both are easy to navigate if you're used to them

earnest phoenix
#

bruh

#

the docs are not helping

pale vessel
#

they should be

earnest phoenix
#

no

#

confusing asf

dawn trout
#

Hey what is this ```CSS
const express = require('express');
const app = express();
const port = 3000;

app.get('/', (req, res) => res.send('Hello World!'));

app.listen(port, () => console.log(Example app listening at http://localhost:${port}));

#

Guys

#

What this

#
const express = require('express');
const app = express();
const port = 3000;

app.get('/', (req, res) => res.send('Hello World!'));

app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`));
earnest phoenix
#

that is an example app

dawn trout
#

What do i put

earnest phoenix
#

you just run the js file with node

#

and it creates a webserver

#

on port 3000

dawn trout
#

i dont do at node

earnest phoenix
#

so if you go to localhost:3000 in your web browser you should see the message defined above

dawn trout
#

i do at

earnest phoenix
dawn trout
#

Ok

#

so what will i put first

#

Im Newbie

earnest phoenix
#

you can put whatever code you want in there and repl.it will run it

dawn trout
#

I mean

earnest phoenix
#

you can make a bot application

dawn trout
#

I am new

earnest phoenix
#

you can make a webserver

dawn trout
#

i dont know

#

How to code

#

i come here to learn

boreal ore
#

I recommend going to read/watch tutorials prior

earnest phoenix
#

^

dawn trout
#

Can you tell me

pale vessel
#

no

dawn trout
#

Why you so mean

earnest phoenix
#

no

boreal ore
#

Because people don't have the time or patience to sit here and spoon feed, it's not as simple as just "telling you". Go watch/read tutorials and you'll gain a deeper understanding easier.

dawn trout
#

Watch/Read where

boreal ore
#

YouTube, google some shit. Idk, it's been years since I went looking for tutorials

proven lantern
#

is there an event that is triggered when a user connects to a voice channel or reconnects to a guild(not just the initial connect)?

pale vessel
#

reconnects to a guild(not just the initial connect)?
?

proven lantern
#

when they click the guild from the guild list on the left side

boreal ore
#

huh

proven lantern
pale vessel
#

the vc is still connected if you open other guilds

fiery stream
#

ayy

proven lantern
#

is there a guild focus type of event

fiery stream
#

how do you check if text exists

#

in python

#
        if (!word)``` i got that of now i thought it worked just like js
earnest phoenix
#

AttributeError: 'Bot' object has no attribute 'is_voice_connected'

#

how do i fix this?

proven lantern
#

voiceStateUpdate should work for when a user connect to a voice channel

earnest phoenix
#

where would i put that

#
async def play(ctx, url):
    if not bot.is_voice_connected(ctx.message.server):
        voice = await bot.join_voice_channel(ctx.message.author.voice_channel)
    else:
        voice = bot.voice_bot_in(ctx.message.server)

    player = await voice.create_ytdl_player(url, after=toggle_next)
    await songs.put(player)```
#

this is where im getting the error

#
              .addField(":hypesquad: `-` **Nickname:**", `${target.nickname ? `${target.nickname}` : "No Nickname"}`,inline, true)

Why this returns as "No Nickname" even if i have a nickname ?

proven lantern
#

````${target.nickname ? target.nickname : "No Nickname"}```

#

you have extra `` `

#

actually that should still work

#

idk

earnest phoenix
#

@proven lantern or you can just target.nickname||"No nick"

fiery stream
#

ayy

dawn trout
#

Any developers help ?

twilit rapids
#

You can just ask your questions here and if people are able to help you they will ^^

earnest phoenix
#

GUYYYYYYYYYYYYSSSS

#

MY BOT WORKS!!!!

#

THANKS!

dawn trout
#

Guys what version do i install?

#

Node.js

earnest phoenix
#

This server is international?

#

What do you mean? Like in languages?

summer torrent
#

@dawn trout what do you want to do

dawn trout
#

Bot

prime glacier
#

client.channels.size
error ans in server says undefined

dawn trout
#

What version of Node.js should i install

cinder patio
#

Latest LTS

dawn trout
#

Latest?

proven lantern
#

LTS are even numbers

#

biggest number

dawn trout
#

Why it take soo long

#

to install

#

The Setup part

proven lantern
#

@earnest phoenix that would be a cleaner way

#

i blame the Internet @dawn trout

dawn trout
#

It starting

grand dagger
#

Congrats

earnest phoenix
opaque seal
#

What does this mean?
parameter: cache type: boolean default: true Descrioption: Whether to cache the message(s)

#

If I don't use false there it will not fetch unchached messages?

earnest phoenix
#

how i can get this :
Visual Studio Code | Workspace: Bot Cool (Workspace) - Playing

#

when i use this :
.user.presence.activities
it display only vscode

#

not displayed Workspace

cinder patio
#

console log the whole .user.presence maybe there's more info on there

earnest phoenix
#

ok. . . .

cinder patio
#

also, do you console.log the activity or send it

#

cause if you send it, it gets .toString()ed

#

it's an object and there's more data on it https://discord.js.org/#/docs/main/stable/class/Activity

earnest phoenix
#

What do you mean? Like in languages?
@earnest phoenix yeah

#

Guys the Discord API is too difficult for me

#

yes

#

and now i am leaving

#

cause

#

my bot got hacked

#

I need to use Bot Designer

#

HOLY...

#

577 PING

cosmic girder
#

How do I make my bot search up something and post it as a image

pale vessel
#

make it an attachment

cosmic girder
#

Wdym by tht?

earnest phoenix
#

Or you can put it in an embed

pale vessel
#

do you want it to be in an embed?

cosmic girder
#

Nope just a image

pale vessel
#

just use new Discord.MessageAttachment(link, name);

slow zodiac
#

Qui veut รชtre ajouter au serveur le plus actuel etc... du Discord que je lui envoie le lien !

pale vessel
#

you can simply send that using .send()

earnest phoenix
#

Who wants to be added to the most current server etc ... from Discord I send him the link!
@slow zodiac That is self advertisement

pale vessel
#

oof

cosmic girder
#

But how does tht work flaze

#

I put the link and name

pale vessel
#

yes

#

assign it to a variable or just put it in .send()

earnest phoenix
#

Name can be whatever

cosmic girder
#

So what if I do the cmd does it search it up

slow zodiac
#

@slow zodiac That is self advertisement
@earnest phoenix Yes ((logique))

pale vessel
#

you have to search for the image first

cosmic girder
#

Ohhh

pale vessel
#

you should have the link right?

cosmic girder
#

Yes

pale vessel
#

by the way, name must have an extension

#

e.g. .png

earnest phoenix
#

You working with js or?

pale vessel
#

yes

cosmic girder
#

but how come some other bots do like !search meme and it gets it from the internet, or are they using link and things???

pale vessel
#

you got it from the internet no?

earnest phoenix
#

You can use modules for that

cosmic girder
#

@pale vessel yes the links but let's say aeon u know how u do the twiiter thing to get a pic of ollys tiwwter

pale vessel
#

you need modules for that

cosmic girder
#

Oh

pale vessel
#

modules help you find images

#

API works too

cosmic girder
#

Oh

#

Ok

pale vessel
#

but all of them use the same concept, attachments

cosmic girder
#

Oh alright

wicked pivot
#
var input = "412414337848967181"
if (input.some(Check => bot.guilds.map(r => r.id).includes(Check))) {
                                    var GuildGet = bot.guilds.get(input)
                                    console.log("")
                                    console.log("Name : " + GuildGet.name)```

```TypeError: Cannot read property 'name' of undefined```
pale vessel
#

input must be an array

cosmic girder
#

@wicked pivot what's input supposed to be

pale vessel
#

you're using some, which is an array method

wicked pivot
#
var input = [ "412414337848967181" ]```**
pale vessel
#

yes

wicked pivot
#

this is already what i just badly copy sorry

pale vessel
#

oh

#

how can you copy those without the [] lul

#

anyway, have you tried restarting your bot

#

and oh

#

some returns a boolean

#

not the object

#

you should use the find method

wicked pivot
#

okay i try

pale vessel
#

guilds.find(guild => guild.id === "ID")

#

that will return <Guild?>

wicked pivot
#

normally yes

#

ow i know, i'm stupid thanks xD

pale vessel
#

all good mate

placid cobalt
#

hey. can anyone help me. im wanting to make moderation commands for my bot but dont know how. tried tutorials online but none have worked so far.

golden condor
#

what language

tight plinth
#

(ignore first line of my code)

#

K nvm figures out embeds r shit

opaque seal
#

Do I have to loop trough every guild to get the total member count?

earnest phoenix
#
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.

please help me

golden condor
#

Do I have to loop trough every guild to get the total member count?
@opaque seal yes

opaque seal
#

How can I see the active/inactive shards of my bot?

#

is there a simple method in discord.js?

quartz kindle
#

@earnest phoenix where does that error come from?

#

@opaque seal wdym active/inative

earnest phoenix
#

@quartz kindle i dont know i change vds after show this error

opaque seal
#

So if them are online or offline @quartz kindle

quartz kindle
#

are you using the sharding manager?

earnest phoenix
#

no

quartz kindle
#

i meant giulio

#

@earnest phoenix that error happens with native c++ modules in node.js

#

are you using node.js?

earnest phoenix
#

yes i using node.js

quartz kindle
#

which modules do you have installed?

#

show your package.json

earnest phoenix
#

Okey wait

#
{
  "//1": "describes your app and its dependencies",
  "//2": "https://docs.npmjs.com/files/package.json",
  "//3": "updating this file will download and update your packages",
  "name": "hello-express",
  "version": "0.0.1",
  "description": "A simple Node app built on Express, instantly up and running.",
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  },
  "dependencies": {
    "better-sqlite3": "^7.0.1",
    "chalk": "^4.0.0",
    "dblapi.js": "^2.4.0",
    "discord.js": "^12.2.0",
    "express": "^4.17.1",
    "generate-password": "^1.5.1",
    "jimp": "^0.10.3",
    "moment": "^2.25.3",
    "moment-duration-format": "^2.3.2",
    "ms": "^2.1.2",
    "node-gyp": "^7.0.0",
    "node-superfetch": "^0.1.10",
    "novelcovid": "^1.2.7",
    "os": "^0.1.1",
    "parse-ms": "^2.1.0",
    "quick.db": "^7.1.1",
    "random-puppy": "^1.1.0",
    "request": "^2.88.2",
    "request-promise-native": "^1.0.8",
    "return-deep-diff": "^0.4.0",
    "simple-youtube-api": "^5.2.1",
    "snekfetch": "^4.0.4",
    "speedtest-net": "^2.1.1",
    "sqlite": "^4.0.10",
    "tdbapi.js": "0.0.3",
    "weather-js": "^2.0.0",
    "windows-build-tools": "^5.2.2",
    "ytdl-core": "^2.1.2"
  },
  "engines": {
    "node": "12.x"
  },
  "repository": {
    "url": "https://glitch.com/edit/#!/hello-express"
  },
  "license": "MIT",
  "keywords": [
    "node",
    "glitch",
    "express"
  ]
}

#

created package.json-lock

quartz kindle
#

this is on glitch?

earnest phoenix
#

No

#

using packege.json-lock

quartz kindle
#

i mean where is your bot hosted

earnest phoenix
#

vds

#

on vds

#

azure

pale vessel
#

you can see

#

hello-express

earnest phoenix
#

using packege.json-lock
@earnest phoenix

quartz kindle
#

this package.json is from glitch

#

did you copy it from a glitch project?

earnest phoenix
#

yes i dowland glitch project

#

@earnest phoenix i assume you mean package-lock.json

#

and paste vds

quartz kindle
#

you should delete anything that your bot doesnt need

earnest phoenix
#

Okey wait

#

So steps to do: Remove every package you dont need from the package.json file, delete node_modules and package-lock.json and npm i

#

to also make sure every package you need is on the newest version

quartz kindle
#

or just delete package.json as well and run npm init lol

earnest phoenix
#

npm i in your terminal, that is navigated into that folder

quartz kindle
#

he deleted his package.json as well

earnest phoenix
#

fck

quartz kindle
#

do npm init first

earnest phoenix
#

alr

#

I did all and show module errors

quartz kindle
#

show errors

earnest phoenix
#

I write npm i but
I'm still getting module error

#

did you run npm init first

#

i write npm init

#
{
  "name": "guardian-bot",
  "version": "0.6.3",
  "description": "Guardian Bot",
  "main": "server.js",
  "scripts": {
    "test": "node server.js",
    "start": "node server.js"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "discord.js": "^12.2.0"
  }
}

#

and npm install discord.js

quartz kindle
#

good

earnest phoenix
#

okay, but you need to manually define the modules you want because you annihilated your package.json before

quartz kindle
#

now when you have a module error

#

that says module not found

#

you need to npm i THATMODULE

earnest phoenix
#

okey

#

if you want multiple modules installed at once you can just npm i module1 module2 module3 etc

quartz kindle
#

ye but the errors will only show one at a time

#

he copied his entire code base and has no idea which modules he needs

earnest phoenix
#

you can just look into the main.js file and look

#

@quartz kindle @earnest phoenix Thanks for help :)

#

Thanks

#

but how do I get the old data?

#

old quick.db data

quartz kindle
#

you need the database file

#

i dont know how quick.db saves it, its something like database.sqlite

opaque seal
#

are you using the sharding manager?
@quartz kindle yes

quartz kindle
#

you can probably broadcastEval the websocket statuses

#

client.ws.status gives you the websocket connection status

#

im not sure what broadastEval returns when the child process is disconnected, you'll have to test that

surreal notch
#

How to send someone personal dm with his id?

#

Using bot dicord.js v12

shy turret
#

Quick question: What does a code grant do? Does it involve with a Discord OAuth2 or...

#

im pretty sure it is related to...

summer torrent
#

How to send someone personal dm with his id?
@surreal notch get user from client and send message

digital ibex
#

hi

#

@shy turret yes

shy turret
#

how does it work?

#

you need to discord oauth2 to invite the bot?

digital ibex
#

using mongoosejs, does it matter if u use the same db collection and same model for two different projects

shy turret
#

like the code thing

digital ibex
#

no u don't

shy turret
#

like if you enable code grant: do you need to make another website to verify your code?

#

like

#

when you do a discord oauth2

#

it has a ?code=

digital ibex
#

yes

shy turret
#

then the server side uses that to make another oauth2 token

#

then you can use that

digital ibex
#

i don't think so, no

shy turret
#

then you can invite the bot?

digital ibex
opal fossil
#

Hello.guy

shy turret
#

oh

#

i get it

#

i think

#

nvm i dont get it lol

opal fossil
#

Hello

#

:D

#

Iโ€‹ thai

still merlin
#

I'm trying to make a set log channel command for my bot as it has logs in just no way to select the log channel,
I'm not sure how I would do it, Would i put set.serverlogchannel after my bot checking for the right permissions and ignoring the command from a bot
(to set the channel the command was used in to the log channel) tag me please when answering

ancient lichen
#

just use the channel id and store it in a json

#

and send messages to that channel

#

wut? so?

slender thistle
#

Which library?

summer torrent
#

<client>.user.setActivity()

earnest phoenix
#

yes

summer torrent
#

in ready event

golden condor
#

yes

still merlin
#

im getting a weird error that bot isnt defined, what do i put insted of bot?

      ^

ReferenceError: bot is not defined
    at Client.<anonymous> ```
hasty sparrow
#

Whatever you defined your bot as

still merlin
#

so client?

topaz fjord
#

yes

still merlin
#

tysm my bot powered on

#

it says its not a function when i dont want to use a function :-;

#

(client.hasPremission isnt a function)

summer torrent
#

hasPermission

#

yep

quartz kindle
#

no

#

<client> means the name you gave to your client

still merlin
#

@summer torrent still not a function

quartz kindle
#

ie if you do bla = new Discord.Client() then you do bla.user.setActivity()

#

@earnest phoenix

half depot
#

ie if you do bla = new Discord.Client() then you do bla.user.setActivity()

summer torrent
#

^

half depot
#

||I will not ping you i think||

quartz kindle
#

@still merlin client doesnt have a hasPermission() method, members do

half depot
#

I like this server

summer torrent
half depot
#

๐Ÿ˜‚

earnest phoenix
#

i wanna store emojis as settings and they get stored as utf-8 strings, is there any way i can turn that back into an emoji i can use in message.add_reaction() btw i use python

still merlin
#

Is there a way of checking if my bot has premissions for something

summer torrent
#

yes

#

.me.hasPermission()

#

js

still merlin
#

discord.js

earnest phoenix
#

ah ok nvm me

summer torrent
slender thistle
#

Notice how I'm not converting anything

earnest phoenix
#

yeah but is it being stored in a file

#

like when i paste it into a json file it auto becomes a utf8 code, and when i try adding that utf8 code to a message as a reaction i get an error

#

so like how would i add this as a reaction to a message \u274c

digital ibex
#

does anyone know if u can use the same mongoose model for two projects?

summer torrent
#

yes

digital ibex
#

interesting

#

when i use the temp model, my discord oauth2 works perfectly fine, and when i use the main model, it takes around 15 minutes to load, and when it eventually does i get an error

#

InternalOAuthError: Failed to fetch user's guilds

#

both models include the id of the member, the only difference is the main one, includes more info

earnest phoenix
honest perch
#

@digital ibex you can definitely use the same model, i use 1 schema in 4 commands that save to a web dashboard

digital ibex
#

then do u kno why thats happening to me?

#

ive had this issue for 3 days and havent got any closer to resolving the issue since i first got it

honest perch
#

im guessing youre making a login system?

digital ibex
#

ive finished the login bit

#

if i use different models

honest perch
#

thats odd

digital ibex
#

but i want to use the same model so its more efficient

#

yeah

honest perch
#

and they are all the same right?

digital ibex
#

the models?

honest perch
#

yeah

earnest phoenix
#
const data = ops.active.get(msg.guild.id) || {};

if (!data.dispatcher) Play(bot, ops, data);
else msg.channel.send(`Queued ..');

The !data.dispatcher-if statement keeps returning true

digital ibex
#

no, the main one holds more info, while the temp one (one which works), holds only the users id

#

lemme show u them

honest perch
#

it may be that the main model collects user servers

#

but it cant get that info and then errors

ancient lichen
#

i wanna store emojis as settings and they get stored as utf-8 strings, is there any way i can turn that back into an emoji i can use in message.add_reaction() btw i use python
@earnest phoenix why utf8? just store them as they are

earnest phoenix
#

it gets automatically changed to utf8 when i put it into a file

ancient lichen
#

try it and let me know ;P

earnest phoenix
#

thats in javascript

ancient lichen
#

oh sorry

#

what lang?

earnest phoenix
#

python

ancient lichen
#

hmmm

earnest phoenix
#

and no problem

ancient lichen
#

๐Ÿ˜„

#

let me see... i'm gonna just search cause i'm shit in py ;P

digital ibex
#

the link is the main one, which doesn't work, and the picture is the temp one, which works

ancient lichen
#

not sure tho

honest perch
digital ibex
#

the main model doesn't collect users servers

earnest phoenix
#

i think my problem is something else, ill do some testing for a bit

ancient lichen
#

k ๐Ÿ˜„

digital ibex
#

@honest perch any ideas?

honest perch
#

not really sure tbh as ive only recently tried mongo, maybe someone more experienced can help

digital ibex
#

kk, thanks anyways ๐Ÿ™ƒ

signal viper
#

hello anyone know why my discord music bot wont disconnect after song

#

here is the code case 'stop':
case 'st':
var server = servers[message.guild.id];
if(message.guild.voice.connection){
for(var i = server.queue.length -1; i >=0; i--){
server.queue.splice(i, 1);
}

        server.dispatcher.end();
        message.channel.send("ending the music ladies and gentlemen!")
        console.log('ended the music!')
    }
delicate shore
#

How to make a prefix variable and allow people of different sevr I s to change it ?

#

Currently my prefix is s!

summer torrent
#

store a db

delicate shore
#

I never asked for spoon-feed

#

Smh

signal viper
#

but anyone know whats wrong with my coding, if there is anything wrong on why it wont disconnect

lucid sierra
#

You Discord.js version

signal viper
#

me or him

lucid sierra
#

FrezzaTv

ancient lichen
#

here is the code case 'stop':
case 'st':
var server = servers[message.guild.id];
if(message.guild.voice.connection){
for(var i = server.queue.length -1; i >=0; i--){
server.queue.splice(i, 1);
}

        server.dispatcher.end();
        message.channel.send("ending the music ladies and gentlemen!")
        console.log('ended the music!')
    }

@signal viper not disconnecting? connection.disconnect(); try this

signal viper
#

copy your code @ancient lichen ?

ancient lichen
#

that's your message .-.

#

it's a cit xD

lucid sierra
signal viper
#

oh im dumb xD

ancient lichen
#

LUL

#

btw try connection.disconnect();

#

obw connections is the promise given by channel.join

signal viper
#

sure

#

where should i place the connection.disconnect();

ancient lichen
#

after the dispatcher end

#

if you want

signal viper
#

will look and ty btw

ancient lichen
#

k

signal viper
#

nope gave me some mad error is visual code xD

#

case 'stop':
case 'st':
var server = servers[message.guild.id];
if(message.guild.voice.connection){
for(var i = server.queue.length -1; i >=0; i--){
server.queue.splice(i, 1);
}

        server.dispatcher.end();
        message.channel.send("ending the music ladies and gentlemen!")
        console.log('ended the music!')           
    }

    if(message.guild.connection) message.guild.voice.connection.disconnect();
break;
#

thats the full code for stop

still merlin
#

how do i check if my bot has permission? I tried me and its undefined still

      ^

ReferenceError: me is not defined
    at Client.<anonymous> (C:\Users\Jon\Desktop\SpiderBot Project\index.js:489:7)```
sudden geyser
#

me would be a variable in your code above.

#

On a guild instance, you can access the .me property for the bot in the guild.

summer torrent
#

<Guild>.me

earnest phoenix
#

message.guild.me

ancient lichen
#

is there a way to clear cached messages ?

tight plinth
#

no

ancient lichen
#

sad story

sick cloud
#

there is

#

afaik

signal viper
#

my bot is still dying

limber flume
#

my bot is still dying
@signal viper make it live

signal viper
#

oooo funny

#

who asked tho

summer torrent
#

๐Ÿง 

still merlin
#

this has been bugging me all day, How do I check if my bot has permissions.. my existing one is below and I get a error ;-;

                         ^

TypeError: message.guild.me is not a function
    at Client.<anonymous> (C:\Users\Jon\Desktop\SpiderBot Project\index.js:489:26)
    at Client.emit (events.js:224:7)```
summer torrent
#

me is not a function

earnest phoenix
#

.hasPermission

still merlin
#

Kyoka where do i put that thought

earnest phoenix
#

i'm not kyoka

still merlin
#

Kyoya*

earnest phoenix
#

message.guild.me.hasPermission([...])

#

@still merlin ^

lyric mountain
#

nice try

digital ibex
#

haha

lyric mountain
#

a guy pinged everyone

#

but everyone ping is disabled here

#

you just pinged a guy

#

also, no spam

wind veldt
#

Also

#

How

#

does this server

#

have 2k bots

#

Like

lyric mountain
#

stop splitting messages

wind veldt
#

what if a bot decides to mass ping everyone

lyric mountain
#

say it all in a single msg

wind veldt
#

No u

lyric mountain
#

what if a bot decides to mass ping everyone
@wind veldt they can't

wind veldt
#

Oh ok great

lyric mountain
#

what part of "everyone ping is disabled on this server" didn't u understand?

wind veldt
#

No I mean mass mention everyone induvidually

summer torrent
#

only admins can ping everyone

lyric mountain
#

that'd by far ratelimit the bot

#

and mods would ban both the bot and the owner for that

wind veldt
#

Ok

#

Just asking bc like 3 of the servers I am had this done to them

lyric mountain
#

that's called spam bots

#

and they aren't approved at all on top.gg

#

so it's quite safe here

earnest phoenix
#

yep

wet iron
#

can someone help me?

#

I made a shop command

#

and the bot sends the embed 2 times

#

here is the code ```js
if (cmd === "shop") {

const shopEmbed = new Discord.MessageEmbed()
.setColor('#00a6ff')
.setTitle(':shopping_cart: SHOP :shopping_cart:')
.setDescription('Ranks:\n `1#` | ' + `${mvprole}` + ' `' + `${mvpprice}` + '` \n `2#` | ' + `${viprole}` + ' `' + `${vipprice}` + '` \n Colors: \n `3#` | ' + `${bluerole}` + ' `' + `${blueprice}` + '` \n `4#` | ' + `${redrole}` + ' `' + `${redprice}` + '` \n `5#` | ' + `${greenrole}` + ' `' + `${greenprice}` + '` \n `6#` | ' + `${yellowrole}` + ' `' + `${yellowprice}` + '` \n `7#` | ' + `${aquarole}` + ' `' + `${aquaprice}` + '` \n `8#` | ' + `${blackrole}` + ' `' + `${blackprice}` + '` \n `9#` | ' + `${pinkrole}` + ' `' + `${pinkprice}` + '` \n \n Type `m!buy (number of the role)` to buy a role')
.setAuthor(sender.username, sender.displayAvatarURL())

msg.channel.send(shopEmbed);

}```

lyric mountain
#

see if you haven't created two clients

wet iron
#

nope

lyric mountain
#

if you use another command does it send only once?

wet iron
#

lemme check

#

i now tried help command

#

and it sent it 3 times

#

bruh

#

wtf is happening to the code

#

help

lyric mountain
#

you're creating more than one client

#

show whole code

earnest phoenix
#

how do i fix this python bug:

When I try to get the video title of a youtube video with beautiful soup and requests in python sometimes it just returns the string "YouTube" instead of the title

wet iron
#

oh

#

i got it

earnest phoenix
#

this is my def

def get_video_name(url_id: str) -> str:
    r = requests.get(f'https://youtube.com/watch?v={url_id}')
    r.raise_for_status()
    soup = BeautifulSoup(r.content, "lxml")
    return soup.title.string
lyric mountain
#

how do i fix this python bug:

When I try to get the video title of a youtube video with beautiful soup and requests in python sometimes it just returns the string "YouTube" instead of the title
@earnest phoenix code plz

earnest phoenix
#

just sent my code

lyric mountain
#

do you have the request response?

earnest phoenix
#

put it in stupid language for people like me.

#

what do you mean

lyric mountain
#

print(soup)

#

see what's returned

earnest phoenix
#

ok

lyric mountain
#

maybe it's not soup.title.string

wet iron
#

um

#

so

#

my warn command

#

sends a member a warn

#

in dm

#

but

#

if their dms are closed

#

it cant send them

#

how do i fix that?

#

or

#

should i say

#

how do i get around that

mossy vine
#

you dont

#

thats kinda the point of having your dms closed

wet iron
#

fricc

mossy vine
#

not getting dms

next escarp
#

me bot's embed isn't working

#

it doesn't want to send

lyric mountain
#

setTimestamp is a function

next escarp
#

Is that the problem?

astral yoke
#

quick.db. I know its bad, but how come this errors? I have the recent version ^7.1.1. (node:9626) UnhandledPromiseRejectionWarning: TypeError: db.startsWith is not a function

mossy vine
#

yes

earnest phoenix
#

its literally just youtubes html

lyric mountain
#

so, you're scrapping the site?

earnest phoenix
#

and it is soup.title.string because sometimes it actually returns the appropriate title.

#

i mean kinda

lyric mountain
#

wouldn't using their api be easier?

next escarp
#

i saw ur token

#

i aint usen it

earnest phoenix
#

WHAT

next escarp
#

Regenarte

lyric mountain
#

that's no token dude

next escarp
#

It s

summer torrent
#

quick.db. I know its bad, but how come this errors? I have the recent version ^7.1.1. (node:9626) UnhandledPromiseRejectionWarning: TypeError: db.startsWith is not a function
@astral yoke startsWith was removed

next escarp
#

n-GnxFS1yZEZ2vSOaqXDkk-ppvp8MTU5MTQ2MzY1MkAxNTkxMzc3MjUy

#

here

lyric mountain
#

that bin is youtube's html

astral yoke
#

what was it replaced with? @summer torrent

next escarp
#

ik

earnest phoenix
#

regenetated token

astral yoke
#

or was it just removed entirely?

next escarp
#

@earnest phoenix Good

summer torrent
#

you can create your own function using db.all()

earnest phoenix
#

why would you publicly put my "token" in this chat