#development

1 messages · Page 116 of 1

topaz terrace
#

when sending it as a message works

#

but in embed

#

doesn't work

tulip pagoda
#

Hey everyone

twin swift
#

Hello

#

I have a problem

#

is slash commands have a limit?

earnest phoenix
#

They have different limits, yes

tulip pagoda
#

I’m open to trading classes, for newbies and also those who are tired of encountering losses during trade I’ve got a way out fellas!

tulip pagoda
rustic nova
#

500th bitcoin related message on that server

earnest phoenix
#

lmfao

#

Educating individuals on the importance of acquiring digital assets. Staff member of Bitcoin.com. Enlightening the public about the massive impact of Bitcoin.

#

Enlightened me about how cringe and fanatic people are yeah

covert gale
earnest phoenix
#

I guess create a custom component

#

with the prop you need and return the a tag

covert gale
#

{ customCss }

#

inside that

#

`` wont work

earnest phoenix
#

Something like

a={x ? y : z}

or what

#

Or like

x={`blah ${blah}`}
#

Some probably works

covert gale
#

hm ok

earnest phoenix
#

at least that's how it's done in other frameworks

#

considering astro is a rip off

#

like 90% of frameworks these days

#

everything supports the same shit

surreal sage
#

How do I stop :hover on elements that are in a :disabled state?

#

(I don't want the background to change on hover)

#

Not pointer-events: none because I want to change the cursor still

#

got it

#

:not(:disabled):hover

boreal iron
surreal sage
boreal iron
#

either initial or the background color the element has without hovering

#

should also edit the selector to only match your element

#

like

#

.myButtonClass:disabled:hover

neon leaf
#

will this cost significant performance when ran on every http request? yknow its for generating an etag header for caching on all requests that have a full body set

surreal sage
#

Depends on the hardware but I doubt it's much

lyric mountain
#

Instead of creating 2

#

U can also store it as a static constant

#

Also, ur encoding twice

#

B64 -> bytes -> b64

#

Nvm, that's the data byte length

boreal iron
#

Anybody working with Google Docs?
Loading back into my sheet after a while, the sheet already shows the error UNKNOWN FUNCTION.
The function is a self written function within the App Scripts extension.
It takes about 30s - 1min after opening the sheet until the function is loaded and available and all associated cell funtions etc. work properly.

Is there a way of speeding this process up?

I read about settings you can change via. the menu (FILE > SETTINGS) regarding calculation update interval etc. but can't seem to get things improved.

neon leaf
lyric mountain
#

Store the result of createHash

#

U can reuse it many times, just remember to reset it before hashing

neon leaf
#

how do I reset it properly?

lyric mountain
#

Type . and press ctrl + space

neon leaf
#

_flush() ?

lyric mountain
#

If it starts with _, the answer is no

#

Check the docs in case of doubt

neon leaf
#

do you want me to reuse it globally or just in the function?

lyric mountain
#

On the function

#

But u can reuse it globally too if u want

#

Less time instantiating the digester

neon leaf
#

wouldnt globally risk it getting mixed up with other requests?

lyric mountain
#

Unlikely, js isn't multithreaded

#

So all requests will be sequential

hushed robin
#

guys

#

how do i fix these errors
Object is of type 'unknown'.

#

theres like

#

12 of them

#

typescript is yelling at me

lyric mountain
#

U need to declare the type

surreal sage
#

Can you do %AppData%\Folder with node filesystem?

lyric mountain
#

Probably not

neon leaf
hushed robin
#

I'm not sure

lyric mountain
#

Depends on what ur putting into that variable

surreal sage
#
const user = os.userInfo().username
const path = `C:\\Users\\${user}\\AppData\\Roaming```
#

Can do this ig

hushed robin
#

it's data from an API

surreal sage
neon leaf
#

oh lol

boreal iron
neon leaf
surreal sage
#

na

#

indeed dont work

boreal iron
neon leaf
surreal sage
#

node devs just lazy to add it 🤓

boreal iron
#

it simply doesn't know the environment vars of any other environment

surreal sage
#

isnt there a process. var that has the appdata path?

neon leaf
#

its always the same

#

but yes, process.env.APPDATA

boreal iron
#

why don't u just add npm and/or nodejs (executables) to your windows environment path

wheat mesa
#

Anyone have an idea of how I should handle collision in my ECS? I'm thinking that I have a rigidbody component that defines a hitbox, and if it collides with another rigidbody, there's an event that gets fired on both components. I'm not really sure about how much I like this idea though

boreal iron
#

don't need to use the path anymore but can instead execute them globally

wheat mesa
surreal sage
hushed robin
neon leaf
#

Roaming

surreal sage
#

Screenshot & send the error please

boreal iron
lyric mountain
surreal sage
#

electron app data storage

#

'cuz yes'

hushed robin
surreal sage
#

needa save user settings

hushed robin
#

idk how to type something

neon leaf
#

create an interface or a type

hushed robin
#

how do i do that

neon leaf
#
interface Incoming {
  name: string
  age: number
}```
hushed robin
#

ok

#

makes sense

#

uh

#

how can i format json

wheat mesa
#

With an interface..?

hushed robin
#

when i copy and paste it from my browser it turns out weird

wheat mesa
#

Oh

#

Wait what? Why are you copy pasting from your browser?

hushed robin
#

because

#

i need to set the type of everything

wheat mesa
#

That’s going to be a hassle

hushed robin
#

bruh

wheat mesa
#

Just type it out with the appropriate data type

hushed robin
#

what else am i suppose to do

wheat mesa
#

Spend 5 minutes on structuring your data instead of spending 20 minutes trying to delete and replace random shit from a json response to model a type

hushed robin
#

so

#

i'm suppose to manually type out everything

neon leaf
#

basically

#

yes

hushed robin
#

it's going to be hard

#

i have one monitor

wheat mesa
#

How big is your json

neon leaf
#

windows + arrow right

hushed robin
wheat mesa
#

That’s like 20 props

#

It’ll take you 5 minutes

neon leaf
#

thats like max 3 mins

hushed robin
#

yes

#

a lot

vivid fulcrum
#

copy paste it and replace values with their data types

wheat mesa
#

That’s going to be more effort than it’s worth

#

Typing it out will be faster

vivid fulcrum
#

other way around for me lmfao

neon leaf
#

since its roblox there are probably already 10 million types made for that

wheat mesa
#

To each their own but deleting all of the stuff and replacing it will be annoying and more time consuming than just typing it out

wheat mesa
#

Probably a roblox API types package out there already made for you

quartz kindle
#

typing keys will be slower than select + delete + type value

wheat mesa
#

Not for me 🤷‍♂️

quartz kindle
#

in terms of keypresses/keyboard ops

hushed robin
#

there i did it uhh

wheat mesa
#

Wow look how hard that was

hushed robin
#

how do i use it now

wheat mesa
#

Also be careful because half of these properties are probably nullable

hushed robin
#

what am i suppose to do

#

abt that

wheat mesa
#

Like sourceName and sourceDescription for example in your response are null, to tell ts that they could be null put a question mark after their type

quartz kindle
#
type abc = all the crap you just wrote

const something: abc = ...
wheat mesa
#

So like sourceName: string?

hushed robin
#

ok

#

i just put ? beside it?

neon leaf
hushed robin
#

um

#

it errors

#

';' expected.

wheat mesa
#

Let me check my GitHub it’s been a while since I’ve used ts or js

hushed robin
#

yuh look

#

Game.sourceDescription?: string | undefined

wheat mesa
#

Yeah that’s different from null

#

sourceDescription: string | null

#

I could’ve sworn there was an easier way

hushed robin
#

how do i make it null then

#

?

neon leaf
hushed robin
#

oh

#

lol

#

ok

#

now lemme try using it

wheat mesa
#

You could also do a little fancy trick like this: ```ts
type Nullable<T> = T | null;
interface Person {
cardNumber: Nullable<number>;
}

#

But that’s just syntactic sugar and isn’t necessary

quartz kindle
#

abc?: string is a shorthand for string | undefined but its called a "nullable" because other languages dont have undefined they only have null

hushed robin
#

OKOK

#

THAT REMOVED SOME OF THE ERRORS 🔥

#

BUT THERES MORE NOW

#

👍

lyric mountain
#

I respect ts for making js decent but oh hell do I hate its syntax

hushed robin
#

Type '[string, unknown][]' is missing the following properties from type 'Game': id, rootPlaceId, name, description, and 20 more.

#

bro what

neon leaf
#

show code

hushed robin
#

what code

neon leaf
#

where the error is or maybe all

lyric mountain
#

The code surrounding that error

hushed robin
neon leaf
#

my eyes hurt

hushed robin
#

why

#

?

slender wagon
#

imagine using sqlite

hushed robin
#

sqlite is easy to use

#

i'm not wasting my time setting up a database

lyric mountain
#

Too colourful to my taste

hushed robin
lyric mountain
#

The editor, but that's personal taste

hushed robin
#

bruh

#

it's just vosua. studio code

pale vessel
lyric mountain
#

Ik

earnest phoenix
hushed robin
#

'gameStats' is of type 'unknown'.

wheat mesa
#

You need to give gameStats a concrete type

hushed robin
#

bro 😭

#

why is this damn language so stubborn

pale vessel
#

as any

lyric mountain
#

No, just don't

neon leaf
pale vessel
#

jokes aside don't do that

hushed robin
#

gameStats is an array of this data

neon leaf
hushed robin
#

this code worked in js tho

#

0 errors

pale vessel
#

then where did .data come from?

hushed robin
#

ran beautifully

hushed robin
earnest phoenix
pale vessel
#

Perhaps you should make an interface that wraps the stats inside an object with data property

wheat mesa
#

That’s why

quartz kindle
#

gameStats as Game[]

wheat mesa
#

response.json() returns Promise<unknown>

#

So you need to tell the compiler what type to coerce it into

hushed robin
#

l typescript

wheat mesa
#

I find it amusing that you think something is bad just because you don’t understand it

plain talon
#

imagine tryna use typescript while complaining that its strict on types

hushed robin
#

broooooooooooooooooooooooooooooooooooo

lyric mountain
#

Perhaps a couple days on java would be good for you

quartz kindle
#

lmao

lyric mountain
#

It's fairly easy to understand typing on it

earnest phoenix
#

I sometimes wonder why Battleless doesn't take anything seriously, always on the troll or lazy mood

wheat mesa
hushed robin
#

i am taking this seriously

lyric mountain
#

I mean, he did try a calculator project

hushed robin
#

i don't understand this gibberish

lyric mountain
#

Which is progress already

plain talon
hushed robin
#

maybe i should do another smaller project

#

first

wheat mesa
#

This is a perfect demonstration on why I think that javascript is bad for beginners

hushed robin
neon leaf
hushed robin
#

whats a better language for begineers

wheat mesa
#

Unrealistic expectations are formed, and they have no understanding of why a typesystem is useful or what it is

lyric mountain
plain talon
#

i recommend assembly for beginners so that they can really learn to understand how the computer works

lyric mountain
#

There should be some ideas on what u can make

hushed robin
#

i only understand javascript the most

#

other languages look like randomness

plain talon
#

youll find that most languages while different in syntax all use the same concepts

hushed robin
#

scream why does learning take so long

earnest phoenix
wheat mesa
#

I think it's easy to use but I still recommend anyone asking me for what language to start with to try Java or C#

#

I prefer recommending static typesystems because it really helps you along the way

#

The compiler does quite a bit of safety work for you

#

It's more of a learning curve than a dynamically typed language, but overall I think it's more intuitive after a bit

plain talon
hushed robin
#

codecademy looks hard

#

how do i use it

plain talon
#

sign up

#

click a course

#

and its like an interactive lesson type thing

lyric mountain
#

Start with the easiest ones

plain talon
#

you have instructions / information on the left, and a code box w/ terminal on the right

lyric mountain
#

Try not to cheat as much as you can

hushed robin
#

i have to signup uhh

plain talon
#

education doesn't come free

hushed robin
#

bruh

lyric mountain
#

Some courses are free there

wheat mesa
#

Don't pay for anything like that online

#

Those are scams

hushed robin
#

i am not paying to leearn javascript

lyric mountain
#

There are free options

wheat mesa
#

You don't need money to learn programming

hushed robin
#

tbh

#

can't i just make typescript ignore those type errors uhh

plain talon
#

yeah you can learn everything you need to know free, its just not bundled up into a course with interactive elements

#

thats what you pay for

hushed robin
#

well

neon leaf
#

because typescripts whole point is for those errors to help you

hushed robin
#

just for that one file

#

the rest i will do typescript

neon leaf
#

Tim already told you the solution

plain talon
#

why do you want to use typescript if you dont like typing?

wheat mesa
#

my god dude, we told you not to convert an existing codebase to typescript as your first project

#

literally ignored us completely

earnest phoenix
hushed robin
#

but i don't want to rewrite 50 lines

earnest phoenix
#

So I want them to start easy and go up and up slowly

hushed robin
#

no 60

earnest phoenix
#

theress battleless and the chat is in chaos

#

I wonder how overwhelmed Battleless would be trying C++

plain talon
#

oh god

wheat mesa
#

rust

#

🧌

#

honestly I don't know which one he'd have more trouble with

#

I think that C++ would be easier for him than rust because the compiler does not give a fuck what you do 50% of the time

earnest phoenix
#

how about assembly

earnest phoenix
hushed robin
#

ok i decided i'm quitting again for today

wheat mesa
#

Yeah

earnest phoenix
#

@earnest phoenix adb shell pm uninstall android rn

earnest phoenix
slender wagon
#

anyone has ever used prisma here?

#

i might need some help converting from normal pg to prisma on my api

hushed robin
#

no

#

i haven;t

earnest phoenix
#

Only if you become a catgirl

#

knew it

hushed robin
#

whats revanced

earnest phoenix
earnest phoenix
#

Gonna also become a member of the C++ Standards committee

earnest phoenix
earnest phoenix
#

i litterally remember you becoming a member of nodejs

earnest phoenix
#

But I could if I dedicate a good amount of time

#

i mean

#

its java and java

#

most of the things are in java

#

Android's codebase is 80% C++

#

yes but most of them are also java

#

Nope

#

systemui is in java iirc

#

and many system apps

#

@earnest phoenix how about maintaining turkish gov-made shit :trolley:

#

and possibly find many many many vulnerabilities and find where i live

earnest phoenix
#

They used to be written in Java, but not anymore

earnest phoenix
#

insane

earnest phoenix
#

But at least not as bad as this country's

earnest phoenix
#

java and c#

#

youll love

#

No thanks troll_skull

#

i can bet that most of their shit run on either java or c#

#

Java or C# aren't bad, their stuff is just very poorly written

lyric mountain
#

oracle is just one of the contributors

earnest phoenix
#

bet i could rewrite them in js and make it better and secure

lyric mountain
#

but if you're recognized as a "skilled contributor" you can already consider yourself elite

#

they're extremely rigid on standards

wheat mesa
#

"skilled contributor" = unpaid volunteer

lyric mountain
#

lmao

#

I imagine having that on your curriculum would be a free pass to any coding job

earnest phoenix
#

best free discord bot dashboard site?

lyric mountain
#

none

earnest phoenix
#

Im trying to make one

lyric mountain
#

you need to code your own site from scratch

hushed robin
#

wym "best free discord bot dashboard site"

#

don't think such a thing exists

lyric mountain
#

with html or some frontend framework

earnest phoenix
#

i wanna make my own discord bot website, and I dont know how to code websites where do i start?

lyric mountain
#

well, html is a good start

#

by html I mean the full bundle (html + js + css)

hushed robin
earnest phoenix
#

is that free?

hushed robin
#

yes

#

lol

lyric mountain
#

well, yes, cant see how they'd even charge it

#

it's a language like any other

earnest phoenix
#

where can i start with this html thing

lyric mountain
hushed robin
#

how are you a dev but don't know what html is uhh

earnest phoenix
#

I wanna make one by myself now

lyric mountain
#

expect to input quite a bit of effort if you desire to make a site

#

it wont be simple nor quick to learn it

earnest phoenix
lyric mountain
#

tho the time will depend on how maleable your knowledge is

lyric mountain
#

cuz like, the oracle jvm is proprietary

#

the openjdk project itself is open-source

earnest phoenix
#

I'm talking about the OpenJDK project, from what I remember it required that though my memory could be fuzzy at that part

earnest phoenix
lyric mountain
#

many providers have their own jvm implementations, some are open and some are proprietary

#

apache hotspot jvm is entirely open source, and the whole apache thing is community-driven

earnest phoenix
#

Yeah

lyric mountain
#

I'd try to contribute to it, but I don't think my skills are high enough for that

#

still much to learn

earnest phoenix
#

what i do after i did what they told me to

solemn latch
#

click next

earnest phoenix
#

Ok

hushed robin
#

next probably?

earnest phoenix
#

thanks

knotty quartz
#

Hey!

hushed robin
#

Hey!

knotty quartz
#

Hru

lyric mountain
hushed robin
lyric mountain
#

if you're stuck in something you can always go back to previous lessons

knotty quartz
#

Kuu, I worked on intervals and made it work, just having issues it won't read the excludedUserIDs array

knotty quartz
knotty quartz
#

(Obviously time will be edited this is just on the testing bot)

lyric mountain
#

is that mongo?

#

idk how mongo works srry, you'll need someone else to help u

knotty quartz
#

It works now anyways, the issue must of been it could read it without it being in string form and I figured out why because the database oddly puts the ID in String form

#

Works for definite! Thanks

earnest phoenix
#

I need help

lyric mountain
earnest phoenix
#

ok

slender wagon
#

guys i got prisma to work

#

i am by far the greatest developer ever

deft wolf
#

What's prisma?

earnest phoenix
#

prisma dn

slender wagon
#

should i add the prisma folder to gitignore?

#

sorry i meant the migrations folder

earnest phoenix
slender wagon
#

Okay

digital swan
wheat mesa
#

update: I am now missing 406 javadocs

#

save me

quartz kindle
#

you only need to fix 2 of them

#

then you get 404, which equals 0

main sky
#

Nice

pale vessel
#

Genius

wheat mesa
#

Ah yknow that’s a damn good point

boreal iron
#

Tim knows how to avoid any work mmulu

sharp geyser
sharp geyser
rustic nova
#

Might be thinking the 0 is null and tries to do that

#

Cast the 0 in an integer

#

But Javascript looks cringe

earnest phoenix
sharp geyser
#

@neon leaf so I added a new domain to the mailcow and did all the DNS stuff but I can't send emails to the email, I can only email other people with it

radiant kraken
#

never ever use an unstable feature of a language in your library

rustic nova
#

Also check the logs within mailcow

sharp geyser
#

and doesn't seem to be any errors or problems with DNS stuff

rustic nova
#

Whats your email under that new domain

sharp geyser
#

seems like now i am getting no emails from either domains nvm

#

ofc as I send it I get a email, but the other email still wont go through

rustic nova
#

Susmail

sharp geyser
#

what you mean

slender wagon
#

I am happy to let you all know that this is the third year i take the spot as the greatest developer of all times

earnest phoenix
#

sounds like some weird domain name CS_pepehmm

#

With the website title being

WATCH MOVIE X NO VIRUS 100% SAFE

rustic nova
#

Sent you a mail

neon leaf
fair forge
#

/top

radiant kraken
#

@earnest phoenix @wheat mesa wtf is this abomination

#

scary rust types

wheat mesa
#

Least complex rust framework type

rustic nova
# sharp geyser what you mean

This is the mail system at host mail.cringe.dev.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

               The mail system

contact@phantommovies.com: host
eforward2.registrar-servers.com[162.255.118.52] said: 554 5.7.1
contact@phantommovies.com: Relay access denied (in reply to RCPT TO
command)

#

Your mailserver is brok

earnest phoenix
sharp geyser
#

I think I did that though

#

I can’t confirm rn cause I’m omw to school

radiant kraken
#

@earnest phoenix @civic scroll me when ```rs
warp::filter::then::Then<warp::filter::and::And<warp::filter::and::And<warp::filter::and::And<Exact<warp::path::internal::Opaque<&P>>, impl warp::Filter + warp::filter::FilterBase<Extract = (), Error = Rejection> + std::marker::Copy>, impl warp::Filter + warp::filter::FilterBase<Extract = (std::string::String,), Error = Rejection> + std::marker::Copy>, impl warp::Filter + warp::filter::FilterBase<Extract = (vote::Vote,), Error = Rejection> + std::marker::Copy>

civic scroll
radiant kraken
surreal sage
#
{"key": {"hello": "world"}}

What would be the best way to get "key" from {"hello": "world"}

#

javascript

#

Get the key from the value

wheat mesa
#

Well that kinda defeats the purpose of a map doesn’t it

#

But if you really needed to, there’s a .find() method iirc

surreal sage
#

It's not an Array?

#

object object

wheat mesa
#

Object.keys(obj).find(key => …)

surreal sage
#

Got it

wheat mesa
radiant kraken
#

hi waffle

wheat mesa
#

Hi

radiant kraken
lyric mountain
#

rust has the same async shit as js/dart?

radiant kraken
#

but you have to use a third-party runtime like tokio to use it

#
async fn func(a: u8, b: u8) -> u8 {
  a + b
}

#[tokio::main]
async fn main() {
  println!("{}", func(1, 2).await);
}
lyric mountain
#

I really really hate that kind of asynchronous flow

#

like, I get it on langs like js or dart where there's only one thread handling everything, but ffs stop adding it on every new language

radiant kraken
civic scroll
#

less access call

lyric mountain
#

I'm 100% happy that in java all you need to do is ```java
try {
var res = someasynctask.get();
} catch (InterruptedException e) {
// handle the exception, if it ever happens
}

radiant kraken
lyric mountain
#

no contagious async bullshit

civic scroll
#

in this case

Object.entries(obj).find(([key, value]) => key === "key" && value?.hello === "world");
civic scroll
radiant kraken
lyric mountain
radiant kraken
radiant kraken
earnest phoenix
radiant kraken
#

then what about references

earnest phoenix
# radiant kraken then what about references

Concurrent references are not really possible in JavaScript because of the nature of the language, the language itself needs to support multi-threading in a way that it has keywords and functionality to synchronize and join threads

frosty gale
#

yeah workers stink because you can't really share memory

#

I think you have shared buffers but that's about it

neon leaf
#

is it possible to only have two fields per row in an embed?

#

like

field field
field field field
field filed

or sum

earnest phoenix
#

You can't really organize them no

lyric mountain
#

it'll look AWFUL on mobile, you've been warned

earnest phoenix
#

Yeah that's the thing

#

Will never be consistent and looking decent on every platform

#

So better just forget about it kek

lyric mountain
#

I can see why they couldn't put more than one column on mobile but damn the result is horrible

neon leaf
#

just a space worked too

#

looks decent on mobile I guess

hushed robin
#

i hate discord

neon leaf
#

yeah thats exactly what I wanted it to look like

hushed robin
#

why uptime in seconds

neon leaf
#

because placeholder

hushed robin
neon leaf
#

because I havent installed ms yet

hushed robin
earnest phoenix
#

average useless command giving 0 useful information

neon leaf
#

what would be useful?

lyric mountain
#

since fields flex horizontally but not vertically

neon leaf
#

yeah I saw it

hushed robin
#

ok guys

neon leaf
#

it fills the entire screen

hushed robin
#

time to work on typescript again

lyric mountain
#

things get much worse near the limit

deft wolf
lyric mountain
#

user count dont bother, nobody cares about it

hushed robin
#

user count does matter

lyric mountain
#

it's a meaningless big number

hushed robin
deft wolf
#

Certainly more interesting than the CPU model

lyric mountain
#

you could put any number you like there and nobody would know

hushed robin
#

my bot is used by 811k people

#

lets go

lyric mountain
undone rose
#

Users only count imo if theyre users in your database whove done something to be put into that db

neon leaf
flat copper
#

i have a string "18april 5:45pm"
i want to get the leftTime in ms;
any solution?

lyric mountain
lyric mountain
#

how would you prove?

hushed robin
#

there are only 8 billion people in the world

undone rose
#

Your bot isnt used by 812k ppl tho

#

Its just in the shares a server with 812k people

spark flint
#

i think only one person has used your bot in CW out of like 600k people

#

609k

#

thats me

#

only i have used it LUL

hushed robin
lyric mountain
#

user count is just an arbitrary value

spark flint
#

lol

hushed robin
#

there

#

proved

hushed robin
#

someone sle has

spark flint
#

lol

#

wonder who

neon leaf
hushed robin
#

no one

#

i was joking

neon leaf
#

but nobody does that

hushed robin
#

maybe though

#

i don't track who uses commands

lyric mountain
hushed robin
#

yes but mine is real

#

you can see da code

pale vessel
#

I can't

hushed robin
lyric mountain
#

what I mean is, that value represents nothing at all

hushed robin
lyric mountain
#

just that you share servers with X people

hushed robin
#

yes

#

it means i could dm advertise to 800k people

#

🤩

#

no discord has my id

#

they will sue me

undone rose
#

Against Top.gg rules too unless a user does something to trigger it, like levelling up

hushed robin
#

no

#

i'll just make another account

#

and join

#

lol

earnest phoenix
#

won't be hard to recognize it's your other account

hushed robin
earnest phoenix
#

not even a tiny bit

hushed robin
#

i will make it like mee6

#

when you rule a command

lyric mountain
hushed robin
#

it'll spam you with dms

#

btw guys

#

how do i check if someone has dms open

#

cus error when closed crashes my bot NEUT

#

this is not ideal

lyric mountain
#

you're supposed to catch your promises

spark flint
hushed robin
#

no

#

i'm a good bot developer

earnest phoenix
spark flint
hushed robin
#

i don't really have anything to dm advertise to people anyways

#

and i can't even i don't have the guild members intent

lyric mountain
# neon leaf

meaningful numbers are average ping, server location, guild count, uptime, version, database latency, etc

#

stuff that directly influence the user experience

hushed robin
#

i need to fix my bot tbh

earnest phoenix
#

server location is pretty useless

hushed robin
#

but i've been lazy

#

and don't want to

earnest phoenix
#

doesn't affect users either way

#

uptime, who cares

#

it's up

lyric mountain
earnest phoenix
#

or not

hushed robin
#

my bots uptime is 2 weeks

#

big w

neon leaf
earnest phoenix
#

database latency, meh, eventually for developers - users just want it to work they don't care if it's 10ms or 15ms latency

hushed robin
#

hm

#

how do you get database latency

earnest phoenix
#

average ping, depends what you measure

#

and guild count, sort of useless but not entirely

#

can just get the oauth invite and you see the number

hushed robin
#

someone told me that better-sqlite3 is bad

#

is that true

lyric mountain
#

that way u can ask the affected user that info

earnest phoenix
#

you should get the information by yourself

hushed robin
#

why does discord force u to shard

#

kinda mean

earnest phoenix
#

it's not hard to get relevant information on your own with some small information coming from the user

lyric mountain
hushed robin
#

i do know what a shard is

lyric mountain
#

what is it

hushed robin
#

idk

#

it has servers in it

neon leaf
#

🗿

hushed robin
#

thats all i really know

earnest phoenix
#

LMFAO

hushed robin
#

whats so funny

earnest phoenix
#

quoting

"i do know what a shard is"

hushed robin
#

"triquetraIn the end, we will all get just what we deserve"

#

what does thhis mean

civic scroll
spark flint
#

@rose warren where is starboard where we need it most joeverymad

earnest phoenix
#

it works

#

very good

rose warren
spark flint
civic scroll
rose warren
#

||it doesn't||

earnest phoenix
#

that's a feature

#

obfuscation

quartz kindle
lament rock
#

someone told me that coding is bad

pale vessel
#

And they were right

hushed robin
#

this makes me feel uncomfortable

wide cedar
#

How long after changing my bots name does it take the website to update?

spark flint
#

you have to refresh data on your bots page

#

click "Refresh Data"

wide cedar
#

I have over a month ago and it still hasnt changed

hushed robin
#

you have to click save on your bots edit after that

spark flint
#

yes

#

@whole knot -refreshdata SickBro

hushed robin
#

noob

whole knot
#

-refreshdata

gilded plankBOT
#

topgg Fetching Your New Bot Data

To fetch your bot's new name or avatar, please follow these steps:
topggDotRed Click the Refresh Data button in the sidebar on the right.
topggDotRed Click Edit on your bot page and then Save.

💡 Please note: If it still doesn't seem to change, make sure you actually changed the bot's avatar / name on your Discord Developer Portal and not the application's icon / name.

shell echoBOT
#

topgg Fetching Your New Bot Data

To fetch your bot's new name or avatar, please follow these steps:
topggDotRed Click the Refresh Data button in the sidebar on the right.
topggDotRed Click Edit on your bot page and then Save.

:bulb: Please note: If it still doesn't seem to change, make sure you actually changed the bot's avatar / name on your Discord Developer Portal and not the application's icon / name.

whole knot
#

WHAT

earnest phoenix
#

https:///top.gg

hushed robin
#

wtf is happening to the hyperlinks uhh

spark flint
#

yeah i just got that

#

for embeds

hushed robin
#

discord trippin

spark flint
#

its working for some

hushed robin
#

yeah

#

some work

#

some don't

spark flint
#

discord momen

hushed robin
spark flint
#

omfg

#

i HATE NEXT-AUTH

#

ITS SO SO SO SO SO SO SO SO SHIT

#

like it was working perfectly

#

THEN I GET CLIENT_FETCH_ERROR???

hushed robin
#

time to scream at people in the discord devs server uhh

spark flint
#

like no code changes or updated etc

hushed robin
spark flint
#

i can't

#

because it does not say the cause of it

hushed robin
#

CLIENT_FETCH_ERROR
If you see CLIENT_FETCH_ERROR make sure you have configured the NEXTAUTH_URL environment variable.

spark flint
#
[next-auth][error][CLIENT_FETCH_ERROR] 
https://next-auth.js.org/errors#client_fetch_error undefined {
  error: {},
  url: 'http://localhost:3000/api/auth/session',
  message: undefined
}```
#

NEXTAUTH_URL exists

#

because its going to localhost:3000

hushed robin
#

idk

#

lol

spark flint
#

i've had it for multiple sites

hushed robin
#

i stole that from the internet

spark flint
#

lol

boreal iron
#

Not that I know your framework at all but the error let's me assume the client's session can't be fetched which probably means the client blocks all cookies

#

Just a wild guess

spark flint
#

well theres nowhere that blocks cookies

harsh nova
spark flint
#

and like

hushed robin
#

bro

spark flint
#

it worked 5 mins ago, then i restarted next.js (replaced a bot token), and it broke

hushed robin
#

ain't no way

#

i got banned from the discord developers server

spark flint
harsh nova
#

need discord 2

hushed robin
#

apparently emojis will no longer work even after it's fixed

spark flint
#

final words

hushed robin
#

bro

#

i got banned for sending too many emojis

#

wtf

#

😭

#

i kept forgetting you're not allowed to send emojis by themselves NEUT

harsh nova
#

Changes are being reverted for now. Going forward though, links with emoji in the title will probably not work.

hushed robin
#

that's stupid

#

literally why???

harsh nova
#

guessing this is related to discord starting to open up markdown to user accounts?

spark flint
#

markdown is already enabled in a few servers

#
hushed robin
#

now i need to manually remove emojis from all the game titles

#

and like half of roblox games has emojis in the title

harsh nova
#

love markdown

hushed robin
#

bun tell me what the guy replied

#

can't believe sending emojis got me banned

spark flint
#

can't wait to do this

hushed robin
#

stupid server

boreal iron
spark flint
#

yes and no

hushed robin
spark flint
#

they added a new popup to markdown links

hushed robin
#

stop bullying

spark flint
hushed robin
#

this is why i hate discord

spark flint
#

redesigned link modal

hushed robin
#

always adding these dumb changes that break stuff smh

#

i'm moving to guilded

boreal iron
#

That still doesn't prevent people from not reading the real url or disable the warning forever

hushed robin
#

guys

boreal iron
#

The popup already exists, names the url and people still and already fall for it

hushed robin
#

how can i strip all emojis from a string

spark flint
#

regex

hushed robin
#

tell me the regex

#

pls

spark flint
#
/<a?:\w+:\d+>/g```
#

untested but that should work

hushed robin
#

ok

#

i will test

spark flint
#

test wawa_dance test wawa_dance

hushed robin
#

for you

spark flint
hushed robin
#

bro

#

not discord emojis

spark flint
#

wut

#

oh

hushed robin
#

normal

#

default emojis

#

like \😁

#

\👍

#

\🔥

spark flint
hushed robin
#

sus link

spark flint
#

ok i'll send a hastelink with the code then

hushed robin
#

ok

spark flint
#

domain owned by me

#

so

hushed robin
spark flint
#

(codelink)

hushed robin
#

even sussier

boreal iron
#

Lemme guess we got new emojis?
What's new this year? Pregnant men smirk

hushed robin
#

what uhh

#

🫃

#

um

#

that doesn't make much sense uhh

#

interesting tho

lyric mountain
#

Oh wait

#

I actually wonder, does anyone ever use 99% of the available emojis?

#

Some are so fckin niche that it's hard to ever come by a valid context

boreal iron
#

Glad I didn't update my phone (yet)

boreal iron
#

lol

boreal iron
#

need to get rid of my memories of the past 10 minutes

topaz terrace
#

does 25$ per month for 20mbps expensive?

hushed robin
flat copper
#
getTime(dateStr, locale) {
  const dateObj = moment(dateStr, 'DDMMM h:mma').locale(locale);
  const ms = dateObj.valueOf();

  return (ms - Date.now())
}

dateStr = "18april 8:15am"
locale = "en-us"

but the ms i get is wrong

#

its 8:03 rn,

#

when i type "<t:<ms>" it shows "1:40pm"

pale vessel
#

The number should be in seconds, not milliseconds and it needs to be a timestamp

flat copper
#

im converting it into secs but still wrong

pale vessel
#

not just secs, but also a timestamp?

#

<t:${Math.trunc(dateObj.valueOf() / 1000)}>?

#

isn't that what you need?

flat copper
#

oh thanks

sharp geyser
spark flint
#

Lol

hushed robin
#

so

#

good guys have done bad things before

spark flint
#

lol

wheat mesa
#

I don’t even bother

#

So paranoid yet the same type of person to try to use a clash of clans free gems generator

spark flint
#

free robux generator

solemn latch
#

I HAD AN ACCOUNT

#

Lmao

#

oh the stupid things kids do

spark flint
#

enter your username and password and we'll generate you a new one!

solemn latch
#

The thing is, doing those stupid things I learned so much.

#

Those phases of doing stupid things are so valuable, and will be for my whole life

#

getting scammed on runescape, good life lesson

grim aspen
#

it's like the saying "playing stupid games allow you to win stupid prizes"

boreal iron
#

Is there any global function or methods available for fs in nodejs to get the file hash I'm not aware of or do I need to use the crypto module?

earnest phoenix
#

crypto

earnest phoenix
#

or make the hashing function yourself

boreal iron
quartz kindle
#

its still the correct way to do it

#

unless you wanna spin a third party pure js hashing algo, which will likely be slow for big files

radiant kraken
#

@wheat mesa helpful compiler suggestion

#

i've been doing this for hours now

earnest phoenix
#

💀

#

rust™

earnest phoenix
#

oh no

topaz terrace
#

anyone here know how to install wifi drivers on liveboot kali linux?

earnest phoenix
topaz terrace
#

learning

#

educational purposes

earnest phoenix
#

lmfao the

educational purposes
sentence

#

just go to the vendor of your network card and install the driver

#

as easy as installing a random software

topaz terrace
#

let me tell you the entire error

#

my limitations

#

first, i dont have any wifi/ethernet so i cant install some drivers.
I dont have my ethernet cables laying around, my router is kinda far from my pc and im using a wifi extender

earnest phoenix
#

You know USB keys are a thing

topaz terrace
#

ye

#

im using iphone

earnest phoenix
#

Then use that

#

Download the driver, put on USB key, plug in desktop/laptop, install driver

topaz terrace
#

ok

boreal iron
lyric mountain
#

liveboot
can u even install stuff on liveboot?

earnest phoenix
#

yes

boreal iron
#

You can download it from your Pc when connected to your phone after

topaz terrace
#

im using kali linux that is on a flashdrive

earnest phoenix
#

though not really useful to install on live mode

boreal iron
#

im using iphone

#

To download the driver

earnest phoenix
#

yeah probably some random message

#

i'm using sony headphones btw

topaz terrace
#

so i need to put the drivers on another flashdrive first and install it afterwards in kali linux?

earnest phoenix
#

it's an executable

#

so yes

topaz terrace
#

ok

earnest phoenix
#

i'm surprised people don't come up with such ideas on their own lmfao

quartz kindle
#

you dont need another flash drive

#

you can put it in the same flash drive

boreal iron
next storm
#

I'm facing a new issue with my bot. I'm using the correct token and when I'm trying to login, it's saying invalid token is provided. I've reset it 2 times, but still the same issue is arising

wheat mesa
#

Are you using environment variables?

#

You’re probably loading it wrong

next storm
#

nope, I tried doing console.log and it's showing correct

#

and even I tried to login directly by passing string as token in client.login

#

but still the same issue is arising

wheat mesa
#

Well something you’re doing is wrong, I can’t really help you without more details

#

Can you show your code..?

next storm
#

It's a large code, which part of it should I show ?

deft wolf
#

Token should be string no?

wheat mesa
next storm
next storm
# wheat mesa The part where you’re logging in
const AresClient = require(`./structures/AresClient.js`);
const client = new AresClient();

(async () => {
    await client.initializeMongoose();
    await client.loadEvents();
    await client.loadMain();
    await client.login(client.config.TOKEN);
})();```
#

it was working fine an hour ago

wheat mesa
#

I gtg but I’ll help later if you haven’t figured it out

next storm
#

but my bot gone offline without any reason

wheat mesa
#

Looking at this, it already doesn’t look right

next storm
#

I also tried using
curl -H "Authorization: Bearer token" -I "User-Agent: DiscordBot()" https://discord.com/api/v10/users/@me, but it's showing this

curl: (3) URL using bad/illegal format or missing URL
HTTP/1.1 401 Unauthorized
Date: Wed, 19 Apr 2023 16:12:26 GMT
Content-Type: application/json
Content-Length: 43
Connection: keep-alive
set-cookie: __dcfduid=f97613fadecc11ed8ff356de646c551a; Expires=Mon, 17-Apr-2028 16:12:25 GMT; Max-Age=157680000; Secure; HttpOnly; Path=/
strict-transport-security: max-age=31536000; includeSubDomains; preload
Via: 1.1 google
Alt-Svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400
CF-Cache-Status: DYNAMIC
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=N2odYgbgoXHHijoCsZLaW0Hgz7%2BUGWTq11A63ztmyHTStI7gr8doaxrrUFaJ3JxAnZra0aYDIt%2FyQ4Qgi6PeseydNCItCNtOo%2BEZ3Y6L4UbZ5Kq4yN%2Bg2CxvUYXQ"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
X-Content-Type-Options: nosniff
Set-Cookie: __sdcfduid=f97613fadecc11ed8ff356de646c551a41efa4809b0feeec4539a60f50f1088c01a55cc10703f3d70e1d25f92826dee2; Expires=Mon, 17-Apr-2028 16:12:25 GMT; Max-Age=157680000; Secure; HttpOnly; Path=/
Set-Cookie: __cfruid=9ca4f8e92cf3bc22e88a8b62326b7bcbfb90bea1-1681920746; path=/; domain=.discord.com; HttpOnly; Secure; SameSite=None
Server: cloudflare
CF-RAY: 7ba66dd44ee58a24-BOM```
earnest phoenix
#

A discord bot has no bearer token

#

It has a bot token

#

Authorization: Bot <Token>

#

Not Authorization: Bearer <Token>

wheat mesa
#

I highly doubt that client.config.token is your actual token btw

#

If it was, it would be working

earnest phoenix
#

Probably the client secret or something similar

wheat mesa
#

I still don’t even see where you’re loading that anyways

next storm
#

401 Unauthorized

earnest phoenix
#

Then your token is invalid and not a bot token

next storm
#

💀 bro I reset it for the 3rd time

#

and I simply copy pasted it

earnest phoenix
#

You know rate limits exist

next storm
#

is this possible because of rate limit

#

ahh

earnest phoenix
#

So even if you would reset and use the right token

#

shruggie

next storm
#

then what should I do now

earnest phoenix
#

Wait

#

And stop trying to reset your token

next storm
#

sadPepe ok

earnest phoenix
#

I'd wait up to 24 hours

slender wagon
#

so i noticed a website that was using a websocket for it's entire functions and the data passing through was encoded with binary

#

how does that work

#

it was using blazor btw

earnest phoenix
#

The client encodes the data and send to the backend.
The backend decodes and read the content.

The backend encodes and sends to the connected client(s).
The clients decode and read the content.

Very mind-blowing

slender wagon
#

how doesn't the significantly slow down the site

lyric mountain
gilded plankBOT
#

test

earnest phoenix
#

test

fringe aurora
civic scroll
quartz kindle
# slender wagon how doesn't the significantly slow down the site

depends a lot on the encoding methods but the internet is already binary to begin with, for example:

json:
object -> json string -> utf8 bytes
utf8 bytes -> json string -> object

meanwhile a binary enconding method can be much simpler and faster:
object -> binary encoded bytes
binary encoded bytes -> object

so depending on the actual encoding method used and the efficiency of the encoder and decoder, it has the potential to be much faster than string/json based data

stark abyss
#

Anyone know how to approach this practice problem? I feel like I am lacking some understanding or some information to solve this problem

earnest phoenix
#

schools teaching assembly like that should be abolished

stark abyss
#

I know right

earnest phoenix
#

nobody does that anymore, completely pointless

#

could've helped with actual asm but that's out of my knowledge kek

stark abyss
#

Like anything would help

lyric mountain
#

I mean, is it good knowledge to have? yes it is
But is it completely sadistic to teach it nowadays? definitely