#development
1 messages · Page 166 of 1
where
Question on postgresql that Tim answered earlier but that I am now learning I should probably use a different design for: I have a table items, which has a field modifier_groups integer[], which points to IDs in a table of modifier_groups. I am learning that using arrays is a bad design in a database, but I'm not sure how else to handle it. An item can have multiple category groups, or none at all. Any ideas?
the alternative for arrays is simply another table
so kuuhaku
lemme boot up drawio
no
why ❓
❓
Srry got busy
Basically, have your items' id as a foreign key in modifiers table
When u want to select them, simply use an inner join
Because I don't want to
any good resources on foreign keys? I'm completely used to using ORMs and not raw SQL so I'm trying to be a better person by using sql instead lmfao
(regardless I've never used foreign keys)
Something like this? ```postgres
CREATE TABLE IF NOT EXISTS products(
id integer PRIMARY KEY,
name text,
price integer,
category text,
);
CREATE TABLE IF NOT EXISTS modifier_groups(
id integer PRIMARY KEY,
name text,
item_id integer FOREIGN KEY,
);
CREATE TABLE IF NOT EXISTS modifiers(
id integer PRIMARY KEY,
name text,
price integer,
modifier_group integer FOREIGN KEY,
);
lmao redemption arc?
foreign keys are basically references to properties in other tables
item_id would reference id, and depends on the latter existing
I keep seeing something about REFERENCES, is that something I need to look into?
references dictates which fields a FK refers to
I still don't see how this allows me to reference multiple items from one entry though
if u declare it on the field u dont need to worry abt it
SELECT *
FROM products p
INNER JOIN modifier_groups mg ON mg.item_id = p.id
INNER JOIN modifiers m ON mg.mod_id /* IMPORTANT */ = m.id
hm, wait
I think I misunderstood ur structure
anyway, note the inner join there
let's say we have 1 product with 10 mods
it'd return 10 lines with the product side repeating on every line (because it's 1 product), but the modifier_groups side unique to each
if you wanted to get only the mods you could do SELECT * FROM modifier_groups WHERE item_id = :id
which'd return the 10 mods, without the parent (product) table
it's hard to explain in text, make a simple structure so u can see it physically
okay so I have a basic thing set up with the query tool in pgadmin, here's the products table
And here's a modifier group I made
However I don't know how to get that group to apply to multiple items
Do I just need multiple entries for the same value
That kinda sucks
dont u use intellij?
have modifiers reference group_id
when ur gonna retrieve all mods from group Toppings, you'd do SELECT * FROM modifiers WHERE group_id = 1
not for this, using go + vsc
in sql it's not exactly "one value contains multiple values", but "one value is referenced by many values"
yeah my solution for now is just duplicating entries
I'll learn more on how to do this properly later
modifier_groups
id | group_name | product_id
1 | Toppings | 1
modifiers
id | mod_name | group_id
1 | Test | 1
2 | Fizz | 1
3 | Buzz | 1
see how group_id is the same for all?
they're children from Toppings
and as such u can fetch them by Toppings's id
is it a bad idea to use a string as a primary key
IDs are guaranteed to be unique by the API that's supplying my data, but they come in string format
Yes but that's not the point, in terms of database efficiency is it a bad idea
I should probably just have a separate column and use an auto generated primary key
no
TOS momento
sir
i am almost 100% sure you’ve broken the tos of a website
it’s not like i am doing anything bad
this is for benefit
And yet it’s still against discord ToS to help you
Plus I don’t like you so there’s that 😛
That's why no one has helped him. Common sense but I guess he lacks it or something
If it works like any normal web hook then u can. But I can't say for sure as I don't use them on top.gg
Yes they both work individually, but I wanted one to show who voted and one to give rewards to my users
that's why I was asking if multiple on top.gg was allowed if so how?
no it's not
no you lack it
bud
How? You break discord tos I don't. I knew people didn't help you bc of it you didn't. Seems to me if u do have common sense I have more of it 💀
i don't break discvord tos
Nah, major reason is simply from past experiences helping him
Would u surprise you if I said that doesn't shock me?
yes because you don't know me
🤔
Infamous even
no
i don't know who mr. void is
they just spawned here recently
Funny bc I've been here longer. So if anyone spawned in here it's you since your been here for 1 whole week
Oof
Then got banned after him appeared here with this account for mute evasion
Somehow he's still here
So why isn't this account banned or muted?
Who knows, maybe he appealed
Idk from thr aditude he has I'd say he didnt
lol
a moderator decided to ban me for mute evasion even though my mute was over
why would i still be banned, it was false
i didn't make an appeal he just realized his mistake a few minutes later and unbanned me
and why do you think that
hm?
what is against discord tos
what i'm making doesn't even relate to discord in anyway
so i'm confused
lol
Assisting the breaking the TOS of other services (even unrelated to discord) within discord is against their TOS
ok
though i don't think i'm breaking spotify rules
i mean if you can use it is it rlly private?
Yes because it’s not intended for use by regular users
That’s like saying “Walmart keeps their doors open and I can take products off of the shelf, is it really stealing if I don’t pay for it?”
thats a really bad synonym
bc if walmart was private they would have locked doors and security etc
to prevent you from using it
but spotify api i wanna use doesn't seem to have any locked doors keys security etc
it's just there
and yet why do you still have trouble getting it to work
bc
i’m not too smart like that yknow
that’s why i kindly ask for some assistance
it does have locked doors
as in, it requires a user token to access
and you are exploiting user tokens by pretending to be a user browing that page
wow
you get a key to the store just by going there?
in a way you do
you are given the right to be on the property by entering the store, however this right can be revoked by the store owner/manager at any time for any reason
walmart is a private establishment and maintains the right to trespass you for any reason they deem fit
you break the terms that you implicitly agree to when entering the store, they can kick you out
same concept applies here
you are breaking the terms of them giving you that token
its intended use was for users, not to be used as an api
ok
so i can use the api until they kick me out
you're essentially saying "so i can steal from walmart until they find out"
ethical dilemma at that point
but you're not going to get help for it here
what your saying makes a little sense
but not much because there's a big difference between a store and api
so there's a very different ethical difference
that's for you to decide, either way you're violating the terms of service
literally in their developer tos
Would google be breaking their TOS since they're literally indexing Spotify
Or Discord even since their embeds display all of the tracks in a playlist or at least the first 100 as per the HTML OG meta tags
They likely have an agreement
I'm not saying that it's entirely unethical, just that he's breaking their TOS, therefore we cannot help with it without breaking discord TOS ourselves
who cares about spotify anyway, if they have an unprotected api just use it
The unprotected API is the HTML OG meta tags
Cool error 
this thing is just messed up, i also tried using .each(guild, async() => {}) but still
its discord.js v13.14.0
The <Collection>.array() method was removed, use <Collection>.values() to iterate over the collection's values
oh
yooo it worked ❤️ .
hey guys
my teacher kinda confused me in algo and data structures today
this is dfs.
DFS uses a stack right? I also learned that always the left element will be added to the stack at first.
So in that case the stack has [Q,S] after exploring L. However, this means that due to the LIFO principle of stacks, S must be discovered first right? Why did my teacher choose q tho
my boy I have zero clues about what that means lmao
chitty after a few weeks:
isnt it sorted in some way?
its probably using alphabetical sorting or something
or some kind of approximation to the target value, ie, which of Q or S is the closest to what i want to find
anyone use mongoose/ mongodb much?
I had a query that gets all the users to sort them for the leaderboard. yesterday it worked just fine. Now that query takes about 10 seconds. There's been no large increase in users and I don't think I changed anything about the query??
the collection only has about 1200 documents and like I said yesterday it took a second or two.
i also tried .lean and .limit, limit of course works if it's like 10 documents but still at 100 or 1000 or with no limit it's very slow
why dont u fetch all data (unsorted) and process locally?
and that's taking 10 seconds?
yeah
how many entries are we talking about again?
1200 documents
console.log("1");
let userLeaderboard = await UserProfile.find({});
console.log("2");
quite primative but the time between 1 and 2 is about 10 seconds
i took off the lean and limit but I did try those
well userLeaderboard becomes an array of object (at least object adjacent) items, so I sort it depending on the leaderboard type
but the sorting takes no time at all
relative to this
ik, what I mean is, did you write find or is it from mongo?
it's mongoose
right that's why Im confused
lemme get the schema
(also I'm more confused bc it was super quick previously)
also there's a possibility that your mongo server is overwhelmed
yeah that's kinda what im thinking
it's like the free cluster so I may need to upgrade
ah, free, yeah you wont go very far with it
u can download mongo locally and run on your server
True, it's very easy to set up
hmm ok ill look into that
obviously I don't want it locally hosted so can any web server host it? I already have a vps and also use digital ocean, can either of those handle it?
yep
Of course, you can host it on any vps to be honest
I feel like I'll do all the work to set that up and then it won't even be that as the issue 
gotcha gotcha
still, you NEED to figure out the issue
else you might find yourself scalling vertically
which is not cost-effective
not what I mean
o
like, if you're having issues with 1200 now, it might get better after u move away from free
but then it might happen again at 2000
and you'll need to upgrade
then happen at 3000, upgrade again
it's better to find the issue now before it snowballs
oh yeah I see what you mean
I know you litrally just explained the danger in this, but is hosting on my droplet more cost efficient than just upgrading? I'm not the most proficient when it comes to setting stuff up (efficient and effectively) on vps' n stuff, so if its a few extra dollars a month to stick with mongodb's server i don't really mind
but maybe I just should bite the bullet and configure it now, so that like you said I don't need to keep scaling db costs
that does seem pretty logical
try to optimize the most you can, if it's still slow, then upgrade
finding 1200 documents may strain the network as well
if you're getting the entire json data for each document, that can amount to quite a bit
possibly multiple MB of data in a single request
thats why pagination exists
and selectivily chosing which fields to return
oh yeah I did try that
I forget what the method was called but you selected the fields to return, but that didn't help
then pagination
how long does the request take if you limit it to like 10 documents?
what about 100
since it's a leaderboard, cant u just return level + user id?
instead of the whole document
100 is a little slower but not terrible, 1000 is obviously pretty close to the time 1200 took
so chose a number that has good performance, and paginate with that
I could probably try to readjust it to first read what the filters are and then only get those fields yeah
I might also try sorting first if that's an option with mongoose, then i only need to return 10 documents and check for the user if they don't rank top 10
so wait you were sorting on the client side?
you should always default to sorting through the database unless you have a very very very compelling reason not to

yes i think that will be the best solution
oh my god it's so fast 😭😭 maybe even faster than before
im so dumb
ty yall 





yeah, you gotta wrap your mind around the fact that a database also does data manipulation
that's what makes it a database and not a text file
so any time you're doing manipulation of a lot of that data, you should try and do it through the db
Currently we only allow one webhook at a time.
You can always forward the webhook to another webhook(or as many as you need to)
uhhhhh, how big of a json response is TOO big for a REST api? I suppose I should work on pagination of data as my response for an entire menu worth of items would likely be absolutely giant
Ahh, No problem thank you for an answer
For example, here's one of my sample responses. This is JUST for 2 items, and there will likely be 100+ items total at a peak https://pastebin.com/XG7X8S3G
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
I'm thinking I should split up the endpoints between modifier groups and modifiers to reduce the data sent along with each item
Sorry for the second ping, what would you recommend for this?
Whenever you receive a webhook from top.gg send a webhook to wherever the second one is.
i would look into pagination once the response size starts getting close to 1mb+
a few hundred kb is still small enough for the request to complete in under half a second for most people
but once you get close to 1mb+, you're already looking at a potential 1-2s+ response times
your sample response is 2kb for 2 items
so at 200 items its gonna be ~200kb, which is still small enough and fast enough in most cases, its basically one HD jpeg image
I see
The thing is that with a few hundred items, the size is going to increase more than just linearly, there will be more modifiers and modifier groups
Plus I think it would be less spammy to my database if I separate out into multiple endpoints instead of all in one
In a way, that endpoint is doing more than it should
this is good to know! the leaderboard is really the only time i sorted so much data but in the future it's fantastic to keep this in mind
is there any good lib for elixir to build a discord bot?
and scale it like with sharding and stuff
“elixir” and “scalability” don’t belong in the same sentence
We’re talking in the same boat (if not worse) than python performance
If you want something truly scalable then elixir is probably not the choice
Elixir is fast tho :D
Also I pitty any poor soul who makes a discord bot with elixir
Elixir is fast if your definition of fast is your mom’s dial up connection from the 80s
Elixir is all about high availability and concurrency
Plus best way to learn the language is by building something so why not
Not much support ig? Or libs?
How about rust
Any good libs for rust?
Hii, I'm trying to make dashboard for my bot. When a user auth I fetch all guilds of users and then I get all guilds of bot from api I made. My bot is in 33k servers. It sends 33k guild everytime a users auths, i think it's not a good idea so, WHAT SHOULD I DO INSTEAD?. After that i filter all guilds and get mutual one. I'm not experienced with dashboard & web development enough so yeah
if you store members in your guilds, then do all the mutual filter server side
make your api accept a user ID and process mutual servers from there
any info in elixir or rust discord bots?
like which libs are best to scale the bot
slash commands or gateway?
for rs gateway I use twilight. it's pretty robust
for webhook-based slash commands, I use a friend's library
i was wondering if theres a lib llike djs for rust or elixir
that handles sharding etc
serenity has a nice framework from what I've seen
twilight is more modular and barebones
ic
try it and see
proceeds to delete the question
lol 
i have a weird question
are increment/decrement operators (++/--) considered assignment operators or arithmetic operators? or both lol
i've seen them being grouped with assignment operators in some places, together with += -= etc
but other places list them as an arithmetic operator, grouped with + - / * etc
It's both
this might not be in the correct channel but I dont know where to ask this. Anyway, is it possible to add a custom emoji to bot message?
Of course
\:topgg:
You need to do something like that with emoji you want to use
And paste it in the message/embed of your bot
You can't use emojis in embed title
oh
Just like you can't use markdown
You can kind of cheat on this and instead of giving a title, turn part of the description into something similar to a title
yeah, I'll add it to the descriptions with like bold so it looks as if its the title
Yea, you can do this if you really need this emoji there
hmm, weird still after putting the emoji still not showing
Does the bot have access to this emoji?
is there like a need for an intent or something?
No, the bot simply has to be on the server where this emoji is located
OHH
Of course, it must also have permission to use external emojis if the emoji comes from another server
thats why
I was doing updates on a test bot and that bot wasn't in that server.
honestly thanks so much :D
No problem
Yes you can, just not custom emojis
Use markdown instead of bold to make it look like a title
The question was about custom emojis
Markdown does work in titles
Oddly enough, the same doesn't apply for author
Nor footers
Spoilers works tho
Lmao tf
Emojis work too
Emojis yes, emotes not
Wait but custom emojis works too
When they changed it
Like why nobody talk about it
Did I miss that or what
Apparently I totally missed it because I didn't even know it was possible. I thought it was impossible to do something like that in an embed title
Custom emojis always worked since markdown was supported in titles
dafaq
moreso the ping
im confused since thats not a link
we just have the everyone ping in our links filter
😂
Does anyone have a guide on how to link the commands in Python with top.gg so that they are activated when voting?
I have a smart band from 2016, no hardware nowaday support it. Is there anyway to reverse engineer it and make custom app from that
Does anybody know if there's a way to integrate gitbook in your website? Or is there like a framework/library to allow you to create something similar in your website?
google is saying that my sitemap couldnt be read but bing doesnt seem to have a problem with it. any help?
sitemap: https://nypsi.xyz/sitemap.xml
-b @crude orchid this server is still not a recruiting server
blackspace4423#0 was successfully banned.
Brand?
And model?
inb4 it's some mi band 4/5
Probably an old Fitbit or something
nah, it is an old lenovo
but I found out, that it's impossible, because I don't have the enough knowledge and equipment for it
that's the first time I've heard Lenovo made bands
it is a lenovo g02, from a decade ago
I tried to log the bluetooth signal and decode it
and then build an app from that
but haven't seen anyone done that before, so I gave up :)
that lenovo life app doesnt work?
what about this? https://apkcombo.com/pt/g02-band/com.yf.smart.lenovo/
is there any npm package that allows working with ip ranges (or generally ips)?
so like it can give me a list of ips if
start 185.9.158.8
end 185.9.158.15
or atleast make it easier
why would you need a package for that
its quite complex for v6
ah
and I dont want to mess it up
I meaaann
you could just substring ipv6 addresses
but thats dum
when you have stuff like ::0 or caaf::1
actually it would probably be smarter just to get the netmask of a range
yeah a package could help with it
how about https://www.npmjs.com/package/cidr-tools
though the release date kind of sus
since your goal is to work with ranges, the cidr one is your goto
hey guys what's your opinion about haskell?
hard
unnecessarily hard
@harsh nova
-b 899412300530860084 advertising botnet
krause_fisher#0 was successfully banned.
thx
👍
Pls purge next time uwu
oh yep will do
I keep forgeting
Someone here can help me with Jenkins (CI/CD-Tool, not from spongebob) Post-Build-Actions?
I want to start a discord bot automatically after the build is completed (I am new to Jenkins btw)
Please ping me if you can help me
not proficient in jenkins, but that's not really a good idea unless you make commits sparsely
since jenkins would build & deploy on every commit
i work on a development branch and never push directly into main branch
you can achieve the same with github btw, if u use it already
yea i use github already
github actions works similarly to jenkins, tho I dont know how to deal with it either
but I'm pretty sure it'll be easier to find help for it
thx
adding to it, you need to create a self-hosted runner, which would be your own server in this case
How can I fetch a specific guide’s prefix using eval?
Yes, fetch a prefix from a guide using the eval command.
It depends on what database you use, what programming language and how exactly you save it in the database
I use mongoDB as a database, use node.js, and I store my prefix via config.prefix
how are you retrieving the guild's settings?
const guildID = message.guild.id; const guildPrefix = getGuildPrefix(guildID) || this.client.config.prefix;
literally just eval that
I was able to run the following code to get the eval command to work.
eval client.data.get('guildhere-prefix') || client.config.prefix
Thanks for trying to help.
bump?
can you not request for a reindex? the last read date seems like a while ago
Hey, is there a all in one software that like brings together the features of Photoshop and After Effects? Like drawing is easier in PS than in AE but animating is easier in AE
well, they're different tools for different things
like a spoon and a fork
you might be able to find a spork, but it wont be as good as the dedicate tools
One message removed from a suspended account.
so if tag_content is something like hello hi etc with spaces, how do i get all of that
cause right now it will only use 'hello' as tag_content
show how you process the tag_content
i just send it in the channel (testing purposes)
so if i did .tag add test hello hi etc, the tag content is 'hello' and not 'hello hi etc'
then how did you define it?
what did you pass to that parameter?
hello hi etc
you sure about that? print it
ok
the 'test' is tag_name which is first arg
then i just want anything after that to be tag_content
only hello was printed
meaning you are not passing hello hi etc to the function parameter
when it gets there, its already just hello
yeah but thats what i want to happen i mean
i want tag_content to be hello hi etc
yes but you are only getting hello in it
meaning the problem is not in that function
its outside of it
show where you call the function
He doesn’t call it himself
oh its a decorated command already
Which means that it’s probably just using space as the delimiter between arguments
discord py
Which is why you’re only getting part of it and not all
yeah i just want it to include the spaces
kk that would probably work
yeah you probably have to take the entire string and do the splitting yourself
Joining the array back together
kk
Sup cuties
Python trying to be quirky yet again instead of using the industry standard … for varargs
pythonk
I can’t get the notion of a pointer out of my head when I see an asterisk like that
Doesn’t python have something called kwargs or whatever
personally i would say java on top
I wouldn’t go that far, but Java is a wonderfully simplistic language
void fun(int***);
What would you else consider the best language
i am interested to know
hmm actually, would there even be a "best" language
Everything has different purposes
I really like Java, but I also really like Rust. I wouldn’t use Java for creating a programming language, but I wouldn’t use rust for a basic GUI
when you go 100% functional programming
const getTheLongestStringInAList = (stringList) =>
stringList.slice(1).length === 0 ?
stringList[0]
:
getTheLongestString(stringList[0], getTheLongestStringInAList(stringList.slice(1)));
One message removed from a suspended account.
One message removed from a suspended account.
last read was 2 days ago
only thing i can do is remove sitemap and resubmit which is what i just did
Alright smart folks please let me know if someone can help me
I have a windows 11 laptop - I tried to log in with my PIN number earlier like normal and it gives me error message "Something went wrong and your PIN is not available". So, I tried to log in with my password, and it tells me that "This account is locked out and cannot be accessed right now."
Tried to boot into safe mode to troubleshoot, but everything i've tried isn't letting me log in. Can't reset the password, can't reset the pin. Finally spent so much time I got annoyed and tried to reset the PC. Says I can't reset the PC right now. It keeps asking me for a bitlocker key, I didnt know bitlocker was enabled (fuck me, right) and so i dont have the key.
Is there any way to get back into this stupid laptop or nah? if not, how do i even factory reset it if it says i cant reset it?
I spent the last three hours trying different things i found on answers.microsoft.com and reddit and everywhere else, nothing is working for me
oh note this is a local account, not a microsoft account
laptop has no other accounts on it
Honestly with something like bitlocker it makes it a little more complicated in my experience. The only thing I found to possibly work is to just format the drive completely and reinstall windows somehow (could be with a usb that has windows burned on it) thing is if you do this approach since you had no windows account linked you’ll lose any licenses.
I myself gave up when I was put into a situation where bitlocker was required so I just wiped the drive. You could also venture out and get a new drive for the laptop. This is coming from someone who isn’t as smart as others when it comes to tech tho so be warned it’s likely not the best solution

i really dont want to reinstall windows/wipe cause i had stuff on here that wasn't backed up for school
so annoying
Yea which is why I’d do that as a last resort if possible 
Honestly bitlocker is dumb to begin with
idek why my pin and password stopped working
No one changed it?
nope, its my pc and im the only one who touches it
i have it turned off when im not using it
Hm
You could try and change the password of your local account via cmd. Not sure if using the cmd when not logged in will give you proper permissions though
I don’t even remember how to access the cmd without being logged in
But you should be able to use net user whateverusername newpass
Assuming safe mode gives you administrator permissions
I doubt it tho
i did net users to see a list of users and my user isnt there 
so does that mean it is a windows account
and not a local account
cause thats wack
Well not really I think even windows accounts get a user generated
it has Administrator, DefaultAccount, Guest, and WDAGUtilityAccount
Yea odd
none of which i cant really figure out how to log in to
i cant switch accounts when trying to log in to get to administrator or guest
the only thing ive done differently is i installed MySQL server 2022 on the laptop, but that was like.. last friday, and the issue only started today
(installed it for school)
I don’t wanna make the assumption it’s a corrupted drive but it’s possible if the windows partition is the one corrupted I think (again not super tech savvy)
if i type the wrong pin, it tells me incorrect pin, but if i type the right one, thats when it tells me that my PIN cant be accessed
Is it still possible to reset your password from the login screen?
I know that was a thing in windows 10
Oh right the bitlocker thing
which i dont have one set up
Yea idk I can’t think of anything else myself. It’s strange bitlocker is even enabled
I don’t think it’s enabled by default
i definitely didnt enable it on purpose if it wasnt on by default
I doubt you did
Windows loves making annoying pop up’s
I’ve probably enabled shit myself and didn’t realize

well luckily my professor gave me an extension (my assignment thats only on the laptop was due tonight)
also i have learned to back up my assignments

Well that’s good
Does windows still make account recovery disks/tools
If so might give one a try
Might help
idk what that is
that's why I always use a local account while setting up windows
I've had horrible experiences with Microsoft accounts in the past
even that doesn't make you safe though... last time my local user account got corrupted and I still had to reinstall windows
You know what’s super weird? My friend got the exact same thing today in class
I think a windows update fucked with it or something
You have to go to the Microsoft website and login to your MS account and give it the little code that bitlocker gives you
Then you can unlock it
That's the thing though I don't think it's connected to a ms account
I thought I made it a local account only
I've tried logging in to Microsoft with all the emails I can remember but I haven't found the right one yet I guess
I'll have to keep trying I really don't wanna reset
usually that's caused by a windows update
if you're lucky you can roll back an update but that's if you have the option
I was able to roll back a quality update but not a feature update
I tried that earlier
can you see your user folder in c:/users from safemode?
if yes, try to access the data. if you can access the data, try creating a new local account and moving the data there.
if not, yoi can always boot into some linux recovery image, copy the data to another hd, format and reinstall
if encryption is actually enabled and nothing works, then you will need to beg ms to solve it, idk, or lose your data
did you use office 365 and logged into ms office?
Looks like that the users had downloaded the Office 365 apps on their private computer and logged in with their Microsoft 365 (work and school account) to activate the Office 365 apps.
After that, the computers were automatically Azure AD registered, which led to Bitlocker being automatically activated on their private computer - and the Bitlocker key "secretly" got stored in Azure AD (without the users knowing).
this is rhe stupidest thing ive seen in a while... jesus f c
i do have my schools office 365 account on there yes

so contact my school and it has the key stored somewhere?
OMFG ITS ON MY SCHOOL
MICROSOFT ACCOUNT

i found the bitlocker key

okay now i just have to figure out how to reset the PIN/password
i decrypted bitlocker, its gone
i have to reset it
but at least my files will remain
Such a stupid fucking system
Microsoft
Microshit*
are there any free software that i can use to draw and animate stuff?
simiar to AE
some versions of macromedia flash are free
and you can legally get one
though i would recommend buying adobe animate for the features
adobe after effects isnt really meant for hand-drawn animation
Mikroweich
Mikro-Orm
macrohard onfire
hi guys i want my bot to have reaction time 20 - 70ms reaction time so it matches the reaction time of my cat
pls
help
lmao
this is no good
Get a good VPS 
i think i am using digital ocean
just buy adobe animate or toonboom 
if you want 2D animation there are barely any good free options
Yeah blender has a learning curve, I’m trying it tho
All for some ssj aura animation 
whats ssj aura
Idk what to use
so I’m basically trying gimp and blender
why not just buy 
y u support greedy corps
pirate hat is da wae
well, it's doable with grease pencil tool
tho a specialized 2d tool would be better
does webhook integration works over http or is https requiered ?
and can I specify a specific port ?
yeah, but i suck at drawing 
yes, but i recommend https because it's more secure than http
yes you would have to
For sure, i'm just new to getting "a real project", I spent so many time doing this webhook with express, I just want to relax for now, even if it means using HTTP haha
Thanks @grim aspen !
also for if not provided a port, the port is defaulted to whatever port is well known
I'm so proud of my little
, I spent so many time on this specific feature (related on vote and claims), but still ! so proud
the server from that app is not responding anymore
proprietary auth
but there are projects like https://codeberg.org/Freeyourgadget/Gadgetbridge that try to get pass that
you have to do some tinkering to get your token from the manifacturer's servers
anyone know what could be the problem? sitemap: https://nypsi.xyz/sitemap.xml
ppl need to be very careful when making their databases or other stuff public on their ips
just found a big captcha verification bot has an open mysql instance on their public website ip with root having no firewall or ratelimiting
if someone wanted to they could easily brute force the root password
its mostly discord bots with these little vulnerabilities which are a big deal
Did you let them know about it?
yeah i let them know waiting ona reply
Well, let's hope they take it seriously because if they have any sensitive information in this database, it could be a big problem for them
But mainly for users to be honest
Most users wont care sadly
they also have an open RDP instance not exactly sure what it is but ive looked it up and it appears theyre also using some weird RDP server with known vulnerabilities
extremely careless
Is this user new to this stuff?
only us?
too bad
I personnaly use firestore
@lyric mountain I'd imagine this would go well with your card game.
Sorry vig for the ping 😛
No problem but just a tip when you reply to someone you can disable the ping by pressing the @ ON button on the right 😉
huh? isn't that for monetization of the bot?
Assuming there would be a way to incorporate it with the bots code, could be a way to generate cards via loot boxes in a way.
ah yes, I was going to add some micros later, once I finish the new version
just wondering, what make us eligieble to "Bot Developer" role ?
Seems fair, have they specific requirements ?
I mean, they have their own guidelines, but it's nothing special
For example, it cannot be a code from the Internet
On your bot page, you are not allowed to: Include spam/junk, or completely irrelevant/nonsensical characters or phrases in your bot description or intentionally use up characters to reach the 200 character limit Mention NSFW or include any NSF...
thanks !
W
I'll regret to say this but
mannn I remember APOD
Yes, you can make ASCII dicks with your bot
aight bet
We ballin now?
I
Ong frfr
Tbh I just wanted to fill the emptiness of command list haha
The main reason I starded learning code
Tell me when it's done, want to invite him
But hey
High quality ASCII dick, hmm okey ?
As always
Wonder why
How can i tell how many channels my bot was invietd to. I have 0 privledged intents becaues got denied after verified
I don't see what privileged intents have to do with that
const client = new Client({
intents: [
// GatewayIntentBits.Guilds,
// GatewayIntentBits.GuildMessages,
// GatewayIntentBits.MessageContent,
],
});
im pretty sure its one of these but i didnt get access to any of the Intents
But like what do you even want to know
I just want to see the total # of servers my bot is invited to
So i can feel better about my life trajectory
i mean
you can see how many guilds your bot currently is in
you cant really see how many times it was invited that easily
I used to do this but that requiers the message conetnt intent
client.on('messageCreate', async (message) => {
console.log((${message.guild.name} | ${message.guild.id}) command: ${message.content})
})
What does that have to do with you seeing how many people invited your bot?
the message content intent does not prevent you from receiving messages
Lol
it only omits the actual text part of it
yes
since i dont use a prefix anymore it will be a bit noisy
ill just add each message to a hashset then have a command to dump the hashset to console.log to read how many guilds invited my bot
Umm y would it be so
why do you need to add the messages?
R u trying to check for the servers or the messages
(What is this guy trying to do?)
Trying to check the # of servers my bot is in
I don't know
you dont need messages for that
It's pure chaos
unless youre sharded
not sharded oh
IT WORKS
client.once('ready', () => {
console.log('Bot is ready');
console.log(`The bot is in ${client.guilds.cache.size} guilds.`);
});
nice
client.once('ready', () => {
console.log('Bot is ready');
console.log(`The bot is in ${client.guilds.cache.size} guilds.`);
// Printing out all the guild names the bot is in
client.guilds.cache.forEach(guild => {
console.log(guild.name);
});
});
I have mine set as my bot's presence and it updates every 5 minutes
it's a setInterval
since you dont need to hook. 🙂
it sets it initially in the 'ready' event and updates in the interval
i cant even see how many guilds mine is in
because i dont use the client, i use only slash commands
so i dont have a client xd
rip
No servers?
last i checked it was like 10k
In the dev portal you should be able to see (approximately)
app discovery?
ye that
Honestly they should put the amount of servers your bot is in exactly in the dev portal
I mean it's only not exact if your bot is in a lot of servers
And it should only be meant to used for statistics/curiousity
estimation = approximate value when you dont know the real value
approximation = approximate value when you know the real value but cant be arsed to go get it
you can also see it on the invite page

bun run doesn't run bun but bun bun run runs bun

Perfect
^-^
(Inb4 I get in trouble for misuse of mod)
Nooo 
bun run fire_woo.ts
Failed to run cuz script empty dumbo
How long does the verification thing take for your bot to be looked at?
thank you
👍
do you guys know any sdk i can use to like list all the services im running on aws?
using my credentials
like all services, ec2, s3 buckets etc
you could technically have a websocket for reporting services' status
all you need is a central service for grabbing their statuses and save somewhere
No I want like to list all the current running services
I’m sure they have sdk for it
Even if I wanted to deploy a new service using nodejs
...that's exactly what it'd achieve
they probably have an api tho for fetching data
Ye that’s what I wanted to know if they have an sdk or some api docs if anyone knew. I found aws-sdk didn’t check it out yet
there's no sdk
sdk means software development kit, it'd make no sense to have one
being called sdk doesnt make it an sdk

how can I ask for a bot review ? ( so I can gain access to dev role
)
he is added
Then just ask for role on #support and wait
Apparently @gilded plank is sleeping
Or it was sleeping at the time
Because I was so lazy, my bot invite was just set to "Admin"
Is it okay ? Or should I change ?
It depends in what sense. Your bot should work without administrator permissions, but if it has already been verified, you can request any permissions in the link
He's been added to the website, so it is verified ? (I guess ?)
Just wondering if it's something that I definitively should change
I just setup admin permissions so I'm sure that it would work
Or should I just select the most part of the permissions ? So the user can tweak them on invite
Remember that not everyone may want to add it with admin permissions for very obvious security reasons. It's best to only require those that your bot requires. If you don't need permission to ban users, don't require it
yes
thankss
@rustic scarab
Just wondering, do I have to hash guild's and users id in my non-sql database ?
I use them as identifiers
I don't keep confidential/important data, so I neither encrypt my data too
a guild id or user id isnt even confidential
But it is ""personal"" data somehow
I shouldn't bother then ?
its not
unless its stored along with their username or settings that might include their real name
nah, just id's and settings, I do not collect anything that my bot doesn't needs
additionally, ids are publicly visible, both on right-click and here
is there a way i can change the bot icon for different servers?
I've seen dyno do it, couldn't find anything similar on djs
unable to read .replit:
failed to open .replit: open .replit: input/output error
nix error: building nix env: problem reading '.replit' file: failed to open .replit: open .replit: input/output error
why this is comming in replit?
when i m trying to check .replit it shows this
replit isnt a host its just a online code idle [which is trash], if you want a suggestion/opinion use VSC (Visual Studio Code))
Somehow it can't turn GuildMember into a JSON string?
console.log(member);
console.log(JSON.stringify(member));
GuildMember {
guild: <ref *1> Guild {
...
},
joinedTimestamp: 1619876348724,
premiumSinceTimestamp: null,
nickname: null,
pending: false,
communicationDisabledUntilTimestamp: null,
user: User {
...
},
avatar: null,
flags: GuildMemberFlagsBitField { bitfield: 0 }
}
TypeError: Cannot read properties of undefined (reading 'id')
at get cache [as cache] (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\node_modules\discord.js\src\managers\GuildMemberRoleManager.js:37:101)
at GuildMemberRoleManager.valueOf (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\node_modules\discord.js\src\managers\DataManager.js:57:17)
at flatten (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\node_modules\discord.js\src\util\Util.js:34:82)
at GuildMember.toJSON (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\node_modules\discord.js\src\structures\Base.js:35:12)
at GuildMember.toJSON (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\node_modules\discord.js\src\structures\GuildMember.js:487:24)
at JSON.stringify (<anonymous>)
at Object.execute (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\commands\info.js:23:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Client.<anonymous> (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\index.js:32:7)
did you delete the .replit file?
if tou didnt do anything, then you have to wait for them to fix it
if you have the latest version of discord.js, check if its a known issue and report it
orherwise update your discord.js
ever wondered why nobody seems to use openbsd? its dumb thats why
this is in its INSTALLER.
nO iS nOt A vAlID cHoIcE

wait for whom?
no i didnt touched anything
that question doesnt even make sense
try to create a new repl with the same settings
How do I get my bot into more servers? It’s an rpg bot and I’ve only got loving feedback from my users so I’m thinking that the first 100-200 servers will be the hardest.
May not be correct
Forgot to crop
You probably won't force anyone to add your bot, but the easiest servers to obtain are your friends' servers
You are unlikely to destroy your friend's server with your bot, and members of those servers may add your bot after seeing it in action
Just remember to not give it admin privileges
You can also buy advertising on some server, but how effective is it? I have no idea. Even if you sponsor nitro in some giveaway in exchange for adding your bot, it probably won't help you much if there is no one on these servers
Yeah I bid on advertising for topgg
But i get like 8k impressions which probably translates to like 10 invites max
GuildMember contains a toJSON() method which overrides the default behavior in JSON.stringify()
Makes sense
the issue is in their toJSON() method
It's always better than nothing. A lot of people want to be "great developers" and are overwhelmed with just getting enough servers to verify without cheating 
being a good dev doesnt necessarily mean popular dev
its a bit unfortunate, but thats reality, a lot of top tier devs will never be known or ever produce something that will get traction
and a lot of shitty devs become famous and their software have a lot of traction purely because of luck or opportunism
Same concept with a lot of stuff. Roblox games that were put in a lot of time and professional coding don’t get noticed but most simulators get traction, although some games that are well developed get popular
being underrated is a double-edged sword tbh
async function loadCommands(client) {
const { loadFiles } = require("../Functions/FileLoader");
const ascii = require("ascii-table");
const table = new ascii().setHeading("Commands", "Status");
await client.commands.clear();
let commandsArray = [];
const Files = await loadFiles("Commands");
Files.forEach((file) => {
client.commands.set(command.data.name, command);
commandsArray.push(command.data.toJSON());
table.addRow(command.data.name, "🟢");
});
client.application.commands.set(commandsArray);
return console.log(table.toString(), "\nCommands Loaded");
}
module.exports = { loadCommands };
client.commands.set(command.data.name, command);
Because you specified “file” and not “command” for that forEach
Ok wdym
Your loop creates a file object, but then you ask for command object, that you didn't have create
You should rename "command" into "file", or rename "file" into "command"
i got it to not error but it’s not logging the commands
i have no way to screenshot on my raspberry idk if this is right
same problem i would say actually
command is still not declared
from your picture
oh
forget
how? look in the for each
shouldn't you add / before the filename ?
and..
is it me or do you use ' then ` ?
line 13
don’t think i did
also commands are stored in individual files
// What you wrote
('../Commands${file}`)
// Try
(`../Commands${file}`)
nope
they mixed ` with '
that is the same
ah ok
it isn't
omg i see it now
With VS Code, you would noticed it way earlier
ah
do you have discord running in there? if so you should be able to press printscreen on your keyboard, and then ctrl+V on discord
i can’t
i don't know a thing about raspberpi, but can't you just ssh ?
what OS is it running?
raspbian
doesnt the prtsc key work?
Bruh it’s an invalid path
it doesn’t for me
Your screenshot will then be saved into your home folder in PNG format with a timestamped filename.
check there
ok i gtg
you're mixing relative paths and absolute paths
notice how it says ./Commands//home
yes i see it
your file parameter should already be the full file path, so no need to change it
just require(file)
ok i’ll fix it when i can
thanks tim
this is also my 2nd time using my raspberry pi
do you guys create a new git branch for each new feature when working alone ?
i don't, my pro dev friend told me that I was a war criminal for not doing that
yeah that worked
I do it when it would take more than 1 session to work on
that depends, if it's just a simple change or patch then I don't, if it's something big then it might be a good idea, in case you break something or decide to ditch the change, it'll be easier to just delete the branch than to restore your master branch to its original state before the change
I often break my own code, I guess i'll start doing new branches from now on haha




