#development
1 messages Ā· Page 140 of 1
const { REST } = require('@discordjs/rest'); const { Routes } = require('discord-api-types/v9'); const { token, clientId, guildId } = require('./config.json'); const commands = [ require('./commands/addadmin'), const rest = new REST({ version: '9' }).setToken(token); (async () => { try { console.log('Started refreshing application (/) commands.'); await rest.put( Routes.applicationGuildCommands(clientId, guildId), { body: commands }, ); console.log('Successfully reloaded application (/) commands.'); } catch (error) { console.error(error); } })();
You didn't follow the guide it seems
is this code full?
I'm sorry bro what in the hell is this formatting?
And I added my codes
then there's an error
it wont prevent you from running, javascript will simply ignore it
Read carefully
No error 
Eh
javascript barely has anything that prevents running
JavaScript won't ignore syntax errors, they're probably not sending the actual code they're running
I did same as the tutorial but ig I placed them wrongly because my codes are diff
And what happening with me wtf
You have a syntax error in the code you sent here
#development message
Not entirely, because #development message
You didn't structure the slash-command file correctly, read the guide
Though you should fix that syntax error first
And I don't think you're even running the file that contains the slash-command deployment code
Wtf
recode what? the syntax error?
replit has an auto-format button afaik
it was supposed to show, but I don't use replit so idk if it even highlights errors
also as I said, don't put your token on config.json
that file is visible to anyone visiting ur repl
I know I'll fix that later now I have tons of issues
surely hope you didn't give admin to your bot then
they can, your token is exposed
I have higher security bots he will get banned if he ban or kick or delete 2 channel in a short period
they can also use the bot to nuke the server
u don't get it, they'll not need to enter ur server
Yes they will use my bot my bot can't do anything
if it has admin, they can
The botnwill directly lose his role and get quarintined if he mess with something
They can mass join new bots
OR ban or kick
does not matter
if any user adds your bot
and someone gets your token
they can nuke ANY server your bot is in
Is in 1 server without admin perms
(and has admin)
Is this mine
yes
since I know people have replit scanners i am going to force revoke the token and you should use .env instead
Replit projects are public unless you pay for hacker plan
BUT you can use env variables which hide your secrets like tokens
.env works for replit secrets?
ah, so it's pre-installed
yeye
You can store sensitive information such as API keys, credentials, and more in your Repl with Secrets. Get started by clicking on the Secrets icon in the Tools section.
i revoked their token in case anyone tries to nuke
Oh now u can just fix my codes I don't mind
it's fun that u can force-revoke tokens by posting either on github or discord
i made this mistake once and a server i was mod for got nuked, so i am looking out for people who make mistakes like that
I'll reset it and add it in secret.env
Imagine using Replit anyway, use a VPS 
or a tool like mine that automates the github part
:p
does not break TOS either
just revokes the token using Github
Discord did dm me they are banning the user who got access

Jk
i know what the Discord DM looks like
does it have an api?
Ian stressed doing a 5 command bot taking me my life
What is this
i do this to all tokens I find on replit just to make people aware, and I leave info in the readme.md on how to secure your bot/account
the code for how I revoke tokens
I once had an idea about making an anti-invasion layer for my bot (registering which messages I send), but didn't know how to reliably revoke the token
basically if my bot sent any message that didn't come from my code it'd kill the token
yeah
fair enough
anyways @prisma nebula
wrong link
You can store sensitive information such as API keys, credentials, and more in your Repl with Secrets. Get started by clicking on the Secrets icon in the Tools section.
please follow this guide
Is it possible in the config.json to write something that eill link token to env?
I updated my code over 40 times today
That's stressing me fffffffffffffffffffffffff
you do client.login("TOKEN")
I use it but

replace the following ```js
client.login('YOUR TOKEN');
with the following ```js
client.login(process.env.token)```
Deploy*
and put the token in the .env part
But the deploy also need config.json
then change .setToken(token) to .setToken(process.env.token)
it doesn't, as I said before you don't need to create a new REST on that file
pass the client to it through params
creating a new rest will make the bot login again
is there a way to turn the keys of a json object to an array without using a for loop?
Object.keys()
ah that was the method I was looking for
Ok fixed
@spark flint is it possible for u to track error s and show me wheir my website isn't highliting
for how to enable error highlighting
you need to grab the token again
as bun revoked it
So he revoke public tokens by posting them in github?
Top.gg should do what I think pycord or whatever itās called does and auto revoke tokens sent
Because if someone sends a token here by accident itās better to revoke it lol
Unless it's happening very frequently, don't see this happening anytime soon
The reason they have it as it might be more common due to the nature of what the pycord server is for
still think the identity verification is a joke
yes leak your identity to discord or no bot for you
i dont know if any other platform does this
Discord never gets your ID
They REALLY don't want to get your ID
The only who handles it is stripe, which is pretty much a bank already, and they're heavily audited for potential data leaks
One message removed from a suspended account.
you reinvented an anonymous chat room
watch people use it to spam ads
:^)
pretty cool tho
One message removed from a suspended account.
nah leave it up to people's free will
One message removed from a suspended account.
One message removed from a suspended account.
@prisma nebula š ty for using .env
One message removed from a suspended account.
ever entered into one of those omegle secret chat rooms?
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
ive been there many times
its chaos lmao, but there is a moderator that bans people
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
lmao
One message removed from a suspended account.
One message removed from a suspended account.
oh nice, like a soft block
One message removed from a suspended account.
Np
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
do you know how to use the discord api without discordjs? for example fetching something or posting something to the api
One message removed from a suspended account.
either way is already is already something more than using just discordjs
but most typical non-js methods are using fetch because its a browser standard, and using http because its a nodejs standard
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
fun fact, i learned a massive amount of js from using djs
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
i use it for apis and services in general
as well as scripting
because its easy to use and fast to develop with
One message removed from a suspended account.
One message removed from a suspended account.
well, not very light weight in terms of resource usage exdee
One message removed from a suspended account.
One message removed from a suspended account.
python is on a similar level with js, but in recent years js evolved a lot faster than py did
py got kinda stagnant and from what i hear it suffers from performance issues
One message removed from a suspended account.
One message removed from a suspended account.
also known as microsoft java#
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
same, but even more from making libraries like my webserver
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
wouldn't a websocket be better for this?
One message removed from a suspended account.
One message removed from a suspended account.
lmao
One message removed from a suspended account.
a websocket is a persistent connection for sending messages back and forth
discord uses it
djs uses it to connect with discord
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
u could use websocket for posting too, but that's fine
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
i mean, thats what discord does
rest api for posting
websocket for receiving changes
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
a typical website has between 500kb and 2mb page size, including js and css, fonts, icons
could be 5+mb if it includes pictures
if you wanna save videos, be prepared for using hundreds of gb lol
tb*
actually didn't youtube reach pb in the last years?
way more than pb
you said you didnt want to save every single website
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
people upload around 24tb each day
One message removed from a suspended account.
yep, under the ocean
One message removed from a suspended account.
they have a bunch of underwater servers
One message removed from a suspended account.
One message removed from a suspended account.
google has one of those pills too
One message removed from a suspended account.
One message removed from a suspended account.
ms appeared on the news cuz it resurfaced
8x less failures than on land, however when there is a failure good luck replacing the parts
:^)
my name is max, its 2040, i work as a diving engineer, i replace parts in underwater servers
wait until they set servers on the moon
edge servers on the moon
to get low latency youtube
:^)
actually the earth moon latency is not that bad
1.3 seconds of light time, could setup sat to sat directional laser connection
earth mars latency howerver.... forget it
they already have a laser connection to the moon technically
they use the retroreflectors for measuring moon drift
light time from earth to mars is between 4 minutes and 20 minutes lmao
imagine using the internet with 10 minutes lag
imagine tcp with 10 minutes lag
at the closest
then for a few months you get no connection at all
cuz the fatass sun is blocking the way
use a proxy sat somewhere in between
place it at L4 or L5
image 500 years from now the solar system being full of nodes and relays
only really useful for emails tho
:^)
I never really understood how L2 works
like, both the sun and earth are pulling towards earth
L3, L4 and L5 are all in orbit, so it makes sense, and L1 is being tugged
ah, so L2 is in orbit too
L2 is pulled by earth and pushed by centrifugal force
The L2 point lies on the line through the two large masses beyond the smaller of the two. Here, the combined gravitational forces of the two large masses balance the centrifugal effect on a body at L2. On the opposite side of Earth from the Sun, the orbital period of an object would normally be greater than Earth's. The extra pull of Earth's gravity decreases the object's orbital period, and at the L2 point, that orbital period becomes equal to Earth's.
Quantum satellites won't have any lag
if we ever get to producing quantum entangled internet then distance wont matter at all
no idea how thats gonna work
if it even is gonna work
quantum teleportation would be game changing
We just need to digitize our consciousness and then we can upload it to a robot across the galaxy. Ezpz
basically you have 2 particles which are quantum entangled, meaning if you change something in one the other gets updated instantaneously
literally pass-by-reference
yeah i mean, how thats gonna work in practice, how to produce and maintain such particles
the year is 2500, i just bough a new quantum ram stick for my pc, hopefully this time it wont get hacked and have its entire memory replaced with porn
</comandName:commandId>
You mean something like this?
You are supposed to click it to jump to message
Yea
how can I save my authorization on git
so everything I wanna git pull I donāt need to type in my username and password
you can use a headless browser and capture all downloaded assets
scan for all links that navigate within said page
by looking for as
You can set the credential.helper config to store to do so
To globally do that run:
$ git config --global credential.helper store
And once you enter your username and access token, it'll be saved
Note that Git's credential store helper literally saves your access token in plain text without any encryption so be careful
why do i need to do allat
I encrypted it myself using GnuPG (GPG) and utilized Git's NetRC script (git-credential-netrc) to parse and decrypt it
Too much work for battleless
Since my GitHub account has direct access to large and important projects, I gotta be careful, but you should be careful as well
that is as simple as it gets
no this would be simpler
git login
gives me link to login with github
saves my username and password once logged in
then i no longer need to give them my password everytime
...did u even try what volt said?
because what u described is actually less simple than it is
also, remember that
no it's not
git is not github
omg
car vs carpet
Ham vs hamster
whos the carpet
github
bru
Brain hurt
github is a platform and repository for git projects
besides, you'd actually be able to do what u said if u used the VCS integration in vscode
i use github desktop
remind me, why do u use it if u edit the code with vscode?
Git is the version control system tool that allows you to create branches, edit across them, commit, rewrite history, and whatnot
GitHub is a repository host for projects that is completely compatible with Git, but it's not the only one, there's GitLab, BitBucket, and more
because it's simplier
One message removed from a suspended account.
Oh yeah
is vscode integration that bad? 
i also like to keep those two tasks separated
Imagine not using Git via command line :^)
it's simplier
but do you know what you are doing
imagine not being a genius that works for google
Intellij is pretty nice when it comes to git integration
Slash command can't be made just from 1 sheet of codes?
what
I mean without many files and folders
Mmm I love being a genius, the biggest nerd you'll ever see
how long is 1 sheet of code?
i mean it can
is it A4 or postcard?
And why do I have to create handlers etc
github is a service, pretty much like gitlab, bitbucket, ect.
and git is a tool you use to access them
you can even make your own version control system hosted on your machine (companies do that for their internal code)
how many bytes are we talking
I never used vscode VCS, or vscode at all tbh, I imagined it was similar to that
Itās kind of similar
I mean without doing tons of handlers and files etc
no VCS in CSP :(
Itās not the greatest UX known to man but itās good enough
Just 1 file
optimally there'd be only 1 handler
you can, but it will be a pain to maintain
i suggest splitting it out
separated command modules and a module registerer
Odk what ti do with my bot rn iam unable to fix
1 file might seem simpler as of right now, but as your project grows, multiple files make your life easier
Idk wheir the issues are
Witchcraft
Bro we told you what the issues are
how many issues did u get since yesterday?
Repl isn't showing wheir error os and bot working normally but the slash commands aren't showing
anyway if there was a runtime error, send the stack
bro
It doesn't say wheir
I sent u the link on how to enable highlighting smh
send us how you register them
Ok
they're not like message commands
lalushi, did u make any change since the last time volt helped u with the slashes?
const { REST } = require('@discordjs/rest'); const { Routes } = require('discord-api-types/v9'); const { token, clientId, guildId } = require('./config.json'); const commands = [ require('./commands/addadmin'),
const rest = new REST({ version: '9' }).setToken(process.env.token); (async () => { try { console.log('Started refreshing application (/) commands.'); await rest.put( Routes.applicationGuildCommands(clientId, guildId), { body: commands }, ); console.log('Successfully reloaded application (/) commands.'); } catch (error) { console.error(error); } })();
no, ffs u didn't
please do not format that code like that
holy shit
You didn't change anything š
this is worse than me
enable the highlighting as I said
Wheir exactly
How u use that font
KuuHaKu just alt f4 discord, escape
That's exactly where the syntax error is
One message removed from a suspended account.
and it's there because of this
?
see anything missing there?
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
this isn't even the only issue
you end a statement with ; not ,
One message removed from a suspended account.
they likely meant to make an array with requires
if i have a color how can i programmatically find a color that has good contrast to that color? some hex math?
Under ;
Wheir
^
One message removed from a suspended account.
man why are you even code on phone
and do you know what a statement is
One message removed from a suspended account.
everytime u open a door, u close it
My pc is broken
if u open the fridge, u close it
revolving doors too
if u open a {, u close a }
@proven lantern
and if u open a [...?
can i unblock u withhout u harassing me
while (open) { close() }
this is not elementary school
i think he can figure out what u mean
const commands = [ require('./commands/addadmin'),
^ ^
// Syntax error occured here (unterminated array)
// Hint: Remove them
e0c, shut
ok e0c
stop
One message removed from a suspended account.
@prisma nebula check this out
One message removed from a suspended account.
Me when people don't know about https://developer.mozilla.org/en-US/docs/Web/API/structuredClone to deep clone an object
One message removed from a suspended account.
Oh k
but my real name is battleless
when was it added
u want the 3-char username, you'll use the 3-char username
Alright let me clone you then, actually let me get a reference to you
One message removed from a suspended account.
call me by my display name
š
radiohead wrote a song about revolving doors. it proves that not all doors close
š¤Ø
you mean he should clone me
One message removed from a suspended account.
Faithe
One message removed from a suspended account.
i'm half-decent
revolving doors are just infinite loops where u forgot to set open = false
but go ahead and ask
One message removed from a suspended account.
i need a year š
what about barn doors?
those stay open
Fixed
i couldn't parse the query
I want to write SQL/make a project to learn proper SQL in Java, anyone have recommendations
ah
No more baby ORMs for me
so the UI repeats deleted messages?
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
deadlock issue
it has to do with mechanism of your message render list
Ok fixed the request thing
what framework / library is it in
jdbc
But still they don't show so now I need to change linking method
there are doors that open by themselves
it's like, the lowest u can go
there are doors that let you in and out, but never open
fortnite
there are trapdoors, that you can't come back from
well I meant more of a real use-case project to use SQL in
One message removed from a suspended account.
2022
perhaps I should try JDA again
ah ic
fn trap_door(unlucky: Person) -> !;
yeah, making a bot would be a good project for database
what's for frontend?
vanilla?
One message removed from a suspended account.
One message removed from a suspended account.
minigame website
known about it for years but every time i tried it it was slow af
:^)
Is their an issue with this in indexmjs js client.commands.set('addadmin', require('./commands/addadmin')); and this in addadmin command ```js
const { SlashCommandBuilder } = require('discord.js');
if (commandName === 'addadmin') {
// Check if the user is the owner of the bot
if (interaction.user.id !== '1002843443992743996') {
return await interaction.reply('You are not authorized to use this command.');
}
const admin = options.getUser('admin');
// Your code to add an admin goes here
await interaction.reply(`${admin} has been added as an admin.`);
}```
you can play using the bot or on the web in sync

java as backend / bot
Spice up your Discord experience with our diverse range of Discord Bots and Servers as well as other spaces to discover DAOs.
you should be able to check for yourself, no?
also
// Your code to add an admin goes here
This is another thing
u could attempt a bot + dashboard using grails
One message removed from a suspended account.
I mean about the linking between them
We've made it incredibly fast
that's true
never used grails personally, but it feels very similar to popular frontend frameworks
One message removed from a suspended account.
One message removed from a suspended account.
do you do tricks where it uses references when making a deep copy, but keeps track of it so it only copies when it needs to?
unhealthy
seems like it's meant for groovy
One message removed from a suspended account.
use sqlite
One message removed from a suspended account.
normal if you use a nosql database. which you should be
better sqlite3
not what my benchmark shows
One message removed from a suspended account.
i love sqlite
One message removed from a suspended account.
One message removed from a suspended account.
or maybe I could just make a bot with jda and make my dashboard with svelte and nextjs or something as backend
One message removed from a suspended account.
it has to do with the rendered messages
you didn't remove marked ones from the dom
you should something like a message id to it
to make the deletion easier
One message removed from a suspended account.
i wonder why that happens
it shouldnt happen at all
I mean, it is groovy
maybe because people do it concurrently and dont have some kind of queueing measure in place?
naive implementation
dynamoDB uses json.
but groovy can use java seamlessly, it is java
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
json isn't necessarily bad if you know what you're doing, but most people who use it as a storage format make it themselves and fuck up their "database" because they don't know what they're doing
One message removed from a suspended account.
why use sqlite when postgres exists
One message removed from a suspended account.
because mongo is š©
const { SlashCommandBuilder } = require('discord.js'); // Create a new Set to hold the IDs of all admin users
const adminList = new Set();
const command = new SlashCommandBuilder() .setName('addadmin') .setDescription('Add a user to the list of admin users.') .addUserOption(option => option.setName('admin').setDescription('The user to add as an admin.')); module.exports = { data: command, async execute(interaction) {
// Check if the user is the owner of the bot
if (interaction.user.id !== '1002843443992743996') { return await interaction.reply('You are not authorized to use this command.'); } const admin = interaction.options.getUser('admin'); adminList.add(admin.id); await interaction.reply(`${admin} has been added as an admin.`); } };
This is addadmin codes now
why use postgres when...nah, postgres is enough
One message removed from a suspended account.
It is not unless u use public things
One message removed from a suspended account.
it is
i store a list of my dependencies in a .json file
It entirely ports a value to a worker thread's message channel and receives it back for a fully deep clone
See https://github.com/nodejs/node/blob/main/lib/internal/structured_clone.js
bro this was almost 2 years ago
Bro have 100 face
One message removed from a suspended account.
i've improved a lot since then
i call it package.json
sanitized it ```js
const {SlashCommandBuilder} = require('discord.js'); // Create a new Set to hold the IDs of all admin users
const adminList = new Set();
const command = new SlashCommandBuilder()
.setName('addadmin')
.setDescription('Add a user to the list of admin users.')
.addUserOption(option => option
.setName('admin')
.setDescription('The user to add as an admin.')
);
module.exports = {
data: command, async execute(interaction) {
// Check if the user is the owner of the bot
if (interaction.user.id !== '1002843443992743996') {
return await interaction.reply('You are not authorized to use this command.');
}
const admin = interaction.options.getUser('admin');
adminList.add(admin.id);
await interaction.reply(${admin} has been added as an admin.);
}
};
Are you sure what you do is not a shallow clone and an actual deep clone?
One message removed from a suspended account.
One message removed from a suspended account.
postgres will stay the king of relational for me š
tf is a new Set
One message removed from a suspended account.
a collection with no duplicates
^
Thanks b
replit has an auto-format button, use it
The command should appear after fixing that?
dont libraries like immutable js get around doing full clones by keeping reference under the hood? i guess you'd have to enforce immutability to do that though
But it is fine
on a side note one question why doesnt js yet have a method that lets you deep clone objects (something like JSON.clone({ "clone": "this" })) instead you have to use a library or stringify it then parse it again
And still not shown any command
since ive been using orms like primsa relational dbs are the best thing in the world, noone can tell me otherwise
yes, because I didn't fix it
its quite a commonly used feature from what ive seen
What I should also do it is registered
It is not wrong
(I guess)
Because I fixed it
My fixes becoming useless
i also have this fancy package-lock.json file i use to store info about my dependencies. i check it into git
show where ur registering it
I did 100 time
One message removed from a suspended account.
those 100 times had a syntax issue
this is hard to watch
EXACTLY battle, EXACTLY
now you know what it felt like with you sometimes
now u feel it
const { REST } = require('@discordjs/rest'); const { Routes } = require('discord-api-types/v9');
const { token, clientId, guildId } = require('./config.json'); const commands = require('./commands/addadmin')
const rest = new REST({ version: '9' }).setToken(process.env.token); (async () => { try { console.log('Started refreshing application (/) commands.'); await rest.put( Routes.applicationGuildCommands(clientId, guildId), { body: commands }, ); console.log('Successfully reloaded application (/) commands.'); } catch (error) { console.error(error); } })();
bro
format your code
this is how people see our usual discussions
No, you can't do a fully deep clone while keeping a reference, that's just not how it works
100%
One se
One message removed from a suspended account.
const { REST } = require("@discordjs/rest");
const { Routes } = require("discord-api-types/v9");
const { token, clientId, guildId } = require("./config.json");
const commands = require("./commands/addadmin");
const rest = new REST({ version: "9" }).setToken(process.env.token);
(async () => {
try {
console.log("Started refreshing application (/) commands.");
await rest.put(Routes.applicationGuildCommands(clientId, guildId), {
body: commands,
});
console.log("Successfully reloaded application (/) commands.");
} catch (error) {
console.error(error);
}
})();
i know, but from the developers perspective it's immutable, but under the hood it's optimized
literally 2 seconds spent on prettier
Ok thank you
I literally showed an API that does exactly what you said already
https://developer.mozilla.org/en-US/docs/Web/API/structuredClone
(it's not fixed)
And wheir the issue now
is there where ur initializing the bot?
yes
you dont need to new REST, simply register through the client
thats what the guide says to do
Iak sending inage
eh, that's weird then
U talking to me?
this is from immutable.js
why separate it from the client
I mean, still doesn't make sense
const { REST } = require("@discordjs/rest");
const { Routes } = require("discord-api-types/v9");
const { token, clientId, guildId } = require("./config.json");
const commands = require("./commands/addadmin");
const rest = new REST({ version: "9" }).setToken(process.env.token);
(async () => {
try {
console.log("Started refreshing application (/) commands.");
await rest.put(Routes.applicationGuildCommands(clientId, guildId), {
body: commands,
});
console.log("Successfully reloaded application (/) commands.");
} catch (error) {
console.error(error);
}
})();
Is this wrong ?
no, I'm talking to battle
Wait fo this isn't mine
const commands = require("./commands/addadmin").data;
Does your function also deep clone symbols, unenumerable properties, and nested objects? As that's what a deep clone actually is
but u shouldn't do it like that anyways
Ty
u should loop through the commands folder
no, it doesnt care about any of that, it deep clones user-level things only, as thats all i need it to do
is the x array a reference?
no, its a copy
nested objects and arrays yes, but only enumerable props
š§
?
for (const cmd of commands)
Well that's why structuredClone() takes much longer because it does a true deep clone, what you're doing can simply be achieved via the spread operator (...), or the Object.assign() method
i think u should learn some javascript before making a bott
spread and assign only goes 1 level deep, i go unlimited levels deep
why don't u start with a basic bot?
Iam not seeing any error everything is right no redlines
I meed to finish this asap and it only have 5 commands
well, u wont finish it asap
as it is, you're walking in circles, you NEED to grasp the concepts before making it work
also
I just need it to announce new item and a command to chrck an old announce by it name and a ckmmand wheir u give perm for sm1 to use command to announce
That'd all
even json-json is faster
json minus json?
json into json
> false
Oh you go to unlimited depths, though since you ignore unenumerable properties it could be the reason it's faster
But I gotta say the implementation of ours is not that great because it ports and receives a value through an entire worker thread message channel, we'll definitely consider making it better, note the comment in the implementation
yeah, as a user-facing deep cloning method similar to what is accomplished by json stringify + json parse its currently not nearly fast enough
yes but this is not how it works, you can spend weeks throwing random words into the code, but if you don't understand WHY you're having those issues you'll never make something usable
but i am aware it goes much deeper than the standard user facing values
so for some use cases its appropriate
read the d.js guides, it wont take long (maybe 1 day if you're a slow reader)
Though note that it handles all types of values and not just objects
Which adds to its considerably high overhead
1 day?
then try to apply what you learn from it SLOWLY (make the bot start, then make ONE command, then another, and so on)
you must be a very slow reader
I know people who'd never finish reading a guide
yeah, although i could add support for more data types on my function if i needed them, but usually all people use is arrays objects and primitives, so i kept it simple for that purpose
the discord.js guide and docs are the only good ones in existence
4 years ago?
i can actually read them
from what im seeing here 2019
could be better than 20x slower tho :^)
I genuinely prefer reading through javadocs than d.js documentation
so yes
but as you said, the major overhead is probably the worker
4 years ago
Yeah that's the issue
i hope the cpu will last until 2028 š
cap
discord.js has the most readable docs
nahh
One message removed from a suspended account.
u only code d.js specifically
check my github
But note that it's a web API so we can't deviate from its specification, but we definitely gotta improve it
https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone
One message removed from a suspended account.
what docs
my first and second pinned isn't discord.js
the library docs?
One message removed from a suspended account.
oh yeah and C++ sdk docs too
very helpful 
what are you doing?
One message removed from a suspended account.
You guys should try doing Vulkan in C++
One message removed from a suspended account.
i just want to draw animations
One message removed from a suspended account.
But I love your back-end 
One message removed from a suspended account.
One message removed from a suspended account.
that one doesn't count
someone planning a chat app with only passing http requests and http polling

sounds not bad
One message removed from a suspended account.
just check every 1 second
One message removed from a suspended account.
One message removed from a suspended account.
- Valid
- Not finished (or working per se)
- D.js project
- Not a project
- Not a project
imagine that with 10000 clients vs. a single-threaded server
yea
i said the firs ttwo
not the others
only the first is a valid project
why
they were all javascript
the second u didn't even finish
bruh
what else is there to add
One message removed from a suspended account.
the rest of it
whats the rest of it
as it is u can't setup a bot solely with that project
One message removed from a suspended account.
well yea
i'm not doing allat
it's beyond my skills now
maybe in the future i will add onto it
then u didn't finish wrapping discord
I can barely do basic opengl š
bro
tim never reviewed my code
sites are literally 60% of js
yes
you have websocket
and that 40% is impossible for me
volt sent this
there's that list too
pretty good list of stuff on there
One message removed from a suspended account.
I'm going to attempt #90 in java
One message removed from a suspended account.
because I think it'll be fun
One message removed from a suspended account.
then it's not polling
all of this is beyond my skills
actually no
I'm gonna do it in rust
because rust is fun
(and because I can't be bothered to do parsing in java)
this is easy
some of this stuff is super easy
One message removed from a suspended account.
^^ my introductory AP comp sci class did this algorithm as an introduction to recursion
groovy 
what
that's for @ HMC
One message removed from a suspended account.
hold my cosmos
One message removed from a suspended account.
#general message
read from here
a network that makes decision
One message removed from a suspended account.
nah
it's a bunch of weighted nodes really
all you need is a training algorithm and a dataset
that is not easy
Itās a bunch of linear algebra at its core if you wanted to build it from the ground up
bro i am not a math genius
they are just matrixes doing math
However thereās tons of neural network models prebuilt for you to use
it's basic for every single computer science program
One message removed from a suspended account.
i just didn't attend class enough 
The āhello worldā of neural networks is identifying 1 digit handwritten numbers
compensate with a headpat now
Also I have decided on a project now
what project
Called āgoing to the poolā because I canāt be bothered to program rn
lmao
wtf
One message removed from a suspended account.
Classic Texas weather
yes
One message removed from a suspended account.
what the fridge
One message removed from a suspended account.
i should buy a ssd
Nothing like the good old heat of the southern US
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
Had a day where the āfeels likeā thing was 120 š
One message removed from a suspended account.
Itās crazy how fast I burn in this weather without a shit load of sunscreen
One message removed from a suspended account.
One message removed from a suspended account.
Not really
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
We just get like one winter storm every now and then where it shuts our state down for a week since weāre not used to any snow being in existence
just put a tawoll on your head
oh
One message removed from a suspended account.
Itās my chest, shoulders, and back that burn
bruh
Especially my upper back since itās difficult to reach with sunscreen by myself
One message removed from a suspended account.
bring an umbrella
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
yes
Yes
One message removed from a suspended account.
bru
One message removed from a suspended account.
š¤Ø
also UV ricochets off the floor





