#development

1 messages · Page 103 of 1

north cairn
#

yea?

lyric mountain
#

really?

#

ok so, for future reference, use a debugger when something isn't working the way it should, it's the easiest way to find out what values are being passed to the functions

north cairn
#

i generally find out by console

#

but this time diff case

#

so say where is the isue anyways

lyric mountain
#

console is great but it can't solve logic errors

#

simply because it doesn't cause "errors", as in, written errors

north cairn
#

yea

lyric mountain
#

see if you notice anything out of place here

north cairn
#

u c beforr also i had issue here

#

i dont remmebr how i fixed that time

north cairn
#

wait

#

should it be

#

client.slashCommand

lyric mountain
#

did u really write that code?

north cairn
#

yea i did when i was rlly new
saw some part fro internet but most of it i wrote

lyric mountain
#

you're retrieving a slash command using a slash command (not id)

#

and then executing the whatever thing returns from the function

north cairn
#

if i remove the last line
and then execute the slashCommand,it still shows errors

lyric mountain
#

"shows errors"?

deft wolf
#

What kind of errors?

north cairn
#

les say i do

slashCommand.execute(client,interaction)
#

it says that execute isn't a function

lyric mountain
#

show how you're registering client.slashCommands

north cairn
#

k

#
client.on('ready', async () => {
  const rest = new REST({ version: '9' }).setToken(process.env.token);

 
    
try {
        console.log('Started refreshing application (/) commands.')
        await rest.put(
            Routes.applicationCommands(process.env.applicationid),
            { body:slashCommands },
    );
  
    console.log('Successfully reloaded application (/) commands.')
  } catch(error) {
    console.log(error) ```
lyric mountain
#

that's where ur publishing to discord

#

I want to know where you're registering the variable client.slashCommands

north cairn
#

u mean in code?

deft wolf
#

Yes

lyric mountain
#

well ofc in code

north cairn
#

client.slashCommands = new Discord.Collection()

lyric mountain
#

and where are you populating it?

north cairn
#

index.js file

lyric mountain
#

the code

north cairn
#
const { readdirSync } = require("fs");

const Discord = require("discord.js")

const { REST } = require('@discordjs/rest');
const { Routes } = require('discord-api-types/v9');
const { token } = process.env.token;


const ascii = require("ascii-table");
const client = require("discord.js");
const { clientId }  =  process.env['applicationid'];
let table = new ascii("SlashCommands");
table.setHeading("SlashCommand Name", "Loaded Status");
const slashCommands = []



module.exports = (client) => { 
   
  
  readdirSync("./slashCommands/").forEach(dir => { 
    const commands = readdirSync(`./slashCommands/${dir}/`).filter((file) =>
      file.endsWith(".js")
    );
    for (const file of commands) {
      const pull = require(`../slashCommands/${dir}/${file}`);
      slashCommands.push(pull.data.toJSON());
         if (pull.data.name) {
        client.slashCommands.set(pull.name, pull)
        table.addRow(pull.data.name, "✅");
      } else {
        table.addRow(
          pull.data.name,
          `❌`
        );
       
      } 
    }
  
  console.log(table.toString());
  });
  client.on('ready', async () => {
  const rest = new REST({ version: '9' }).setToken(process.env.token);

 
    
try {
        console.log('Started refreshing application (/) commands.')
        await rest.put(
            Routes.applicationCommands(process.env.applicationid),
            { body:slashCommands },
    );
  
    console.log('Successfully reloaded application (/) commands.')
  } catch(error) {
    console.log(error) 
}
 });
  }```
lyric mountain
#

you're printing a table to the console, does it mention every command correctly?

north cairn
#

yes

#

3 commands i have in slash command,all 3 showing

deft wolf
#

What is pull.name here?

#

It should be pull.data.name no?

lyric mountain
#

good catch

north cairn
#

huh

#

y

#

ok fixed,now?

lyric mountain
#

see if it works

north cairn
#

k

#

@lyric mountain @deft wolf so i changed it to pull.data.name and changed the slash.execute to slashCommand.execute and now its working

lyric mountain
#

nice

north cairn
#

few days back ,one guy asked me

#

to inv to repl

#

seems like he did some sussy things

#

@lyric mountain any thanks bot u guys have

#

?

lyric mountain
#

what

north cairn
#

i mean

#

like

#

to thank you

#

-thanks @lyric mountain

#

like this

lyric mountain
#

there's no bot for this here

#

but you're welcome

north cairn
#

btw how many years into coding

#

u guys

#

me about 1 year

#

lot more to learn ig 😢

lyric mountain
#

16 I think, but most of it unrelated to discord or actual programming

north cairn
#

@deft wolf @lyric mountain thank you guys once again 🙂

north cairn
#

16?????

#

isn't that supposedd to be ur age lol

#

too many grown ppl here

lyric mountain
#

not really, I used to play gmod when I was 8

#

and my favorite mod was wiremod, which includes E2

#

which is technically programming

north cairn
lyric mountain
#

counting only real prog languages, about 4 years

#

somewhat yes, but not big corpo

north cairn
#

cool
Nice to meet you guys

lyric mountain
#

yw

wheat mesa
#

The Java god

lyric mountain
#

nah, far from it

north cairn
wheat mesa
#

Good morning

north cairn
north cairn
wheat mesa
#

7:45am here

north cairn
#

150*

lyric mountain
north cairn
#

and 2 years

lyric mountain
#

and cough delphi

north cairn
#

so kinda new to js?

#

i m sure u guys know python very well

north cairn
lyric mountain
lyric mountain
wheat mesa
#

I know pretty much no python other than basics, one day I’m sure I’ll have to learn it for build scripts and such

#

But until that day I refuse to touch python

north cairn
north cairn
lyric mountain
#

only 2 times I touched python were to make an automatic spotify ads skipper and an encryption executable

north cairn
lyric mountain
#

mostly to share sensitive files with my team over email

north cairn
wheat mesa
#

I have a Java certification pretest today (basically a test to see if you qualify for the school to pay for your full oracle Java certification exam)

wheat mesa
#

But the certification exam is so stupid

#

It’s all about archaic or obscure syntax and “will this compile” type shit, pretty much nothing actually related to programming

north cairn
wheat mesa
#

Just memorizing rules

north cairn
lyric mountain
#

at least they didn't ask you to fix their printer

#

most programming exams are stupid anyway

north cairn
#

my bot got denied from top.gg coz of a silly mistake ah

#

i made a dm command and accidentally wrote "administrator perm needed"

earnest phoenix
north cairn
#

and...

lyric mountain
#

they think a programmer needs to know if something will run or memorize functions and paradigms

#

while in real applications you leave all that to the IDE/compiler

north cairn
#

which country u guys from

#

usa right

#

ic

lyric mountain
#

brazil

north cairn
#

oh my

wheat mesa
#

US for me

north cairn
#

neymar fan for sure then?

#

idc i m cricket fan 🙂

lyric mountain
#

no, I hate soccer

north cairn
topaz terrace
#

why is my mongoDB findOne returning null even tho it is founded in the collection?

lyric mountain
#

show code please

topaz terrace
lyric mountain
#

I suppose your findOne is the one in line 77?

#

or line 28?

topaz terrace
#

line 28

#

the line 77 was a test

#

to see if the await Users.findOne return the document with the member Id init

lyric mountain
#

from what I see it should only return null in the first time someone is warned

topaz terrace
#

ye

#

but i warned that test dude alot of times already

#

and it always insert a new document

#

do you wanna see the schema too?

north cairn
#

jade u wrote that code combined in many langs?

topaz terrace
lyric mountain
#

don't think I know mongoose enough to understand a schema

topaz terrace
#

user storages

north cairn
topaz terrace
#

theres a ton of document with the same id

lyric mountain
#

you'll need someone else to help you with this one

topaz terrace
#

oh

#

ok

north cairn
#

@topaz terrace whats that platform u coding on

#

something new i saw

deft wolf
#

Thats mongoDB atlas

topaz terrace
deft wolf
topaz terrace
#

oh

#

what should i do

elfin cape
#

@topaz terrace what u want to do?

topaz terrace
deft wolf
#

Is member.user.id the same as message.author.id?

topaz terrace
#

ye

#

its not

deft wolf
#

Because you are creating a document with message.author.id as the id in database

topaz terrace
#

oh

#

wait

elfin cape
#

@deft wolf hey can u access the topgg api?

topaz terrace
#

wait

#

that works

#

thanks

deft wolf
#

Yea, api works

elfin cape
#

When the site gose down and till now

wispy heath
#

So I have a bot which has good amt of users . . . and am using aiomysql but recently am facing lots of error which are Failed to connect Connection timed out

Well I asked around and people are asking me to shift to mongodb but the thing is I have like 20 systems and shifting wont be easy as Ill have to almost recode 20 systems

#

What are your opinions?

#

To elaborate good amt of users ~ its more than a million users . . .

#

Ik not a big thing but kinda f up as it keeps crashing

lyric mountain
#

I'll ask you to move to postgres instead

#

Never heard about aiomysql, but there are probably better wrappers out there if u want to stay with mysql

#

If it's crashing it means you're not catching your promises, which leads to uncaught exceptions

#

Switching from sql to nosql is most of the time not worth it unless you'll be rewriting the entire codebase, and given you're dealing with users (so relationships) its more efficient to stay with sql

slender wagon
#

what does top.gg use to make that cool gradient on their site

#

that's some cool stuff

spark flint
#

well the site is chakra

slender wagon
#

hm?

#

chakra ui?

spark flint
#

ye

#

#ff336633

#

thats the top of the gradient

slender wagon
#

oh ok

feral aspen
#

Man, I hate Next.JS, it's confusing.

lyric mountain
#

@wheat mesa how did the test go?

slender wagon
#

it's a nextjs thing to confuse u

#

apperantly the eslint rules become way more strick when you build it

feral aspen
#

Not sure why all the blog posts would disappear when I build and not during the development.

feral aspen
wheat mesa
#

I only need to pass one of them

lyric mountain
#

btw, I continued the game project but got hooked by the project, ngl this is pretty fun to make

wheat mesa
#

Lol

#

Yeah using ECS is pretty fun to mess around with

lyric mountain
#

wdym by "ecs" btw?

wheat mesa
#

Entity component system

#

Every entity has a set of reusable behavior called components, which are updated by systems that iterate over the entities with specific components

#

My components in there are like the TransformComponent class, and the example systems are like the FontRenderSystem and PhysicsSystem (but I haven’t worked much on those yet since I’m working on getting the engine working before that)

lyric mountain
#

ah, that

wheat mesa
#

It’s basically what Unity uses

#

And many game engines have some form of it

#

It’s nice because the behavior is easy to reuse and it’s super fast and cache friendly

lyric mountain
#

@wheat mesa got it in a somewhat "done" state, wanna see it?

wheat mesa
#

Sure

civic scroll
lyric mountain
#

made it in a different way, maybe went a bit too overboard lmao

#

oh wait, one of the files didn't commit

#

ok, now it's there

#

feel free to clone it to analyze or fork if u want, just learned how to use Semaphore in that project

#

was supposed to have a boss at round 10, but I suck at space invaders

rustic nova
#

KEKW this is mood

#

make game, shit at own game

lyric mountain
#

lmao

#

meh just noticed discord cut the gif short

wheat mesa
#

Might try to make a similar clone of this using my engine to test it

lyric mountain
#

sure

sterile vault
rustic nova
#

nicely done, making it object oriented also allows it to be used with more than 1 bot

wheat mesa
#

@lyric mountain I was the only one out of 53 students to pass my exam!!!

lyric mountain
#

niceee

wheat mesa
#

Lol

#

Barely passed it but still

#

Means the school will pay for my $500 certification exam when it comes to the real thing

#

Worth it

wheat mesa
#

thanks C:

lament rock
#

damn

#

1 out of 53

hushed robin
#

guys

#

how do i make canvas not leak my memory

spark flint
#

Hi, Phil Swift here with Flex Tape! The super-strong waterproof tape! That can instantly patch, bond, seal, and repair! Flex tape is no ordinary tape; its triple thick adhesive virtually welds itself to the surface, instantly stopping the toughest leaks. Leaky pipes can cause major damage, but Flex Tape grips on tight and bonds instantly! Plus, Flex Tape’s powerful adhesive is so strong, it even works underwater! Now you can repair leaks in pools and spas in water without draining them! Flex Tape is perfect for marine, campers and RVs! Flex Tape is super strong, and once it's on, it holds on tight! And for emergency auto repair, Flex Tape keeps its grip, even in the toughest conditions! Big storms can cause big damage, but Flex Tape comes super wide, so you can easily patch large holes. To show the power of Flex Tape, I sawed this boat in half! And repaired it with only Flex Tape! Not only does Flex Tape’s powerful adhesive hold the boat together, but it creates a super strong water tight seal, so the inside is completly dry! Yee-doggy! Just cut, peel, stick and seal! Imagine everything you can do with the power of Flex Tape!

#

that is a joke

hushed robin
#

flex tape 🤩

topaz terrace
#

this is what i got

#

for commands2 log

#

afk - sets an AFK status
av - get an avatar of a user
dm - dm a member
help - displays all available commands.
lookup - look up a user with a specific discriminator!
membercount - shows current member count of the server.
say - say a certain word
ui userinfo - check for user information

kill - kill a member
sex - get sexual with a member

ban - ban a user.
banner - generate a banner with the user's name
kick - kick a user
lock - lock a channel
mute - mutes a user
nickname - nickname a user
purge - purge a certain number of messages in a channel
role - assign or remove a role from a user
serverinfo - displays server information
serverpfpset - sets the server profile picture.
slowmode - slowmode
s snipe - snipe a message
unban - unban a user
unlock - unlock a channel
unmute - unmute a user

whole knot
#

"s snipe"?

#

Oh, that looks like the argument

topaz terrace
spark flint
#

sex - get sexual with a member
sussy im not gonna ask what the commands are for this bot 😭

topaz terrace
#

i wanna try to add () for the aliases but i cant seem to do it

topaz terrace
hushed robin
#

real question is why are you using message commands

spark flint
#

fr

#

also that

topaz terrace
craggy pine
#

slash commands are fast. animeshrug

hushed robin
#

slash commands are faster

#

you don't need to read through every message sent

topaz terrace
#

uh

#

ok

hushed robin
#

but idk abt your actual issue tbh

#

doesn't it say whats missing

topaz terrace
hushed robin
#

a value in what

topaz terrace
#

but i added commands 2 as the fields value

#

wait no

#

oh

hushed robin
#

field is empty

topaz terrace
#

hmm

whole knot
#

Yeah, was about to say that this is probably related to an empty field LOL

topaz terrace
#

whyis there an empty array when i log commands

#

there shouldn't be any empty array

hushed robin
#

cus

#

your array is empty

topaz terrace
#

bruh

whole knot
#

I would simply print something inside the loop to see if it's even doing what you want

topaz terrace
hushed robin
topaz terrace
#

how do i check if the string has a empty space?

hushed robin
#

like if it equals a space?

topaz terrace
#

o

hushed robin
#

o

topaz terrace
#

oh

#

i forgot to add

#

the category object

#

inside the module.exports

hushed robin
#

💩

hushed robin
wheat mesa
#

flex seal like bun said already

hushed robin
#

that only works with real life leaks 🤬

hushed robin
#

someone plssssssss help

lyric mountain
#

Hard innit, when the hands are no longer feeding

hushed robin
#

😔

topaz terrace
sharp geyser
#

Your code is contradicting itself

#

Is warnID a string or a number

#

also what exactly is warnIndex at the end of you using forEach

topaz terrace
#

oh

#

forget about it

#

i fixed it

#

but now

topaz terrace
#

nope

topaz terrace
#

theres no error too

hushed robin
earnest phoenix
topaz terrace
#

oh

earnest phoenix
#

mhm

topaz terrace
#

is ; optional?

#

why is it being used in JS?

civic scroll
#

yes it's optional btw

#

without semicolons you can't put many statements in one line tho

earnest phoenix
# topaz terrace why is it being used in JS?

Okay let's omit semicolons for a moment, tell me, what do you think happens if you run this?

const foo = 9 ** 5

(async () => {
  const bar = await someFunction(foo)

  for (const baz of bar)
    await someOtherFunction(baz)
})()

(Assuming that someFunction and someOtherFunction exists)

civic scroll
#

ReferenceError: someFunction is not defined\n\tat async (anonymous) (Message 4:21) Trolled

earnest phoenix
#

Or just even a minimal version:

const foo = 9 ** 5

(() => console.log(foo))()
radiant kraken
#

it also adds... trailing commas 🤮

radiant kraken
earnest phoenix
# radiant kraken no semicolons >>>

No, omitting semicolons doesn't even make the code cleaner and also makes it much harder for the parser to actually parse expressions and statements, every sane programming language will enforce you to use semicolons (almost every mainstream programming language enforces this) or at least automatically place missing semicolons as much as possible (JavaScript does this, see https://tc39.es/ecma262/#sec-automatic-semicolon-insertion)

radiant kraken
#

no semicolons look just way cleaner and faster to code imo

#

idk it's just personal preference

earnest phoenix
radiant kraken
#

like imagine if prettier has no .prettierrc.json

earnest phoenix
#

Hopefully Google's YAPF Python formatter is going to solve this problem

radiant kraken
#

and forces users because yknow "iT cOmPlIeS wItH A sTaNdArD"

earnest phoenix
radiant kraken
#

or Linux with no rice

earnest phoenix
#

To be fair most Linux users don't even care about customizability to an extent of ricing, but it's good to have anyway

#

Unlike Windows and macOS that have limited customizability

radiant kraken
#

ill customize you

earnest phoenix
#

I'll rice you to a lovely extent

civic scroll
radiant kraken
#

imagine ```json
{
"a": 2,
"b": 3,
}

civic scroll
#

mmLol someone's ocd would like to disagree with this

sturdy basalt
earnest phoenix
#

also, I'd be curious to hear your thoughts on languages like Python that utilize whitespace and indentation for similar purposes; do you believe this approach is equally effective in ensuring clarity and ease of parsing, or do you maintain that semicolons are irreplaceable for achieving optimal code readability and parsing efficiency?

earnest phoenix
earnest phoenix
# earnest phoenix what is your perspective on ASI's potential to inadvertently introduce bugs, giv...

Going by the rules we've written to the ASI, the ASI cannot produce bugs if the user understands what expressions have relations to the others, such as function calls tracing back to the qualifier if it wasn't terminated with a semicolon

About misinterpretation by developers, if you're talking about the implementers of the programming language these are basic rules compared to all the others in the whole standard so it's highly unlikely for them to misinterpret it, but it can happen and it has for different areas of the standards, but this has happened for every programming language standard

#

Especially the grammars of the C++ programming language standard, such as templates which have puzzled implementers for a long time

earnest phoenix
# earnest phoenix also, I'd be curious to hear your thoughts on languages like Python that utilize...

Semicolons are indeed irreplaceable for the general purpose of ease of parsing and readability, utilizing whitespaces and indentation for contexts and scopes makes things much harder to parse as it involves trickier token consumption, lookbacks, and lookaheads, especially the trace backs which causes lots of problems because it has to ensure where specific grammars are allowed while also accounting for all the context and scope in such a manner

#

There's a reason why is breaks when mixing tabs and white spaces at the same time, parsing everything sucks

#

Yeah

earnest phoenix
# earnest phoenix Going by the rules we've written to the ASI, the ASI cannot produce bugs if the ...

Yeah your point is true regarding ASI and it's potential for producing bugs are reasonable. It's true that if a developer fully understands the rules governing ASI and the relationships between expressions, the likelihood of introducing bugs due to ASI would be minimal. Well It's understandable that, given the complexity of programming language standards, implementers might occasionally misinterpret specific rules or concepts, which has indeed occurred in various languages, including C++.

Btw, speaking of C++ and its challenging grammar, particularly in the realm of templates, I'm curious about your thoughts on concepts, a feature introduced in C++20 to enhance template programming (https://en.cppreference.com/w/cpp/language/constraints). Do you think Concepts effectively address some of the complexities and pitfalls that have long troubled C++ developers and implementers? Considering the importance of readable and well-structured code, do you believe that the use of Concepts can improve overall code quality, or do you think their adoption might introduce new challenges and potential misunderstandings among developers?

earnest phoenix
earnest phoenix
# earnest phoenix Semicolons are indeed irreplaceable for the general purpose of ease of parsing a...

Mhm yeah thanks, about your perspective for semicolons, indentation, and whitespace in programming languages. Your perspective on the trade-offs between languages like Python and those that use semicolons and braces for scope delimitation offer valuable context for understanding the complexities involved in designing a programming language's syntax. It's clear that striking a balance between readability, ease of parsing, and maintainability is crucial for a language's success and user adoption. 🤷

earnest phoenix
# earnest phoenix Yeah your point is true regarding ASI and it's potential for producing bugs are ...

C++ concepts are pretty useful and have been getting adopted by the developers all around, it helps with multiple cases of type deduction and selection, boundary checks, and such, but it also introduces even more grammar complexities especially considering how incredibly complex C++'s overall grammar is, given that they can also be used with templates and a new requires clause, it makes it hard to implement properly, this caused multiple front-end (the front-end is the parser, AST builder, and everything similar) issues in our Clang compiler but we've fixed them though there are a few more to be fixed

earnest phoenix
# earnest phoenix C++ concepts are pretty useful and have been getting adopted by the developers a...

It's not surprising that some areas still need attention. Addressing these concerns might involve refining the implementation of concepts to ensure correct parsing and handling of complex grammar combinations, improving diagnostics to provide clearer error messages, and optimizing the compilation process to prevent potential performance degradation due to the increased complexity. Providing thorough documentation and examples (real) to guide developers in using concepts effectively can help reduce misunderstandings and promote best practices

earnest phoenix
#

Though we have multiple people who are members of the C++ Standard Committee in our implementers group so it becomes easier to spot issues

#

Considering that we're also a group of 2,000+ implementers... WiseTree

earnest phoenix
# earnest phoenix Correct, it's funny that some parts of the C++ programming language standard (es...

It's indeed fascinating how the complexity of the C++ programming language standard, particularly its grammars, has led to a situation where implementers not only report issues to the C++ Standard Committee but also actively contribute to fixing mistakes that have caused confusion. It's a testament to the collaborative nature of the programming community and the shared goal of improving language standards and tools for everyone

#

Having members of the C++ Standard Committee within your group of implementers undoubtedly makes it easier to spot issues and maintain a strong connection between language development and real-world implementation. With 2,000 implementers working together, it's evident that there's a wealth of knowledge and experience being shared, which greatly benefits the continuous improvement and evolution of the C++ language and its ecosystem

#

Yep, absolutely

radiant kraken
#

great essays

#

@earnest phoenix wait you're a member of the C++ standard committee?

earnest phoenix
#

But we do have multiple members of the C++ Standard Committee in our group

#

Though I might become a member of the C++ Standard Committee

radiant kraken
#

i don't want to read docs from 2001 just to install something

#

god making cross-platform programs in C++ is borderline impossible

earnest phoenix
#

Well, package managers have nothing to do with the standard of a programming language, the user-land (users) implement one for convenience but I'm not sure how incredibly complex it would be to make a C/C++ package/dependency manager

radiant kraken
#

yeah

#

the Makefiles, CMakefiles, specific compiler flags for specific OSes and Architectures, behaviors of specific compilers, requirement for a dependency to be installed first...

#

it's a giant mess

earnest phoenix
radiant kraken
#

and several other package managers

#

like Chocolatey, Conan, etc

#

@earnest phoenix this screams Rust traits to me

earnest phoenix
#

It pretty much is a Rust trait

#

i'ma create a Rust version of your protonug

#

I would like to see you do that

radiant kraken
#

i have been planning of rewriting protonug in Rust but i don't understand on how to do the tar part

#

again i'm not experienced in working with tar.gz files

#

@earnest phoenix if you do pls dont use reqwest thanks

earnest phoenix
#

I won't

radiant kraken
#

also i use a Windows machine

#

so i can't test it

radiant kraken
#

native-tls my beloved

earnest phoenix
radiant kraken
#

nah

#

i'll just refactor sanz's code

#

or just learn Rust yourself

#

become one of us

earnest phoenix
#

I don't know that shit

radiant kraken
earnest phoenix
#

:^)

uneven tartan
earnest phoenix
radiant kraken
#

@uneven tartan

#

hi hi

loud canopy
#

I want to like thirty thousand credits and I need help. Can you help me?

deft wolf
#

With what exactly?

loud canopy
#

Buy a server

deft wolf
#

What kind of server?

loud canopy
#

عربي؟

uneven tartan
loud canopy
#

| (• ◡•)|

#

I have 30k left, can you give it to me? @deft wolf

radiant kraken
uneven tartan
#

tired

deft wolf
#

I don't understand what you want from me

lyric mountain
#

I still don't get what they're trying to say

loud canopy
deft wolf
#

What credits and what does this have to do with any programming?

uneven tartan
#

probably trolling ignore them

lyric mountain
#

are topgg credits (if that's what they mean) even transferrable?

radiant kraken
#

why are you always tired

uneven tartan
#

cuz sleep schedule borked

radiant kraken
#

damn

earnest phoenix
earnest phoenix
radiant kraken
#

also don't forget to credit Voltrex as the original developer

earnest phoenix
#

mb

radiant kraken
#

i'm too busy rn, will refactor later

earnest phoenix
#

what repo

radiant kraken
#

look at his github

earnest phoenix
#

okay

radiant kraken
#

also @earnest phoenix instead of .ok_or(STRING_LITERAL)? you can use .expect(STRING_LITERAL)

#

it would panic instead of passing it into a Box<dyn Error>

#

you should try out things like clippy

earnest phoenix
#

permission denied

earnest phoenix
#

bro Replit is shit

#

can't even use the git command properly

radiant kraken
#

why are you using Replit

earnest phoenix
#

just turned off my computer

radiant kraken
#

did you rewrite protonug in Replit

earnest phoenix
#

nah

#

I'm on my computer earlier

#

fuck this bro

#

this new Replit authentication update is shit

earnest phoenix
#

no code

neon leaf
#

you didnt show code

earnest phoenix
spark flint
#

i feel like this is the worst place to ask

#

because thats for another bot list

#

also you did ```
"url"

#

true

neon leaf
#
let x: string | string[]

x = Array.from(x)

// x should now always be an array of all strings in x, basically string -> [string] & [string, string] -> [string, string], right?
earnest phoenix
#

Also consider not using Axios, because it contains lots of bloat and is a source of very strange errors, use something like https://undici.nodejs.org/

#

Hey! I wanna learn making bots. What language is recommended and where do I start?

sudden geyser
#

The most popular languages are JavaScript and Python

#

Python for bots has somewhat waned over the years but it's still very popular

#

If you'd like to start with JavaScript Discord.js is the most popular library for that

#
#

Of course, it depends on what you're making

earnest phoenix
#

Okay I understand that. But it's just I- I don't know where to begin.. I tried it sometime. I wanna make a multipurpose bot. Like for example something with a embed builder. Reaction roles etc. I mean it doesn't matter what I make. I'm just very interested in discord bots 😄

sudden geyser
#

I'd recommend by starting with some tutorial on how to use one of the languages

earnest phoenix
sudden geyser
#

Then you can use one of the libraries for the language to build something

#

There are many guides online on how to add certain functionality to bots when programming

#

So most of your time will probably be spent learning how to apply stuff

earnest phoenix
#

Then yeah do what Klay said, pick a beginner friendly programming language like JavaScript or Python and look up guides for them, spend time to learn it's basics and fundamentals, and finally choose a Discord API library made for the programming language you've learned and make a Discord bot with it

slender wagon
#

uuh what do i do if there is conflict between react versions on a library i am trying to install

spark flint
#

--force

sudden geyser
#

when/where does the conflict occur

earnest phoenix
slender wagon
spark flint
#

not that i know of

#

i get conflict errors with next.js and libs using react 17

#

--force is what fixes it for me

slender wagon
#

all i am trying to do is @material-ui/core

earnest phoenix
#

Can you show the actual conflict errors you're encountering?

slender wagon
#

npm i @material-ui/core
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @0.1.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! react@"18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/core@4.12.4
npm ERR! node_modules/@material-ui/core
npm ERR! @material-ui/core@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry

earnest phoenix
#

Then you'll either have to use React 17 or contribute to @material-ui/core to update it's React version to 18, or you can use the --force (-f for short) CLI flag to force installation but it can be broken

slender wagon
#

it already broke so i'll try to install react 17

#

i found something on stackoverflow

npm install @mui/material @emotion/react @emotion/styled --legacy-peer-deps
npm install @mui/icons-material --legacy-peer-deps

neon flicker
#

I'm just wondering

sharp geyser
#

Voltrex is as old as dirt ngl

earnest phoenix
crystal furnace
#

https://discord.com/developers/docs/resources/invite#invite-resource I am viewing DiscordAPI about invites, there is no method that we can use to know the source that people use to join our server (like Twitter, Youtube, ...), but I don't understand why some Discord bot like Invitelogger can do that?

Discord Developer Portal

Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.

earnest phoenix
#

As for external sources like YouTube, Twitter, and whatnot, the bots might be creating a custom link that points to the invite, and keeps count of how many people visit it's custom link

slender wagon
#

can i push data to my mongo database with the api of nextjs?

deft wolf
#

I had the code for invitelogging in v12, I have no idea if it would work on v14

#

From what I remember, I found this code on github just because I needed something to learn mongodb

deft wolf
#

This one iirc

neon leaf
#

so Im trying to make a radio mp3 that when you access it goes through all files in the songs folder, it works for the first song, it gets played fine but at the second one nothing gets transmitted anymore, why?
https://pastes.dev/Z5EN70lvYr

#

like throttle.on('data', console.log) will spam on the first song but send literally nothing on the second one

hushed robin
lyric mountain
#

it's been 3 days already, by that time you'd already have solved it if u even tried

#

hardly anyone will answer, because those who could answer were stepped onto by you

hushed robin
#

it's been less than 24 hours

#

lyric mountain
#

^

#

since then nobody answered a single question

hushed robin
#

i don't need help with that anyone

#

figured it out myself

wheat mesa
#

figure this one out yourself too

hushed robin
#

this one is too hard

wheat mesa
#

sucks to be you then

hushed robin
#

fr 😭

#

😤

wheat mesa
#

I thought there were so many other people out there to help you

#

ask one of them

hushed robin
#

there is

#

i probably should ask in another guild 🙍‍♂️

#

but imma try here first

hushed robin
#

so

#

i can still ask 😘

slender wagon
#

why is dotenv such a strugle with nextjs

cloud relic
#

its been about 3 weeks or so for my bot to get approved, should i keep waiting or contact

spark flint
#

you submitted 10 days ago

#

not been 2 weeks yet

wheat mesa
#

love it when 3 weeks = 9 days

#

breaking news: the definition of a week is now 3 days

topaz terrace
sharp geyser
hushed robin
sharp geyser
#

Google knows

hushed robin
#

google does not know

#

☹️

sharp geyser
# hushed robin google does not know

It does cause I just googled and found a possible solution though it’s completely unknown whether it’s relevant to you since you provide no fucking code

sharp geyser
#

No

hushed robin
#

🤨😢😭

sharp geyser
#

You google it yourself if I can do it then you can

#

It was literally my first result as well

hushed robin
#

what did you google

sharp geyser
#

Exactly what you’re asking

hushed robin
#

i don't see a solution

radiant kraken
#

@earnest phoenix is it possible to turn ```py
def a(b):
if c:
return True

```py
def a(b):
  if c:
    return True
``` by just using Regex substitution/replace?
#

nvm ```py

equivalent to x.replace(/(\n| {4})? {4}/, y => y[0] === '\n' ? '\n ', ' ')

re.sub(r'(\n| {4})? {4}', lambda y: ' ' if y.group()[0] != '\n' else '\n ', x)

earnest phoenix
#

can be like this:

# equivalent to x.replace(/((?:^|\n)) {4}/g, '$1  ')
re.sub(r'((?:^|\n)) {4}', r'\1  ', x)
radiant kraken
#

or that whole (?:^|\n)

#

also why double brackets

earnest phoenix
# radiant kraken what does `?:` do

?: is a part of a non-capturing group in regex. It allows you to group expressions without capturing the matched content

(?:^|\n) means either the start of the string (^) or a newline character (\n) but doesn't capture the matched part

earnest phoenix
# radiant kraken also why double brackets

because they are used to define the non-capturing group and the outer group. The outer group ((?:^|\n)) is a capturing group to include both the start of the string or newline character followed by four spaces. This helps to replace the matched part with the desired content while keeping the (^|\n) part intact

radiant kraken
#

what's that all about

earnest phoenix
#

it's a backreference in regex. It refers to the content matched by the first capturing group. In this case, the first capturing group is ((?:^|\n)), which matches either the start of the string (^) or a newline character (\n)

#

so when using re.sub(r'((?:^|\n)) {4}', r'\1 ', x), the \1 in the replacement string will be replaced with the matched content from the first capturing group, either (^|\n). This helps preserve the (^|\n) part while replacing four spaces with two spaces in the string

#

all good?

radiant kraken
#

not yet

#

my mind needs to process your highly technical explanations

#

i don't what you just said and am just gonna copy-paste your code anyway

#

thanks

earnest phoenix
#

after my preacher curl, I'll explain it more

hushed robin
radiant kraken
#

@earnest phoenix why tf is Python's default encoding ASCII

#

that's probably the worst default encoding to use in your programming language

rustic nova
#

Lol

#

Glad copilot does the utf-8 passing for me so i never bothered

radiant kraken
#

UTF-8 >>>

#

based encoding

rustic nova
#

UTF-16 doe pogbruh

#

Actually what's the purpose of UTF-16

#

Just larger charset?

radiant kraken
#

fixed-width bytes maybe

#

instead of variable-width

rustic nova
#

Yeah probably

radiant kraken
#

UTF-16 is good tbh but endianness ruins it 😭

rustic nova
#

Though tbf, dont think you'd use UTF-16 unless you're providing international applications that allow content that is non-alphabetical

#

alphanumerical*

radiant kraken
rustic nova
#

Well Windows is a special case on everything

#

🗿

neon leaf
#

how can I remove a listener from a eventEmitter? it has alot of listeners on the same event so I need to delete a precise one (nodejs)

earnest phoenix
# neon leaf how can I remove a listener from a eventEmitter? it has alot of listeners on the...

you can remove a specific listener from an event by using the removeListener method. first, you need to reference the listener function that you want to remove. here's an example:

const EventEmitter = require('events');
const myEventEmitter = new EventEmitter();

// define your listener function
const myListener = (message) => {
  console.log(`received: ${message}`);
};

// add the listener to the event
myEventEmitter.on('myEvent', myListener);

// emit the event
myEventEmitter.emit('myEvent', 'hello world!');

// remove the listener from the event
myEventEmitter.removeListener('myEvent', myListener);

// emit the event again (but the listener is already removed)
myEventEmitter.emit('myEvent', 'no output this time');

the myListener function is added and then removed from the 'myEvent' event. After the listener is removed, emitting the event again won't have any output.

neon leaf
#

thanks!

earnest phoenix
neon leaf
#

this should be correct then, right?

earnest phoenix
#

oh my god the formatting

#

and missing types

#
const endRequest = options?.endRequest ?? true;
const destroyAbort = options?.destroyAbort ?? true;

ctx.waiting = true;

const dataListener = (data: Buffer) => {
  if (!Buffer.isBuffer(data)) {
    data = Buffer.from(data);
  }
  res.write(data, 'binary');

  ctg.data.outgoing.total += data.byteLength;
  ctg.data.outgoing[ctx.previousHours[4]] += data.byteLength;
};

const closeListener = () => {
  if (endRequest) {
    ctx.events.emit('nowaiting');
  }
};

if (destroyAbort) {
  ctx.events.once('endRequest', () => stream.destroy());
}

stream
  .on('data', dataListener)
  .once('close', closeListener);

ctx.events.once('endRequest', () => {
  stream
    .removeListener('data', dataListener)
    .removeListener('close', closeListener);
});

yeah it's correct

neon leaf
#

this code will run alot of times, will it still work if that exact code applied an event listener a few times before already, aka will it always remove the listener it actually created?

earnest phoenix
#

yeah

#

when you add a listener using stream.on('data', dataListener) and later remove it with stream.removeListener('data', dataListener), it will only remove the specific listener that was added in the same scope

neon leaf
#

ok, good

#

thanks again

neon leaf
#

do you know what could cause my "radio" aka an audio that looks for local files and plays them together though a website (https://pastes.dev/zIJcB65D3D) doesnt work on some specific audio files? like I have 2 rn that work without issues and loop infinitely but some other ones are from the same creator but dont work and when they switch to one of the non working ones it does a small sound & then you need to refresh for it to work? like generally what do I need to look for

earnest phoenix
#

I have a question for everyone:
I need a bot who can manage clans and is easy to use for newbies. Do you guys have something like that?

deft wolf
#

No

earnest phoenix
#

:[

earnest phoenix
#

how to remove status bot like this

deft wolf
#

Something like

client.user.setStatus('online');

?

rustic nova
#

thats an application, not actually a bot

#

these do not have online-statuses

#

http-based bots

crystal wigeon
#

Hey guys so im trying use the <t:1679077771114:R>

#

but it says its <t:1679077771114:R> which is wrong, when i use new date i get this - Fri Mar 17 2023 23:59:31 GMT+0530 (India Standard Time)

#

am i supposed to use UTC ms?

rustic nova
#

seconds from epoch

#

divide it by 1000 and round it

#

you're currently using milliseconds from epoch, which is incorrect

crystal wigeon
#

gotcha

#

thanks

earnest phoenix
radiant kraken
#

@earnest phoenix is GitHub Wiki good for writing documentation

#

or can you recommend something else

earnest phoenix
earnest phoenix
radiant kraken
#

my python library

rustic nova
#

Ngl

#

Gitbook is better

radiant kraken
#
dry imp
#

thats true

rustic nova
#

Python-libraries always tend to use readthedocs lmao

radiant kraken
#

what about JS library devs

#

like most of the time they would just straight up make their own website

earnest phoenix
radiant kraken
#

i have one TypeScript library and it's undocumented for months now

earnest phoenix
radiant kraken
#

also it's hard to automate a GitHub Wiki

earnest phoenix
#

People do use GitHub Wiki, but mostly for FAQs and instructions, or similar

A very good example of this would be https://github.com/Automattic/node-canvas/wiki

GitHub

Node canvas is a Cairo backed Canvas implementation for NodeJS. - Automattic/node-canvas

#

But yeah you shouldn't use it for documentation

earnest phoenix
#

Because as I said, people most of the time don't expect the documentation to be in the wiki

#

And as you said, automating GitHub Wiki is not easy

radiant kraken
#

@earnest phoenix to be honest, is documentation really necessary when you already have docstrings?

#

like you can just rely on IDEs to display them

rigid maple
#

Can I play the audio played on one channel simultaneously on another channel using another bot?

#

I will use 2 bots, 1st bot will listen to the sounds on the channel and transfer them to the other bot, and the 2nd bot will play the incoming sounds simultaneously.

frigid robin
#

Any way I can make pycharm understand the references (with CTRL+B) from cog functions?

swift tusk
#

How can I get info if someone voted for my bot (webhook, etc)

lyric mountain
#

the webhook will receive a vote notification whenever someone votes automatically

#

you just need to set it up

tulip ledge
#

Sounds like something that could be used with malicious intent not sure if it’s ok for discord tos but you could use a recording library (if that exists) and send it through an api to your second bot

#

@rigid maple

tulip ledge
rigid maple
tulip ledge
#

You mean instantly?

#

Or what do you mean make your code synchronous?

rigid maple
#

yes, it is spoken on one channel, I want to pretend that it is spoken on the other channel instantly.

#

sorry for my bad english

tulip ledge
#

Stream it

cursive musk
#

Stupid question

#

But why is the "profile views" not showing up? I've tried like the top 3 and none of them work.

sudden geyser
#

can you link where you put that

cursive musk
sudden geyser
#

as in can you paste the url of the page you're on

#

I assume it's github

cursive musk
#

yeah

#

for my profile page

sudden geyser
#

you seem to already use markdown images via the syntax so I don't see why it wouldn't be working

#

and it works for me on a markdown tester (though it's commonmark and not github's flavor)

#

or maybe

cursive musk
#

yeah idk

#
<details> 
    
  <summary>💻 GitHub Profile Stats</summary>
  <br/>
    <p align = "center"><img src="https://github-readme-stats.vercel.app/api?username=ishaantek&show_icons=true&theme=tokyonight" /></p>

<p align="center"> <img src="https://github-readme-stats.vercel.app/api/top-langs/?username=ishaantek&layout=compact&theme=blueberry" /></p>
  <br/>
  <b>Note:</b> Top languages is only a metric of the languages my public code consists of and doesn't reflect experience or skill level.
   <br>
![Profile views](https://gpvc.arturio.dev/ishaantek)
  <br/>
    
</details>
sudden geyser
#

yeah I know why now

cursive musk
#

?

sudden geyser
#

you have markdown inside html

#

so it's just going to render it as text

cursive musk
#

ohh

sudden geyser
#

since you want aligning you're better off using <img> with alt=...

cursive musk
#
<p><img src="https://gpvc.arturio.dev/ishaantek" alt="Profile views"></p>
sudden geyser
#

yes

cursive musk
#

Something like that right?

#

Thanks!

hushed robin
hushed robin
#

ditch node?

wheat mesa
#

You’ve been nonstop asking for the last 48 hours, I think it’s pretty clear nobody is going to answer you

#

Especially because you (as usual) have given no details on your issue other than “how do I stop this”

hushed robin
#

waffle stop replying if you have no answer

#

I need an answer you’ve said the same thing 3 times

wheat mesa
#

Stop asking questions if you’re not going to give details required to answer them

hushed robin
#

what details bro

lyric mountain
#

Imagine if memo leak was as easy as finding a hole in a boat

hushed robin
#

it'd be easier to fix too\

lyric mountain
#

Besides, I don't think "memory leak" means what you think it means

hushed robin
#

it doesssssssss

#

my bot is constantly restarting because it's hitting 200mb of memory usage

#

which is very high

lyric mountain
#

...yk anything image-related is going to put you over a few tens of mb right?

#

Anyway, that's as far as I'll go, up to you to solve it

hushed robin
#

😢

#

stop replying if you can’t help

#

(one sec trying to find the emoji)

#

😤

#

if anyone knows pls spam me with pings

lyric mountain
#

Except I didn't reply, did I?

#

I made a comment on waffle's message

#

Besides, I'm free to answer as I see fit, you can make a new post on stackoverflow if you want only serious answers

wheat mesa
#

200mb is literally nothing in js, plus you don’t even know if the “leak” is coming from canvas anyways because I highly doubt you even tried ANYTHING to confirm that

lament rock
#

good luck trying to read heapsnapshots

hushed robin
#

you made useless comments that didn’t help ☹️

hushed robin
#

memory only starts rapidly increasing when I use the commands that use canvas

wheat mesa
#

Crazy

#

Debug it yourself then

vocal igloo
#

would anyone be able to help me figure out some code, possibly thru pseudo code, for how to "properly" update bot stats via the api? (using node.js)

hushed robin
#

If you don’t wanna help then don’t reply

#

smh

lyric mountain
#

Before that I commented on waffle's

#

As I said, go to stackoverflow if you want serious answers, otherwise tank it

#

We tanked your comments before

#

Btw waffle, how's the game going?

earnest phoenix
#

just don't talk to Battleless

#

he's hopeless

wheat mesa
vocal igloo
earnest phoenix
#

last 2 days ago, yesterday, earlier, and now

lyric mountain
hushed robin
vocal igloo
earnest phoenix
#

i see

earnest phoenix
lyric mountain
#

It's basically a "ticket" system used for managing multithreaded tasks

#

Like, if you make a semaphore with 4 slots you cannot have 5 threads executing the same thing

wheat mesa
#

It kinda means “only this many threads can access this data at a time”

lyric mountain
#

Until a thread returns the ticket

#

Imagine like a bus

vocal igloo
#

ahh so basicallly talk to other processes that could be on a different thread

vocal igloo
lyric mountain
#

Not exactly, it's more like a way to reserve a spot in processing something

#

Idk what's CAN

hushed robin
lyric mountain
#

Imagine this:

  • You make a semaphore with 2 spots
  • You create 10 threads and make them execute something, each claiming a spot in the semaphore
vocal igloo
#

i have no idea how to explain it properly but basically its a bus to allow multiple things to talk to each other (thats how it was explained to me)

lyric mountain
#

The first 2 threads will be able to claim it, while the other 8 will be put in a queue

earnest phoenix
hushed robin
#

😞

lyric mountain
#

So until one of the threads return a spot, no other thread will be able to claim one

hushed robin
#

why

lyric mountain
#

This guarantees you don't get a ton of threads doing the same thing

#

In the project I did I used it for preventing CMEs

vocal igloo
#

this may or may not make sense to you but it sounds like pooling for DB

lyric mountain
#

Since the render thread cannot use the entities set at the same time its thing modified by the simulation

earnest phoenix
#

asking a question, then not believing or accepting the answers, and not treating the helper with respect 🤷

hushed robin
#

bruh

lyric mountain
hushed robin
#

no one gave me an answer

vocal igloo
#

im still getting used to it and am in the process of redoing my bad earlier code and man its been a trip lol

lyric mountain
#

The only difference is that semaphores aren't necessarily synchronized, since 2 or more threads can have a spot

earnest phoenix
#

a guy who is very hopeless and helpless and who goes up to people every day to start stupid fights

hushed robin
#

I’ve been trying to find an answer got days my bots performance is being very hurt from canvas memory leaks that I can’t fix

earnest phoenix
#

lmfao, I'm done with this guy

lyric mountain
#

While queues are synchronized (only one task at any moment is being executed)

hushed robin
hushed robin
#

I just want help

#

☹️

earnest phoenix
#

last time, he's into Sayuri, then into me, then into someone else, then into KuuHaKu now

#

😂

hushed robin
#

me and kuuhaku aren’t fighting

lyric mountain
#

Nah, my time was several days ago

earnest phoenix
#

oh then

lyric mountain
#

Now I use the teachings of Sun Tzu

#

"The best fight is the one you don't need to fight"

#

And "If the enemy is doing a mistake, don't tell them they are"

hushed robin
#

do you guys have another good js server I can ask for help

earnest phoenix
#

lmfaoo

hushed robin
#

what’a funny

earnest phoenix
#

basically he's mentally destroying and trolling everybody he talks to

hushed robin
#

bro what

#

what does that have to do with a js setver

earnest phoenix
#

talk to a brick wall, but I'm leaving you here

vocal igloo
# hushed robin I just want help

i looked for your past 48+ hr messages regarding the issue and there are key details missing which are preventing me(or anyone) from helping. you are asking for help but are not clarifying. memory leaks can range from many items and can be blinded. for example, im missing info like the package name, library your using, steps you tried already, what you have been told. and i dont mean "well this guy said blah but didnt give link"... sorry you wont get the help you want with out all details

hushed robin
earnest phoenix
#

u ain't no worth my time 😉

earnest phoenix
lyric mountain
#

Btw wonder if I can make the game multiplayer

#

Shouldn't be too hard ig, I just need a main menu

vocal igloo
#

what game u making kuuhaku? and what engine u doing?

lyric mountain
#

It's the side project i did earlier, it's a space invaders-like game

hushed robin
earnest phoenix
#

why not code your own engine and use it Kuu Troll_Face

lyric mountain
#

Meh I pinged myself

earnest phoenix
#

u gotta watch jdh on YouTube

vocal igloo
lyric mountain
#

Jdh?

vocal igloo
lyric mountain
#

Not exactly "AI", just brainless enemies that shoot continuously and have varied movements

earnest phoenix
# lyric mountain Jdh?

yeah, he's completely writing games on scratch, and writing a new engine just to run his game

vocal igloo
earnest phoenix
#

some were made on Assembly

lyric mountain
#

Naaaah thank you, chris sawyer was enough for a millenium

hushed robin
earnest phoenix
#

oh alright then

vocal igloo
earnest phoenix
lyric mountain
#

Chris, not tom

#

It's the guy who made RCT

earnest phoenix
#

ah

lyric mountain
#

99% assembly, 1% C

earnest phoenix
#

a Tycoon game

earnest phoenix
lyric mountain
#

And the most succesful game in the century

#

And that shit doesn't even have bugs

#

Idk, he was just born different

earnest phoenix
#

insane

vocal igloo
# hushed robin yes discord.js but that isn’t causing it

but yet again i refer to what i said earlier, missing details; i was working off of assumptions. not the best of ways to look for help. lots of downtime cause by that. Discord,js is known for memory problems as well depending on the version. node canvas also known for problem. is there bad code? for example variables that lead to nothing, endless operations, proper try catch?

lyric mountain
#

It's like the Holy C guy

vocal igloo
lyric mountain
#

Idk how or why they one day woke up and thought "meh, imma make an insane project today"

hushed robin
#

and my code is pretty barebones

vocal igloo
lyric mountain
#

Lmao average day in a dev life

#

A huge pile of started projects that may or may not be resumed

vocal igloo
lyric mountain
#

But it's essential to have one, else you lose interest and get out of touch

vocal igloo
hushed robin
#

how would a catch statement prevent a memory leak?

#

there’s nothing to catch

vocal igloo
lyric mountain
#

They don't get examples btw, it's always taken literally

hushed robin
#

what wrong thing

#

by bare bones I mean if I remove one thing in my code it won’t create what I want it to

#

there’s nothing extra

vocal igloo
# hushed robin what wrong thing

ill refer to what i said earlier, you are looking for the cookie cutter answer which you wont get.

as far as the wrong thing this could be a misused method, wrong variable assignment, redundant code, etc.

wheat mesa
#

“But I need it done for me 🥺”

hushed robin
#

nothing is wrong in my code

#

🤨

vocal igloo
hushed robin
#

im not assuming

#

I’ve checked over my code many times

lyric mountain
#

Not with a profiler, I suppose

#

Or reading a thread dump (does js even have this?)

vocal igloo
#

u have to use chrome i think/something similiar

hushed robin
vocal igloo
#

are the image proportions the correct ratio? @hushed robin

hushed robin
#

what do you mean by that?

#

what’s the correct ratio

vocal igloo
#

for canvas/any image processing program, wrong ratios can cause memory spikes

lyric mountain
#

Narrator: "And they went looking for solutions there"

vocal igloo
lyric mountain
hushed robin
#

i don't know what this means

vocal igloo
# hushed robin i don't know what this means

if you dont know what it means, then that means you have research todo sadly.. it takes time but is needed so you know what you are doing; I.e. lookup what you dont understand

hushed robin
#

i don't like doing research 😔

#

what do i google

vocal igloo
#

examples could be something like "what is <term to look up>?", "how does <blank> affect <blank>?

hushed robin
#

damn

#

thanks for the help

#

i think imma just let it slide tho cus it sounds too advance for me

wheat mesa
#

Asks for help
Immediately rejects any help because it’s too hard

#

This is why we don’t like helping you 🤦‍♂️

earnest phoenix
earnest phoenix
hushed robin
#

you guys have already helped me a lot tbh

sudden geyser
#

why do you only want to be known as a leech here

radiant kraken
#

@earnest phoenix does dependabot also take into account of devDependencies?

hushed robin
sudden geyser
#

fact checked: FALSE!

hushed robin
#

please stop the defamation

#

it's illegal

rocky bear
wheat mesa
hushed robin
#

I can sue you for that btw

wheat mesa
#

Can’t tell if you’re serious or not

#

But if you’re serious that’s somehow more ridiculous than the average john barilaro defamation lawsuit

earnest phoenix
untold geyser
#

yoo I need some help

#

my iframes have scrollbars, is there anyway to get rid of that?

#

@dense flame should i add overflow-x: hidden; to css within the description, or the webpage the iframe points too

dense flame
#

should work if you add it within the description

#

just add it inside the style tag

untold geyser
#

alr

untold geyser
#

its still has the scrollbar, and its still like- mini sized

sharp geyser
#

Is that the scrollbar of the page or the iframe

#

If its the scrollbar of the page then overflow-x: hidden wont work

untold geyser
#

hmm alr ill check that

sharp geyser
#

Youd have to apply overflow-x: hidden on the body but that doesn't make sense and probably isnt allowed since it would prevent people from scrolling on the bot page

hushed robin
#

I could sue you

#

am I going to? no

untold geyser
#

where its one big thing

sharp geyser
#

Those aren't iframes

#

they are just styled divs

untold geyser
#

fml

#

so in theory, if I transfer the html and css code over to the description, it should work like that

sharp geyser
#

Maybe I don't really know how top.gg handles html and css I dont use it

untold geyser
#

I can confirm it works

earnest phoenix
hushed robin
#

pls block me again

#

anyways guys i have a question so i have a canvas how can i get it in a previous state

#

like i want to remove something that i have added

earnest phoenix
#

changing the topic because he really can't sue anyone with that reason

hushed robin
#

no i'm asking a question

earnest phoenix
#

still changing the topic 🤡

#

"anyways"

#

hopeless clown 😭

hushed robin
#

not sure how you say i start arguments when you're literally trying to start one right now

earnest phoenix
#

ain't starting one, just stating the fact that you can't sue no one

#

meanwhile you're still saying that you can

#

when you cannot

earnest phoenix
#

I'm done with ya peep

dense flame
#

u forgor the x

#

or is everything good now?

untold geyser
#

iframes just wernt working for what I wanted it to do, so what I did was just put the code for the website I was trying to show with the iframe, into the description itself

#

works perfectly now, and it looks cool asf

dense flame
#

oh i see. Great then

sterile vault
rustic nova
#

though tbf, probably better to have other devs working around php to approve that merge

hushed robin
rustic nova
#

yes