#development

1 messages · Page 1335 of 1

solemn latch
#

Yes

modest vessel
#

sa

solemn latch
tired panther
#

in which category xD?

earnest phoenix
#

K I need to know how selfhost it I keep asking it

#

but all answers i fail

#

I am very dumb

#

😂

solemn latch
#

@snow urchin someone was suggesting online that module may not work with node v14. Potentially.

tired panther
#

@solemn latch where?

#

I cannot find it?

snow urchin
#

@solemn latch I have used it perfectly fine with node v14 before.

solemn latch
#

Shoot guess that's not it then. I'll keep looking

#

@tired panther depends on your lib and language. That page links to several

bleak crypt
#

Is there a bot that force users with newly created accounts and not a profile picture to verify themselves otherwise they will be kicked from the server? Users with older accounts do not have to go through this process.

earnest phoenix
#

Yes

#

alt defenier

#

or smthing

#

but thats not related to this

tardy hornet
#

someone here want command for command? (you will make me the command that i have been trying so long to make, and i will give you one of the commands i made)
if yes DM me
(lang: js)
(in cases)

carmine summit
#

There is somthing

#

If user joins server

#

Aka an event

#

You can check

#

user.displayAvatar()

tardy hornet
#

wow cwickks, from when you boosted the server?

carmine summit
#

If it's same as default avatar

snow urchin
#

displayAvatarURL()

carmine summit
#

Yes

#

I forgot

#

My brain bad

#

If (defaultAvatar === displayAvatar) // do smtg

#

Im in mobile and can't help you further soz

#

You can see the properties in docs

#
tired panther
#

@tired panther depends on your lib and language. That page links to several
@solemn latch its inbuilt in the code of my bot?

#

How do u change the colors of the button?

solemn latch
#

The color of the button is just css

carmine summit
#

You have to do member.user

tired panther
#

The color of the button is just css
@solemn latch where can u define them?

carmine summit
#

Then check

solemn latch
#

For the color, in the css in a style tag in html the long description of your bot

tired panther
#

but how do i define them
?

solemn latch
#

Define what

tired panther
#

the invite button color

solemn latch
#

<style>
Css here
</style>

tired panther
earnest phoenix
solemn latch
#

Okah

#

I am not a css/frontend dev

plush dust
#

use inspect to get the class

carmine summit
#

Ya can't

solemn latch
#

You can

carmine summit
#

??????

#

K

#

Check the

#

Name of the button

#

And do smth like

solemn latch
carmine summit
#
//Css here
}```
solemn latch
#

Top.gg supports html, html supports css

earnest phoenix
#

Without using jQuery is there a way for a form to run a JavaScript function and NOT redirect to a different webpage?

solemn latch
#

Pretty sure redirects are more caused by html?

cinder patio
#

Using forms is completely optional... you can go without it and make the request yourself via javascript

earnest phoenix
#

this is my current code:

<form onsubmit="sendWebhook();">
async function sendWebhook(data) {
...
}
low basalt
#

does anyone know how to add guild count to your bot on top.gg like other ones?

earnest phoenix
prisma oriole
low basalt
#

ah ok thanks

earnest phoenix
#

smh faster typer
@prisma oriole 60+ WPM mate

#

How to selfhost a site?

#

*Site

prisma oriole
#

lol

earnest phoenix
#

bruh

umbral zealot
#

You get a VPS

earnest phoenix
#

site
*Site

#

lmao

#

yes

#

i editted it

#

quick

umbral zealot
#

What do you mean by "selfhost"

earnest phoenix
#

hosting on own pc?

umbral zealot
#

you mean host on your PC?

earnest phoenix
#

Hosting it on my local pc

#

yes

prisma oriole
#

flushed well

umbral zealot
#

install everything you need, like a web server.

earnest phoenix
#

Are there any YT vids?

#

I am new to this

umbral zealot
#

sure, yeah

earnest phoenix
#

so yes ...

umbral zealot
#

"how to host a website on your computer" is a good search phrase 😛

earnest phoenix
#

this is my current code:

<form onsubmit="sendWebhook();">
async function sendWebhook(data) {
...
}

@solemn latch @cinder patio the function does get run and it does it's stuff however data is undefined inside the function and the form still does it's default redirect-to-current-page-with-GET-method-for-sending-data

solemn latch
#

Selfhosting websites is generally considered a very bad idea

earnest phoenix
#

what about this vid?

umbral zealot
#

If it helps you, it's good

earnest phoenix
#

remove embed lol

#

Selfhosting websites is generally considered a very bad idea
@solemn latch ye I am still getting money, it will be hosted soon.

prisma oriole
#

@earnest phoenix i think its because the func is async

umbral zealot
#

do you really expect anyone to know what video you find helpful? We don't know how you learn 😛

earnest phoenix
#

(By a company)

solemn latch
#

Also note, most isp's do not allow server hosting on home networks

prisma oriole
#

i forget exactly but i think there is an asyn taag

#

async

earnest phoenix
#

data is still undefined even tho i made the function normal

prisma oriole
#

o

earnest phoenix
#

maybe i'll try doing d3.select("form").addEventListener("submit",() => {});

solemn latch
#

Honestly its been so long since I used actual proper js

earnest phoenix
#

Honestly its been so long since I used actual proper js
@solemn latch the i-use-too-much-frameworks guy

#

vanilla js 🚮

#

ok the addEventListener method works

sick fable
#
async def nuke(ctx, channel: discord.TextChannel = None):
        channel = ctx.guild
        await channel.delete()
        await guild.create_text_channel(name = f"{channel}")
        await ctx.send("Succesfuly nuked!")```
earnest phoenix
#

Where can i cheap host my website

sick fable
#

I made this nuke command

#

But it ain't working

earnest phoenix
#

I got only 1$ o/month

sick fable
#

It's showing Missing Access

misty sigil
#

trying to delete guild

earnest phoenix
#

wait

#

Lmao

#

yes

#

u defined channel as guild i think

#

I dont know python 😂

misty sigil
#

he did

earnest phoenix
#

Ghost ping

#

holy moly

#

j'ai vue

sick fable
#

trying to delete guild
@misty sigil lmaoooo

earnest phoenix
#

Kadesti got ghostpinged

sick fable
#

I am coding it

#

Can you help?

misty sigil
#

channel = ctx.guild
await channel.delete()

earnest phoenix
#

You want to nuke a server?

sick fable
#

Nah

misty sigil
#

deletes guild

earnest phoenix
#

yes I saw

sick fable
#

I am coding it for my own server

earnest phoenix
misty sigil
#

try ctx.channel

earnest phoenix
#

Does someone has a sick hosting company with webhosting

#

I fr need that atm

#

selfhosting is a nogo

sick fable
#

Await ctx.channel.delete()?

misty sigil
#

just use a vps

sick fable
#

@misty sigil ?

earnest phoenix
#

thats expensive

misty sigil
#

@sick fable no use channel = ctx.channel

earnest phoenix
#

I got ony $1 o/month

solemn latch
#

Shared hosting.
Galaxygate does like $2 a month

sick fable
#

@sick fable no use channel = ctx.channel
@misty sigil k

earnest phoenix
#

2$ is still a lot

solemn latch
#

:(

earnest phoenix
#

like my domain was $1

#

😂

solemn latch
#

Domains are cheap

earnest phoenix
#

yep

#

hosting isnt cheap

sick fable
#

@sick fable no use channel = ctx.channel
@misty sigil and actually when I tried it. It successfully deleted the channel but it didn't created that same channel

earnest phoenix
#

This isnt my day fr

misty sigil
#

no ide

earnest phoenix
#

My bot was restarting while the bot got checked on top.gg

Now discord denied verification request, they had to check the bot and it didnt worked for them (IDK HOW!!!)

#

2 times declined in one day

#

I am thinking of buying a hosting at galaxy-gate

#

seems cool

sick fable
#

@misty sigil Can you help me again at this thing?

earnest phoenix
#

GUYS I GOT IT TO WORK

final valley
earnest phoenix
#
Uncaught (in promise) TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.

Uhhh what?

<div>
    <pre id="sts_box"></pre>
</div>
const sts = document.getElementById("sts_box");
let newsts = sts.appendChild("p");
#

first time i got a DOM error that did not originate from me mixing vanilla JS syntax with D3

#
await help
#

||@solemn latch||

tardy hornet
#

someone here want command for command? (you will make me the command that i have been trying so long to make, and i will give you one of the commands i made)
if yes DM me
(lang: js)
(in cases)

sick fable
solemn latch
#

@tardy hornet seems like an unfair trade.
You get to choose what we make you. You choose what we get.

#

🤷‍♂️

earnest phoenix
#

i think the error happened cuz i passed a string

sick fable
#

Alr

earnest phoenix
#

i think the error happened cuz i passed a string
americans amirite?

ionic dawn
#

@tardy hornet wtf is that offer xD

#

Just ask for help here, we will help you for free lol

earnest phoenix
#

pay me 1$ for specialized help

restive furnace
#

and if the other guy had different command handler than yours. What you're gonna do then?

earnest phoenix
#

:)

#

@restive furnace why do i see a face in a certain frame of your GIF pfp

restive furnace
#

idk

earnest phoenix
#

Just ask for help here, we will help you for free lol
@ionic dawn then why ignore my massive error

restive furnace
#

Since i'm not JS' master

tardy hornet
#

Just ask for help here, we will help you for free lol
@ionic dawn
yes but i dont know/ understand anything in reaction collector, and i dont want to learn it, i hate it

restive furnace
#

(no, i'm not racist)

#

@ionic dawn
yes but i dont know/ understand anything in reaction collector, and i dont want to learn it, i hate it
@tardy hornet use messagereaction listeners then?

#

or ask people to help you here

solemn latch
#

Honestly, if you dont want to learn. Why do it?

#

Programming and development in general is about learning

tardy hornet
#

i get that

#

i just hate reaction collector

solemn latch
#

They are just async functions

earnest phoenix
#

I've fixed the error myself 200 IQ move trying to pass string instead of HTML element object and now I can access each individual input element's data in the SubmitEvent.form but can't seem to find any property of the input element that contains the data which the user gave

#

what do you not understand about the collectors lol

#

i just hate reaction collector
@tardy hornet then don't do it duh

#

i never worked with djs and i understand how to use it just from the docs

#

i never worked with djs and i understand how to use it just from the docs
@earnest phoenix that's why you're whitename cuz you have no bots made with anything?

#

i had a bot

#

a long time ago

#

me too
five seconds ago
which i deleted

#

i just stopped public bot development because i got fed up with a dumb userbase

#

i just stopped public bot development because i got fed up with a dumb userbase
@earnest phoenix welcome to humanity

#

true lol

#

i only do private/hire deving now

restive furnace
#

same thing for me

rose warren
#

THIS EXISTS?!?!
@earnest phoenix it has existed for a while now...

earnest phoenix
#

I have not opened discord developer portal or their blog for a month now

faint prism
#

I want to make sure I'm not missing something obvious, I want to pageinate a potentially long text of over 2k characters response into a message embed. I was planning to use a pagination package and create a bunch of message embeds that are each 2K and length and send in an array of them

#

I just want to make sure that's the right way to go about it

earnest phoenix
#

a paginator would usually be reaction based

#

however

faint prism
#

Yeah, itd cycle to the next embed

earnest phoenix
#

I've fixed the error myself 200 IQ move trying to pass string instead of HTML element object and now I can access each individual input element's data in the SubmitEvent.form but can't seem to find any property of the input element that contains the data which the user gave
is there any way i can see it?

#

uh

#

no

faint prism
#

Or rather, modify the text I think

earnest phoenix
#

time to read MDN

faint prism
#

Right 1024

#

Thanks for the reminder

earnest phoenix
#

6000 total chars in an embed allowed, embed description allows up to 2048

faint prism
#

Well, I'd prefer them be shorter regardless

earnest phoenix
#

imo if you've got a fuckton of text it's best to offload it to another service though

#

6000 chars in an embed allowed, embed description allows up to 2048
@earnest phoenix 6000 chars in overall message including embed
as webhooks can send upto 10 embeds in one message

iirc

#

3 embeds

rose warren
#

Make a webpage?

earnest phoenix
#

tested it myself

rose warren
#

What's it for?

earnest phoenix
#

also an embed alone can hold 6000 chars

#

that's all properties of an embed combined (desc + fields + title + ...)

#

there is no individual char limit for embeds
only the 6000 total char limit
so ig if you only have a single embed in the whole message and nothing else the embed will have a 6000 char limit

rose warren
#

Yeah but you'd have to split it up

earnest phoenix
cinder patio
#

Hey @green kestrel which javascript interpreter does Sporks use for the custom behaviour scripts or whatever they're called?

pale vessel
#

sporks

earnest phoenix
#

yeah but if i put 10 chars in the message content and 6000 chars in the embed discord won't let me post it

pale vessel
#

ye

rose warren
#

6000 characters shouldn't be on discord anyway imo 😂 make a medium blog or something

earnest phoenix
#

lmao

#

yeah but if i put 10 chars in the message content and 6000 chars in the embed discord won't let me post it
@earnest phoenix from this and flazepe's ye we conclude that embeds have no total limit on how much characters the whole thing can contain but there are limits for individual stuff and that the total message can contain no more than 6000 characters

pale vessel
#

bruh

#

wait

#

what did you say again

#

embeds have 6k chars limit, yes and what?

earnest phoenix
#

no

pale vessel
#

what

earnest phoenix
#

the total message shouldn't exceed 6000 chars but the total embed only has limits for individual stuff not for the whole embed

pale vessel
#

no it's for the whole embed

earnest phoenix
#

wut

pale vessel
#

if the title, description, footer, field text and value combined exceeds 6k chars, it won't send

earnest phoenix
#

i had three embeds in a single message all under 2000 chars total yet discord didn't let me send it

solemn latch
#

With a webhook?

earnest phoenix
#

why are we even discussing about this so deeply
who will even need to send 6000 characters
area 51 people?

#

With a webhook?
@solemn latch yes

pale vessel
#

you said all under 2k

#

not over 6k

#

of course it would work

#

it's per embed

earnest phoenix
#
d3.select("sts_box").append("p");

it's returning an xn thingy but it ain't adding the element
(sts_box is a pre element btw)

#
VM614:1 Uncaught TypeError: Cannot read property 'appendChild' of null

what

#
<pre id="sts_box"></pre>

i have the id set on it how is null

pale vessel
#

id is #

#

#sts_box

#

sts_box would be <sts_box> (not valid)

earnest phoenix
#

ok

#

works thanks

pale vessel
#

. for classes for future reference

cinder patio
#

What's d3 anyways?

pale vessel
#

it's almost like jquery but more driven for graphs and data

earnest phoenix
#

in theory this should work right?

let newsts = sts.append("p");
newsts.style("background-color","rgb(207, 74, 74)");
newsts.innerHTML = 
`An error occured: ${err.message}
Are you sure the webhook ID and webhook token are correct and the message content is smaller than 2000 characters?`;
#

(don't ask me what this is, it's just me being lazy and creating a whole webhook communicator thingy to troll my friends instead of chat normally)

pale vessel
#

you know what i would answer?

earnest phoenix
pale vessel
#

yes

earnest phoenix
pale vessel
queen crescent
#
[
  '365917982246961162',
  { xp: 181, level: 6, last_message: 1603127345121 }
]``` how can i access the level property?
pale vessel
#

btw can't you just use ```js
sts.append("p")
.style("background-color","rgb(207, 74, 74)")
.html(An error occured: ${err.message} Are you sure the webhook ID and webhook token are correct and the message content is smaller than 2000 characters);

earnest phoenix
#

oh yeah

#

thanks for spoonfeed tho

pale vessel
#

you already had the code

#

it's not spoonfeed in this case

earnest phoenix
#

[1].level

pale vessel
#

object[0][1]

earnest phoenix
#

object[0][1]
@pale vessel nah

pale vessel
#

if it's inside an array

#

well object[1] then

earnest phoenix
#

yep

queen crescent
#

object[0][1] worked, thanks

pale vessel
#

i assumed you were dealing with something likejs { levels: [ [ '365917982246961162', { xp: 181, level: 6, last_message: 1603127345121 } ] ] }lol

#

wew it worked

earnest phoenix
#

epic

#

finally got it to work

#

all i gotta do is figure how in the hell do i get the value of the input boxes

#

and then lazy day #23 finished

still cliff
#

.val()

#

Don't people read docs nowadays?

earnest phoenix
#

@still cliff why weren't you here 25 minutes ago

#

Don't people read docs nowadays?
@still cliff they do but it's lazy day #23

still cliff
#

Great. 😂

earnest phoenix
#

and also MDN's search feature is cheese butter

still cliff
#

I was working on a multiple client queue algorithm...

earnest phoenix
#

the result I want is always like 5th or 6th one

opal plank
#

did someone say queue algorithm and multiple clients?

slender thistle
#

Shoo Erwin

still cliff
#

Yes, Erwin.

opal plank
#

i think ive bothered enough peopel already with my twitch thing

#

imma just leave

vernal rivet
#

not enough people yet

#

i want to see some suffering happening

pale vessel
#

.val()
@still cliff d3.js troll

opal plank
vernal rivet
#

oofers

misty sigil
#

how is it

#

have you successfully connected to 100% of twitch

pale vessel
#

@earnest phoenix if you want the value i think it's selected.property("value")

opal plank
#

of traffic? yes, even before i did my sharding

misty sigil
#

or did you kill them with the doses first

opal plank
#

i managed to pull around 93% of twitch's global traffic on my bot

#

lemme see if i can get the stats rq

misty sigil
#

cool but i want 100%

vernal rivet
#

lmao

opal plank
#

thats a much harder task cuz thousands of 0-3 viewver streams

still cliff
#

What, @pale vessel? Wasn't he asking about setting the values of input fields using Jquery?

misty sigil
#

whats the biggest stream

pale vessel
#

d3.js

still cliff
#

Not the Twitch thing, @opal plank. I am working on a WhatsApp thing.

earnest phoenix
#

wait instead of going through <ScrollEvent>.path[0][0].....val() can't i just do gib an id to every input tag and then do d3.select("#id of input").val()

#

...why?

#

imagine using whatsapp

still cliff
#

Not very familiar with d3. Does it work like Jquery?

opal plank
earnest phoenix
#

Not very familiar with d3. Does it work like Jquery?
@still cliff very similar

pale vessel
#

try d3.select("#id of input").property("value") or d3.select("#id of input").node().value

still cliff
#

Ah.

pale vessel
#

not really similar

still cliff
#

Oh...

vernal rivet
#

?

opal plank
#

@misty sigil check above

misty sigil
#

pog

earnest phoenix
#

try d3.select("#id of input").property("value") or d3.select("#id of input").node().value
@pale vessel by value i mean the value that the user gave not a property of the html element object

opal plank
#

i think at that day it peaked at roughly 210k messages per minute

#

it was some insane traffic

still cliff
#

That's remarkable!

opal plank
#

it was the ps5 event iirc

#

the announcement

earnest phoenix
#

i think at that day it peaked at roughly 210k messages per minute
@opal plank did i hear a twitch DDoSer boast

opal plank
#

No

#

dunno whatchu talkin bout

#

👀

still cliff
#

Unfortunately the WhatsApp thing is far too complicated since there exists no public API I can use...

opal plank
earnest phoenix
#

you said yourself you love DDoSing twitch

opal plank
#

i said i MAY be unintentionally ddossing twitch with multple connections

vernal rivet
#

who uses whatsapp nowdays?

still cliff
#

And the rate limiting is insane!

opal plank
#

keyword UNINTENTIONALLY

earnest phoenix
#

Unfortunately the WhatsApp thing is far too complicated since there exists no public API I can use...
@still cliff if there is no API how are there business accounts controlled by code

opal plank
#

ratelimit? never heard of, is that some food my 30 ipv6 block can eat?

still cliff
#

They pay thousands of dollars to third party providers to get that, @earnest phoenix.

earnest phoenix
still cliff
#

It is not IP based, Erwin.

opal plank
still cliff
#

It is client based.

earnest phoenix
#

yeah but if they have no API to build upon how are they making anything

opal plank
#

they check ip toos

#

too*

#

and tokens

#

and client

vernal rivet
#

asnwer to your question is that it is food for your 30 hungry ipv6 to eat

still cliff
#

Not on WhatsApp...

opal plank
#

theres a limit on each to prevent api spam

solemn latch
#

what app are you talking about

vernal rivet
#

thats my question

earnest phoenix
#

by value i mean the value that the user gave not a property of the html element object
is this possible

opal plank
#

each client can have 20 joins per 10 seconds, about the IP if it hits too many ratelimits it also gets cooldown and refuses connection on all clients, and then your token might be revoked

still cliff
#

they check ip toos
@opal plank Third party providers like Twilio collect money from multiple clients and pay a sum to WhatsApp which in return gives them access to a private API.

vernal rivet
#

i ask and they just respond with "whats app" ;-; doesn't give me much context to go off of

earnest phoenix
#

whatsapp is raking in da muny

still cliff
#

Fact.

opal plank
#

i use whatsapp

vernal rivet
#

but what app

#

;-;

opal plank
#

lowkey more about lack of option tbh

still cliff
#

Everyone does.

opal plank
#

no one uses discord in brasil

earnest phoenix
#

i ask and they just respond with "whats app" ;-; doesn't give me much context to go off of
@vernal rivet they're saying app is undefined don't you understand

opal plank
restive furnace
#

why use apis while you can scrape? 🤔

vernal rivet
still cliff
#

I have like 30 numbers on WhatsApp for this purpose only.

#

30 clients running simultaneously...

opal plank
#

think i got a few hundread to say the least, mostly chicks/guys i met in parties

earnest phoenix
#

I have like 30 numbers on WhatsApp for this purpose only.
@still cliff so 30 SIM cards?

still cliff
#

A pain to manage.

#

No.

#

Burner.

#

With 2FA so no one can reclaim them.

vernal rivet
#

discord > whatsapp anyday of the week except sundays, cause thats my me day

pale vessel
#

@pale vessel by value i mean the value that the user gave not a property of the html element object
@earnest phoenix what do you mean

#

when you change the value, the value property also changes lol

#

so you can just grab it

opal plank
#

AAAAAAAH FML

vernal rivet
#

if you are searching for the value, then you would use predicates

earnest phoenix
#

YES

still cliff
#

why use apis while you can scrape? 🤔
@restive furnace Because scraping is inefficient.

opal plank
earnest phoenix
#

FINALLY

opal plank
#

BRUH

earnest phoenix
opal plank
#

every 5 mintues FFS

vernal rivet
#

happy_boy what am i looking at

opal plank
#

token: e

#

imagine not setting password type for the field

still cliff
#

Windows 7!!!

solemn latch
#

thats the best token

earnest phoenix
#

(yes scream at me for Windows 7 I'll quickly boot to Ubuntu and slap poop at your face)

solemn latch
#

super safe

still cliff
#

WHY!?

vernal rivet
pale vessel
restive furnace
#

@restive furnace Because scraping is inefficient.
@still cliff not really, just learn how to do it properly

cinder patio
#

I'm having trouble generating random numbers in C++:

    auto map = this->_map;
    srand(time(NULL));
    std::pair<std::string, T *> pair = *std::next(std::begin(map), std::rand() % (map.size() - 1));
    return pair.second;

But I'm always getting the same value returned. Weird

pale vessel
vernal rivet
#

oh shit, cpp

still cliff
#

I know scraping and have implemented it in a couple of my projects, but it still is inefficient.

vernal rivet
#

ahhhhhhhhh

#

i haven't done cpp in a long time

#

what value are you getting @cinder patio

cinder patio
#

the same one...

#

always the same one

earnest phoenix
#
-> d3.select("#webhook_id").value
<- undefined

oh...

vernal rivet
#

PandaSouless that doesn't answer my question. its a map, so what item in the map is it getting? the first, last, middle, etc.

earnest phoenix
#

wait it's a selection it won't work

pale vessel
#

wot

#

code

#

please

earnest phoenix
#

added .node()

pale vessel
#

yee

earnest phoenix
#

whoops

cinder patio
#

A random value from the map, that's the whole point

pale vessel
#

or selected.property("value")

vernal rivet
#

fair

earnest phoenix
#

map.random();

pale vessel
#

node() is cleaner imo

vernal rivet
#

thats not cpp

pale vessel
#

cpp is wack

earnest phoenix
#

i will feed you js what can you do

pale vessel
vernal rivet
#

is there a reason for using the map, over raw numbers?

cinder patio
#

I figured it out, worked by using srand just once

vernal rivet
#

cause its much easier doing it with unsigned ints

cinder patio
#

The hashmap stores pointers to objects, and I want to be able to get a random object

vernal rivet
#

dogekek fair

earnest phoenix
pale vessel
#

that css makes me lose hope in life

cinder patio
#

Is there any reason for using d3 instead of the default document API?

vernal rivet
#

that css makes me upset

earnest phoenix
#

that css makes me lose hope in life
@pale vessel there is no CSS

pale vessel
#

wdym

earnest phoenix
#

Is there any reason for using d3 instead of the default document API?
@cinder patio faster and easier

#

i stole discord's 7000 line stylesheet but never used it once in the whole page

vernal rivet
#

happy_boy this man is planning on having this without style. I am scared

pale vessel
#

so there is css

cinder patio
#

I doubt it's faster cause it most likely just wraps around the document API

earnest phoenix
#

technically no
also technically yes

#

I doubt it's faster cause it most likely just wraps around the document API
@cinder patio is a for loop/.forEach loop on an HTMLCollection better than d3.selectAll

cinder patio
#

You can use for..of and a regular for loop to iterate through it

pale vessel
#

i'd use jquery if not dom

#

i think jquery is more light than d3

cinder patio
#

What does selectAll do?

vernal rivet
#

just grabs everything

pale vessel
#

like querySelectorAll?

earnest phoenix
#

does delete work on arrays

vernal rivet
#

doesn't really iterate

pale vessel
#

does delete work on arrays
@earnest phoenix like delete array[1]?

earnest phoenix
#
Uncaught TypeError: document.getElementsByClass is not a function

excuse me wtf

#

@earnest phoenix like delete array[1]?
@pale vessel yes

pale vessel
#

ClassName

#

and no.

earnest phoenix
#

f

vernal rivet
#

kellyded why in the world would you need to use a delete keyword. just shift it, or pop it. i am not understanding this logic.

cinder patio
#

If your page is simple, just use the document API, it's pretty easy to work with it, and it's faster. If you are making a complex page, maybe you should consider using React or Vue.

earnest phoenix
#

splice is weird

vernal rivet
#

I love vue kellyded vue is great

earnest phoenix
#

:kellyded: why in the world would you need to use a delete keyword. just shift it, or pop it. i am not understanding this logic.
@vernal rivet i keep saying this and I'm saying it again
this is lazy day #23

vernal rivet
#

change my mind

restive furnace
#

Ok

#

No

#

Bye

pale vessel
#

@earnest phoenix it's just splice(index, 1)

vernal rivet
#

PandaSouless that doesn't make any sense, but you do you. its not that hard to do it with out a delete keyword. but you do you.

#

and what flaze said

#

wrong channel

restive furnace
#

@vernal rivet ok I change ur mind: vue's states are mutable.. while in react/nextjs they're immutable

#

mind changed

vernal rivet
#

shrug ok, but that doesn't really mean too much. why would i be using states. i don't need to then i don't need to.

#

Vue is more flexable

faint prism
#
            let resp = await deepCall(msg.content.substring(prefix.length));
            let n = 1000;
            let total = Math.ceil(resp.length / n);
            pages = [total]
            for (let i = 0; i < total; i++) {
                let content = resp.substring(i * n, n);
                pages[i] = new MessageEmbed()
                    .setTitle(`Response ${i + 1}/${total}`)
                    .setDescription(content)
                    .setAuthor(`To: ${msg.author.tag}`)
                    .setFooter(`From: ${client.user.tag}`)
            }
            paginationEmbed(msg, pages).catch(console.error);

Oof, I write complete jank when I use JS

vernal rivet
#

RIP

restive furnace
#

you switched to js or what

faint prism
#

no, I prototype a bit in JS

#

Fast dev, etc etc

restive furnace
#

hmm okay

faint prism
#

Too bad I still haven't sat down and learned it properly

restive furnace
#

why don't make reaction paginations tho?

vernal rivet
#

Why use J's if c# is better FLdogekek

solemn latch
#

why use c# if assembly is better

vernal rivet
#

Why use assembly if glass is better

cinder sandal
#

why use glass if brainfuck is better

solemn latch
#

why use brainfuck if scratch is better

vernal rivet
#

I can't top that

cinder sandal
#

r/brokethechain

pale vessel
#

ihavereddit

faint prism
#

C# is my preferred lang, but I can't be bothered to scaffold a new Discord bot in it. It takes better designing to set it up than throwing together some garbage like I am rn

tame kestrel
#

I was thinking how cool it would be to have a rust discord bot

#

but you're right it's so easy to slap together something using js or py

earnest phoenix
#

hey fellas

faint prism
earnest phoenix
solemn heart
#

I need help

#

How does this work

cinder sandal
#

the bot is offline smh

earnest phoenix
#

@solemn heart we are not a support for reaction roles bot

solemn heart
#

Recation bot

earnest phoenix
#

@torn ravine @wrongserver

solemn heart
#

How do yoy work the role

earnest phoenix
#

wrong shivaco

#

@slender thistle

solemn heart
#

What

faint prism
#

:kekw:

torn ravine
#

???

solemn heart
#

How do you work the recation boy

cinder sandal
solemn heart
#

Bot

earnest phoenix
#

you named yourself shivaco i pinged you instead of shivaco

slender thistle
#

-wrongserver @solemn heart

gilded plankBOT
#

@solemn heart

Hey! We think you have our server mistaken. We do not provide support, help, or advice for any bot. You need to click on the "Support Server" button on the bot's page, not the "Join Discord" button at the top of our website. If there isn't a button that says Join Support Server, then we can't help you. Sorry :(

earnest phoenix
#

@solemn heart we are not a support server for reaction roles bot

#

bro did they freaking leave

slender thistle
#

I guess they did listen

cinder sandal
#

bro did they freaking leave
@earnest phoenix yes he left

cloud pebble
#

anyone else's bot taking ages to log in boithicc

earnest phoenix
#

they joined, asked support for a bot then left when we said we can't
how did they join the wrong server anyways

faint prism
earnest phoenix
#

@faint prism that is fucking awesome

faint prism
#

Meh, I made it over my lunch break just now

earnest phoenix
#

using an API probs

#

you can't get that hell much vocabulary over lunch break

faint prism
#

Yeah, single-purpose bots that use an API

earnest phoenix
#

Telk's API or smth else

faint prism
#

DeepAI

lone siren
#

where do I send my suggestions to the DSL bot?

earnest phoenix
#

also how do you view the integrations for a single channel on mobile

faint prism
#

Since GPT-3 isn't going to be free :/
I settled with GPT-2

earnest phoenix
restive furnace
#

I was thinking how cool it would be to have a rust discord bot
cooler to make yourself with making headcaches a discord bot in C++ with only WS and HTTP lib and the library linking is hell on windows. that's cooler.

lone siren
#

@lone siren https://github.com/top-gg/issues
@earnest phoenix This link should be attached to this channel to make doubts easier.

earnest phoenix
#

@earnest phoenix This link should be attached to this channel to make doubts easier.
@lone siren it's already in #502193464054644737

#

also how do you view the integrations for a single channel on mobile
when i click on the integrations tab in server settings it shows nothing
and there is no way to check integrations on the channel edit page

#

(why am i saying page when I'm on the app?)

pale vessel
#

because you're on an actual browser troll

lone siren
#

I was not born in the United States and outside that country foreigners have difficulty speaking this language. The pronunciations of words are easy to be confused, if I say beach, you are likely to accidentally say the word "bitch" and someone is offended

earnest phoenix
#

and outside that country foreigners have difficulty speaking this language
slightly offtopic but this is just not true lol. if a foreigner wants to, they'll learn english properly. chances are a foreigner (enrolled in modern day education) is going to speak better english than people whose mother tongue is english

drowsy kite
#

how do i setup package-lock.json?

pale vessel
#

npm generates that for you

faint prism
#

@earnest phoenix Better, or more proper?
When it's your native tongue i'd say it's more easy to communicate via informal phrases sometimes

pale vessel
#

you probably mean package.json. if so, you can use npm init

drowsy kite
#

npm generates that for you
@pale vessel i have package.json

#

just

pale vessel
#

then just use npm i and it'll install all packages and generate the file

drowsy kite
pale vessel
#

you don't even need that file for your bot

#

why do you need it

drowsy kite
#

is new

#

i made the project now

pale vessel
#

just code without it

drowsy kite
#

ok

#

@pale vessel thanks

slender wagon
#

what's the difference btw mongodb compass and community server

cinder patio
#

The community server is a mongodb server, while mongodb compass is a tool to browse your database

slender wagon
#

oh okay ty!

remote wharf
#

someone ping me

pale vessel
#

yes

tardy hornet
#
.setImage('https://cdn.discordapp.com/attachments/747141794587738228/767819225044877322/bt_dev.jpeg')

why its not working?

earnest phoenix
#

you tell me

pale vessel
#

just because

tardy hornet
#

it should work right?

#

i dont see any problem

earnest phoenix
#

try visiting the url

misty sigil
#

context please

pale vessel
#

i wonder why it didn't work

earnest phoenix
#

ssshhhhh

#

let them

misty sigil
#

shut up flaze just let them

pale vessel
#

why didn't it work :(

#

wdym shut up

misty sigil
#

yea i cant see why it wont work

pale vessel
#

i ain't telling shit

misty sigil
#

good

tardy hornet
#

i still dont see the problem

#

am i blind?

#

guys

#

i dont see the problem

lyric mountain
#

first of all, using discord cdn's images is risky enough to be a problem itself

tardy hornet
#

what about now

lyric mountain
#

oh my

#

dude

#

listen here

#

use this please

#

also, deleting your message broke the context, don't do that

tardy hornet
#

.setImage('https://i.imgur.com/BgUEN15.jpg')

#

what about now?

lyric mountain
#

have you tried it?

blissful coral
#
low = 10
high = 30
if(low >= 10 && high <= 40)
false```
#

Am I dumb?

#

Why is it false?

pale vessel
#

high is less than or equal to 40 lmao it's true since high is 30

vernal rivet
#

^^^^

blissful coral
#

Hm

#

LMAO

#

Let’s pretend I didn’t say that...

#

That’s gonna hurt if they check message logs on apps LMAOOOOO

pale vessel
#

wait what

#

i'm retarded

#

it's true

earnest phoenix
#

if this is js

#

try encasing operations in ()

#

order of operations might be getting messed up

thin turret
#

Looks like pu

pale vessel
thin turret
#

Py

earnest phoenix
#

py doesn't have lowercase if nvm

thin turret
#

Actually the &&

blissful coral
#

Wait what

#

@pale vessel

#

Why does that not work then

#

It’s returning false for me

pale vessel
#

it's true for me

#

idk man

blissful coral
#

Hmmmm

#

Time to console log

earnest phoenix
#

if((op1) && (op2))

pale vessel
earnest phoenix
#

if that doesn't work

#

you got some voodoo shit

pale vessel
blissful coral
#

Lol

#

Hm

earnest phoenix
#

can someone help me make ban/kick command?

pale vessel
#

read docs and try

#

if it didn't work, we can try to help

earnest phoenix
#

questions like that are too abstract

cloud pebble
#

my bot seems to be taking forever to connect to discord and keeps coming online and offline, anyone else experiencing similar?

earnest phoenix
#

are you sharding

cloud pebble
#

nope

earnest phoenix
#

nevermind the api is having issues

cloud pebble
#

when is it not

compact echo
#

Tru

boreal iron
#

To quote the discord docs: The internet is a dangerous place. Disconnects can happen.

main trench
#

Always is

sacred cypress
main trench
#

Youch

earnest phoenix
#

Use yarn

faint prism
#

Werks kinda
#memes-and-media message
Page 5 says the body is too long, but tbh it should be less than 1k. Guess I need a breakpoint

#

also does someString.substring(1000,1000) == "" ? Because I thought it'd return 1000 characters after index 1000

lyric mountain
#

ig substring is start/end instead of start/length

#

but depending on the lang, it might return a single char

faint prism
#

well it's only on page two

lyric mountain
#

java for example uses start (inclusive) and end (exclusive)

faint prism
#

the 1-5 work fine

#

and I define the substring as i*n where i is the for loop's iteration and n is 1000

#

on 1*1000,1000 it returns ""

#

but 0,1000 and 2,1000 work fine

waxen tinsel
#

So i looked it up before, but have forgotten: tf is a CDN and what is it's purpose

faint prism
#

actually 2,1000 is what should be on i == 1

lyric mountain
#

So i looked it up before, but have forgotten: tf is a CDN and what is it's purpose
@waxen tinsel Content Delivery Network iirc

faint prism
#

Maybe I'll just redo it in C# lol

lyric mountain
#

maybe line terminators are counting for that limit

#

try splitting in chunks of 512 chars each

cloud pebble
#

now i'm confused, my bot logs in and is online for a few seconds before it keeps restarting itself

shy turret
#

wtf is a "public key" and interaction endpoint

earnest phoenix
#

what's the context

faint prism
#

try splitting in chunks of 512 chars each
@lyric mountain that worked wtf lol

shy turret
faint prism
#

wow so much information

shy turret
#

what's the "public key" used for

#

it's new..

lyric mountain
#

even the avatar is redacted lul

shy turret
#

sh

earnest phoenix
#

guessing by the description, you can make discord send you POST requests to your webserver when someone interacts with your bot

#

instead of being on the gateway

shy turret
#

ik what the interaction endpoint url does

earnest phoenix
#

oh

shy turret
#

not the public key though

earnest phoenix
#

maybe to verify the interaction

shy turret
#

hm

earnest phoenix
#

because anyone could be sending requests to your webserver

shy turret
#

not documented yet

#

i think

willow mirage
#

gcp is free and it is good

#

free things are alway free

lyric mountain
#

errrr....

#

"free" and "good" are quite hard to fit in the same sentence

willow mirage
#

free == good, because it is FREE

earnest phoenix
#

@shy turret it seems to be just that, public key is for verifying that the request is coming from discord

lyric mountain
#

so glitch is good?

willow mirage
#

No cuz u have have ur private vps

#

gcp give u vps

earnest phoenix
#

free == good, because it is FREE
where did you hear that

shy turret
#

@earnest phoenix it's for the game sdk

earnest phoenix
lyric mountain
willow mirage
#

where did you hear that
@earnest phoenix from my ❤️

#

:))

#

kidding

lyric mountain
#

not everything that's free is good

willow mirage
#

i used 1y and i still have 200euro

lyric mountain
#

like, letting me steal ur token is free

willow mirage
#

and it is good

misty sigil
#

free == good, because it is FREE
@willow mirage no

willow mirage
#

yess

misty sigil
#

pins

#

(i know its about free hosting but it goes for about everything free tbh)

willow mirage
#

dude they can steal ur token

#

if discord want they can shutdown ue bot

lyric mountain
#

would you risk it?

earnest phoenix
#

free stuff is not free, you're the product

#

like it or not

lyric mountain
#

exactly

#

if something is free, you're the one being sold

#

esp when it comes to google

willow mirage
#

free trials,
300euro
1 month 5 euro for vps
300 / 5 = 60
60/12 = 5
5 YEARS

earnest phoenix
#

isnt having custom prefixes kind of intensive considering you have to make a database call pretty much on every message

lyric mountain
#

not at all

earnest phoenix
#

i guess you could maybe like cache it

#

but seems like a lot of calls

willow mirage
#

@misty sigil so ?

lyric mountain
#

databases excell on read-only ops

willow mirage
#

free trials 5 years

lyric mountain
#

there's also the cache

earnest phoenix
#

gcp limits their $300 credit to a year

misty sigil
#

i cache mine

willow mirage
#

no?

earnest phoenix
#

yes

willow mirage
#

i used for a year

#

and ?

#

nothing

earnest phoenix
#

exactly, nothing lol

willow mirage
#

nothing happend

#

my money still there

earnest phoenix
#

they won't charge you after the free trial expired unless you verify your card again

willow mirage
#

after free trials expired = 5 years

#

._.

earnest phoenix
#

nevermind they reduced it to 90 days now

pale vessel
#

trolled

willow mirage
#

that is for new users

earnest phoenix
#
Your Free Trial ends when one of the following occurs:

    You've spent the $300 in credits.
    90 days have elapsed since you signed up.
willow mirage
#

Yes

#

but

pale vessel
#

no buts

willow mirage
#

that is for new users

#

I have 2 acc

#

1 acc i can forever

#

2 acc i can use for 90days

pale vessel
#

wew

willow mirage
#

I saw it and i knew about it

earnest phoenix
#

should my analytics service call the api to write to db or should it write to db directly

#

hmm

lyric mountain
#

call a writer

earnest phoenix
#

you most likely upgraded your first account and allowed gcp to bill you

lyric mountain
#

direct accesses are bad

willow mirage
#

1acc is old
2acc is new

earnest phoenix
#

or it was created before the 1y -> 3mo reduction

#

right but technically this is already being called by the dbl webhook & discord integration

willow mirage
#

you most likely upgraded your first account and allowed gcp to bill you
@earnest phoenix ahm maybe not cuz i used Credit card generator that i have lucky 1/10000

lyric mountain
#

oh my

pale vessel
#

bruh

#

did you even read the terms

earnest phoenix
#

you can't use that, they ask you to verify

lyric mountain
#

credit card gens are the best way to speedrun your account

willow mirage
#

LoL i did but who care

earnest phoenix
#

like i could just concatenate it to the api itself and remove the analys service

pale vessel
#

that's general knowledge even

willow mirage
#

you can't use that, they ask you to verify
@earnest phoenix but they already vertified

lyric mountain
#

LoL i did but who care
@willow mirage discord cares, google cares, fbi cares, good citizens care

willow mirage
#

and my credits card is valid

#

the generated one*

pale vessel
#

contradictory

#

a "generated" card can't be valid

lyric mountain
#

generated credit cards are either:

  • not "generated"
  • invalid
#

guess which one yours goes in?

earnest phoenix
#

its valid format but isnt a registered number probs

willow mirage
#

so yeah im the most luckiest guy this world

earnest phoenix
#

stuff like chancejs etc have those built in

blissful coral
#

Lol

willow mirage
#

a "generated" card can't be valid
@pale vessel but it does the percent are 1/100000

lyric mountain
#

imagine if we could all generate credit cards for stuff

pale vessel
#

time to get a nasa vps then

vague kite
#

Hey having an issue where djs shards don't connect, haven't updated the code since last reboot (All shards connected) but the shards just don't connect and I keep getting websocket timeout. Any one got an idea of how this could be fixed??

lyric mountain
#

who cares about capitalism, I got a free generated cc

pale vessel
#

huge troll

lyric mountain
#

Hey having an issue where djs shards don't connect, haven't updated the code since last reboot (All shards connected) but the shards just don't connect and I keep getting websocket timeout. Any one got an idea of how this could be fixed??
@vague kite discord api is having some trouble

#

it's been like that for about an hour

pale vessel
#

always has been

vague kite
#

it's been like that for about an hour
@lyric mountain Where can I get an update about this??

earnest phoenix
#

i guess heres my question @lyric mountain

lyric mountain
earnest phoenix
#

does the analy service call db or should i have it call the api

lyric mountain
#

@earnest phoenix rule of thumb is centralizing database access to a single layer

earnest phoenix
#

so api it is

lyric mountain
#

yep

earnest phoenix
#

if thats the case might just shove all the webhook stuff and stat polling onto the api itself

lyric mountain
#

I mean, it's good to have a layer with the sole purpose of making transactions with the database

#

while you could shove everything in it, it'd kill its purpose

earnest phoenix
#

kind of

willow mirage
#

@pale vessel look

earnest phoenix
#

the way i have the api styled is to handle most the functionality as well as transactions

pale vessel
#

yes

earnest phoenix
#

like game logic etc

pale vessel
#

oh trollping

willow mirage
#

oh no

earnest phoenix
#

transact, logic, send response

#

type deal

willow mirage
#

expiration date

#

OH NO

#

i didnt saw it

#

FUCK

earnest phoenix
#

i could break that kind of stuff into a seperate microservice style deal but like

pale vessel
#

they have an android app?

willow mirage
#

ye

earnest phoenix
#

for a bot i feel liek thats way too much work and maintnance

willow mirage
#

OH SHIT

earnest phoenix
#

when just having a basic api to handle functionality is fine

willow mirage
#

im done

#

i aws or azure :))

#

im moving to aws or azure

#

eheheh

earnest phoenix
#

what are you on about

willow mirage
#

vps

earnest phoenix
#

your considering using aws or azure for a bot vps?

#

im guessing the scalable option?

willow mirage
#

no im using gcp

earnest phoenix
#

if so thats a huge waste of money

willow mirage
#

but gotta move soon

earnest phoenix
#

unless you need that level of scalability its way way way cheaper to go to something like ovh, docean, etc etc

#

i literally told you that there was a 1 year limit

#

but ok

slender wagon
#
const prefix = guildConfig.prefix;
```is this closed right
earnest phoenix
#

what do you mean closed

slender wagon
#

formuled*

#

shit

earnest phoenix
#

i mean

#

sure?

slender wagon
#

um

#

wait

#

let me show u the code

earnest phoenix
#

name your variables however you want it's your code

slender wagon
#
const BaseEvent = require('../../utils/structures/BaseEvent');
const GuildConfig = require('../../database/schemas/GuildConfig' );
module.exports = class MessageEvent extends BaseEvent {
  constructor() {
    super('message');
  }
  async run(client, message) {
    if (message.author.bot) return;
    const guildConfig = await GuildConfig.findOne( { guildId: message.guild.id } );
    const prefix = guildConfig.prefix;
    if (message.content.startsWith(prefix)) {
      const [cmdName, ...cmdArgs] = message.content
      .slice(prefix.length)
      .trim()
      .split(/\s+/);
      const command = client.commands.get(cmdName);
      if (command) {
        command.run(client, message, cmdArgs);
        console.log(guildConfig)
      }
    }
  }
}```
so basically it spams the error
#

(node:12148) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'prefix' of null

#

but when i use a command

#

it works

#

here is how guild.config looks like

#
  prefix: '?',
  _id: 5f8dea43940fd62a789c3b71,
  guildId: '739505171373096971',
  __v: 0
}```
earnest phoenix
#

you should probably cache prefixes

#

doing calls to your db on every message is super expensive

slender wagon
#

i know

#

would websocket or whatever that thing is called help?

earnest phoenix
#

also

#

you're not filtering out dms

slender wagon
#

i know

earnest phoenix
#

guilds don't exist in dms

slender wagon
#

dw abt it

earnest phoenix
#

oh

slender wagon
#

oh

earnest phoenix
#

aight

slender wagon
#

wait

#

um so that might be the reason?

earnest phoenix
#

quite possibly

slender wagon
#

shit

earnest phoenix
#

you're using mongoose right?

slender wagon
#

now i gotta figure out how i filter dms

#

yes

earnest phoenix
#

from reading the docs they use .exec() on findOne

slender wagon
#

aight let me have a look

#

ty

#

doesn't seem to help

#

gotta filter dms

tardy hornet
#

how to i edit a message?

earnest phoenix
#

take a guess

tardy hornet
#

.then(editmessage => {

Message.edit(` f`)
})
#

?

earnest phoenix
#

kind of

green kestrel
#

Hey @green kestrel which javascript interpreter does Sporks use for the custom behaviour scripts or whatever they're called?
@cinder patio duktape

earnest phoenix
#

you're naming your message editmessage but then trying to use Message

#

use editmessage

tardy hornet
#

.then(editmessage => {

editmessage( f)
})
#

like that?

earnest phoenix
#

editmessage.edit(f)

tardy hornet
#

and how do i make it that it will edit it in 30s?

earnest phoenix
#

setTimeout

tardy hornet
#

in the then?

earnest phoenix
#

yes

tardy hornet
#

oh

#

wait i think i know how

#

so like

#

.then(editmessag => {
setTimeout(() => {
m.delete()
}, 10000)
})
editmessage.edit(f)

#

?

earnest phoenix
#

no

tardy hornet
#

then how?

#

please

#

then like that

#

@earnest phoenix
.then(editmessage => {
setTimeout(() => {
editmessage()
}, 10000)
})

editmessage.edit()
})

earnest phoenix
#
                          setTimeout(() => {
                            editmessage.edit(f)
                          }, 30000)
                          }) ```
#

😳

tardy hornet
#

ty

pale vessel
#

🥄

tardy hornet
#

but i want it to edit the embed

earnest phoenix
#

then edit it

haughty bough
#

Hello people who are helping me a lot. What is the best way to store simple data to create a playlist: a normal array or using collection?

pale vessel
#

array

wicked pivot
#

how to fix this?

let { body } = await get(`https://some-random-api.ml/mc?username=` + args.join(" "));

  if(!body)return console.log('error')```

```(node:15552) UnhandledPromiseRejectionWarning: Error: Internal Server Error
    at Request.callback (F:\code\Détente [FR]\bot juzoo bot v12\node_modules\superagent\lib\node\index.js:883:15)
    at F:\code\Détente [FR]\bot juzoo bot v12\node_modules\superagent\lib\node\index.js:1127:20
    at IncomingMessage.<anonymous> (F:\code\Détente [FR]\bot juzoo bot v12\node_modules\superagent\lib\node\parsers\json.js:22:7)
    at Stream.emit (events.js:314:20)
    at Unzip.<anonymous> (F:\code\Détente [FR]\bot juzoo bot v12\node_modules\superagent\lib\node\unzip.js:53:12)
    at Unzip.emit (events.js:326:22)
    at endReadableNT (_stream_readable.js:1223:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
(node:15552) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)```
drifting wedge
#

how would i toggle a css property with html?

earnest phoenix
#

@wicked pivot you can't, at most what you can do is sit and wait

#

@drifting wedge you can't, you need js

drifting wedge
#

@drifting wedge you can't, you need js
@earnest phoenix yes but how?

#

just like an example?

tulip ledge
#

U could use html if u use hover

earnest phoenix
#

use google

tulip ledge
#

U dont need js if u use :hover on the css element

drifting wedge
#

the js is a js file?

#

or in css?

#

html*

earnest phoenix
#

whatever you want

#

you'll have to reference js regardless with the script tag

tulip ledge
#

Can be both

main trench
#

Do do hover do element name:hover { what effects you want here }

#

Easy

drifting wedge
#

i think a button would be easier / makes more sense

#

its not like im trying to use no js

earnest phoenix
#

hover selector doesn't make any sense

#

you have to hover over the element to have it active

#

??

main trench
#

Is that not what you want?

#

its not like im trying to use no js
I made an entire 3 page site without js lmao

drifting wedge
#

mine is 25 pages lol

#

not even close to done lmao

main trench
#

Dang

drifting wedge
#

its a dashboard

earnest phoenix
#

js is king of modern day web development

drifting wedge
#

so that might explain it

earnest phoenix
#

especially with SPAs

main trench
#

Mind if I see what you got going on now? flush

drifting wedge
#

me?

main trench
#

Yeah

#

Kinda curious

drifting wedge
#

im not sure if im allowed

#

dont tell anyone shhh

main trench
#

You can dm me the link lel

drifting wedge
#

even worse

#

lol ill just put a ss

#

shhh

main trench
#

Lol

drifting wedge
#

this is part of the profile editor