#development
1 messages · Page 310 of 1
id | location | type | format | uuid
----+----------+------+--------+------
(0 rows)
dam
Sorry im not a captialist yet
when i get there sure
orrr the corporate special, leave the min wage employee take all the fire
wanted to share this IT ticket we just received, typical IT experience
How is that even possible to do
💀 i wouldn't wanna work with u
is that ur response at the end
no thats a colleague lmao
oh
they also send it in to a helpdesk email so they mustve just set the subject and sent an empty body lmao
IT isnt my primary job role but its always a gem having access to it
We've had people open tickets just to get the support phone number
the phone number is literally above the submit button
you can really make this shit up lmao
I really just needed a small microservice for my ancient typescript codebase to speed up a specific process 💔
too much work to rewrite the entire thing and too urgent to do something else
Honestly microservices aren’t evil until it becomes a mentality of “EVERY FUNCTION MUST BE A MICROSERVICE!!!”
Good for scalability compared to monoliths
It also keeps DevOps employed
nothing, but having a window allows aggregates to be calculated in a separate context
the idea for that query was to grab the first and the last values for build_id to later use as a join condition (to get only those builds)
WITH builds AS (
SELECT *
, first_value(bc.build_id) OVER w AS first_build
, last_value(bc.build_id) OVER w AS last_build
FROM config_values cv
INNER JOIN build_configs bc ON bc.config_id = cv.config_id
WINDOW w AS (ORDER BY bc.build_id)
)
SELECT c.*
FROM configs c
INNER JOIN builds b ON b.uuid = c.uuid AND b.build_id IN (b.first_build, b.last_build)
ORDER BY b.build_id
``` try with a cte instead
been running for 6min so far
ugh
hm, aight there's a way to reduce it a bit
WITH builds AS (
SELECT bc.config_id
, bc.build_id
, first_value(bc.build_id) OVER w AS first_build
, last_value(bc.build_id) OVER w AS last_build
FROM build_configs bc
WINDOW w AS (PARTITION BY bc.config_id ORDER BY bc.build_id)
)
SELECT c.*
FROM configs c
INNER JOIN config_values cv ON cv.uuid = c.uuid
INNER JOIN builds b ON cv.config_id = b.config_id
WHERE b.build_id IN (b.first_build, b.last_build)
ORDER BY b.build_id
now its 0 rows
meh
18ms atleast
ok, yeah i am
actually, just a window issue
aight a bit verbose
WITH builds AS (
SELECT bc.config_id
, bc.build_id
, first_value(bc.build_id) OVER w AS first_build
, last_value(bc.build_id) OVER w AS last_build
FROM build_configs bc
WINDOW w AS (PARTITION BY bc.config_id ORDER BY bc.build_id ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)
)
SELECT c.*
FROM configs c
INNER JOIN config_values cv ON cv.uuid = c.uuid
INNER JOIN builds b ON cv.config_id = b.config_id
WHERE b.build_id IN (b.first_build, b.last_build)
ORDER BY b.build_id
ooooor optionally
0 rows
nope
inner join issue then
ok, for a test, remove INNER JOIN builds b line and the where clause
0 rows ✨
what's the relation between configs and config_values?
are u able to generate a uml of those 3 tables?
umm, u dont use foreign keys?
i do, i am using dbeaver for the first time no clue how to make it display it properly
ok so, build_configs is actually the n<>n table?
thought configs joined to config_values
build_configs joins a build with some config values, the config_id on it is purely for a unique index of build_id,config_id
but is configs.id = build_configs.config_id and config_values.id = build_configs.config_value_id?
yes
aight, can work with that then
btw, might want to make PRIMARY KEY (build_id, config_id, config_value_id)
close enough
WITH builds AS (
SELECT bc.config_id
, bc.config_value_id
, bc.build_id
, first_value(bc.build_id) OVER w AS first_build
, last_value(bc.build_id) OVER w AS last_build
FROM build_configs bc
WINDOW w AS (PARTITION BY bc.config_id ORDER BY bc.build_id ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)
)
SELECT c.*
FROM configs c
INNER JOIN builds b ON b.config_id = c.id
INNER JOIN config_values cv ON cv.id = b.config_value_id
WHERE b.build_id IN (b.first_build, b.last_build)
ORDER BY b.build_id
or just make the cte return a * instead of each field individually
SQL-Fehler [42P01]: ERROR: missing FROM-clause entry for table "cv"
hmm, 58 rows
definitely too little but lemme see
ok so, ig this is every combination of location + type now
nvm some are doubled
i dont know what this is
that's because we're not distincting by uuid
the doubled ones are builds where both first_build and last_build are the same
ahh
uh
that shouldnt be the case with this data tho
theres no config_value thats the same on first ever and last ever type its on
might be an issue on PARTITION BY bc.config_id
I assumed it'd be grouped by config_id, but if this isn't the case you need to replace the field there
Nooooooo i mean like its showing commands on the bot
Yes it does and you can't really control that
Only known requirements are: your bot being verified and discord having enough usage data of your bot's commands
Don't ask how much is enough, no one can answer this question afaik
Would anyone with experience in 3NF mind taking a quick look at the tables I've made based on an ERD I did for an earlier assignment when you have a chance? I'm not sure if I've correctly turned it entirely 3NF ready to turn into a functional DB, any feedback is appreciated ❤️
Anyone know a way I can test raid protection features on my bot.
I don’t quite know raid methods that people use. I know one where they mention everyone and link an nsfw server. Which I have made a protection feature for this. But I don’t know any other raid methods to be on a lookout for
does anyone know whether its possible to kill all connections (not sessions) of a user in mongodb?
nevermind i was skill issuing, you have to enable auth in the mongod config for basically anything to work
hello @topaz island
Good everyone ping
Poor everywhere getting pinged. What he do to you 😠 lol
oooo miyu, long time no see
Indeed long time no see 🙂 I still lerk in this chat. I enjoy looking at the code blocks
I would last about one ticket reply at that job before getting fired 😁
🤷♂️ last I've read it's about 2 weeks
no set timespan
It varies by how many request are in at the moment sometimes it can take from 1 to 3 weeks. Similar to what cry has stated. Sometimes they work faster depending on how many reviewers are active.
why dont my bot have commands like this on its profile
gotta find the commands id and then put it in there, iirc you do it how you @ a user with an ID but feel free to correct me
put where in bot about ?
how do i get command id 🤔
i cant exactly remember, though a little googling will probably tell you
na ah bro it says right click and copy id but i dont have that option ( i have dev mode on already )
On web/desktop, you do your slash command in a chat and right click the darken box to get "Copy command id"
Love how confidently incorrect everyone is
Ngl I only read like a part of the convo so only answering how to get the ID
discord will automatically do that but it’s unknown when they will post it
it’s most used commands bs
indeed
How would I set up a ai bat man voice chat robot?
If you're asking that question here, you REALLY should not be trying to do that. Something simpler like music bots are already a nightmare. A lot of the voice libs I've worked with as well are just really weird
Consider easier projects until you're confident in asking more targeted questions like what platforms others use for voice synthesis or if self hosting something for that is even feasible
the darker box i thought its the one where you type like if its /ban command then where you mention user its that thanks tho really helpful
one more thing how do i do this on my bot
once your bot is verified, it comes automatically
once discord has enough data about your bot's usage and what the most used commands of your bot are
it has nothing to do with commands id or whatever
commands id are used for when you want your bot to send a message where it mentions a command and people can just click on it
e.g. </airhorn:816437322781949972>
He asked this 3 times already and at least 2 times ignored the correct answer
I wonder if he's gonna ignore your answer too
ohhhhhhhhhhhhhh thats what webster told me then some guy said it is if you mention bot command like we mention user with @ and its id he said thats how its done so i was like maybe there are 2 ways or smth
when did i ignore it 😭😭😭
idkk mate
yeah they probably didn't look at the picture properly 
ty ty sir also ummm i been trying to get message content intent cuz my bot have chat level system it wont work till i have msg content intent sooo any tips cuz i been rejected once for just idk he said wait there Unfortunately, I am denying your Privileged Intent request. This is because we are unable to access your attachments for download. Feel free to reapply and make sure the images and videos are accessible without requiring files to be downloaded locally.
Do what they said
Provide the proper images
idk how cuz it just gave me option to attach links and i did copied it from like how you send image in discord server or dm then copy the link i did that and pasted it
Use some image sharing website like imgur because discord links expire after 24h
do bots usually take more than a week to get reviewed
It's 1-2 weeks
So it could take even 2 weeks and sometimes even more
Depending on the queue size for example
Dont use imgur btw its blocked in uk
That's new to me but who would've guessed that
I’ve collected all of the special eggs! 🥚
Would like some more volunteers to color to add but tis going well 
#development message
thats cool
is it just me or has chatgpt recently become unbearably argumentative and refuses to accept anything you say
i feel like they're trying to match claude's hallucination/blind agreement rate but they're doing it too aggressively in a way that impacts quality
claude has a good balance between accepting its wrong and hallucinating answers
AI
ohh
@delicate zephyr @knotty night
i've not been using chatgpt for ages, the way it formats its answers pisses me off
fr chatgbt is soo bad
and dumb one time i told him to makee me a dog he made me a cat in a spaceship eating sushi
Next time be more specific
i am being specific
Omg guys is someone here who is good in html like fr really good? Need help for my bot top gg site
html isn't rocket science
a few <...> and with some content as per docs
when css comes in, the pain comes as well :D
Ugh, frontend
wooo frontend
Woo is no longer among us :(
chatgpt ragebaiting fr
leaked openai system prompt:
"try to ragebait the user as much as you can without telling them"
Better than the rest imo 
Ikr I tell it to stfu and keep things simple and then it comes out with
✅ 100% LEGIT FULLY WORKING FINAL VERSION COMPLETE
"👉👉 Here's why it works ✅" (it doesn't)
"If you want, I can update the code I just gave you with the real working code?"
So, I'm working on adding more keys to my bot for functionality and I was curious if anyone had any ideas? It's not a typical bot and not easy to understand unless you have some form of coding knowledge (which, this is a bot channel so I'd hope thatd be the case). Anyone got any recommendations?
It cant join VCs yet but I do plan to add a way to make this possible.
Crazy thing to wake up to
ragebait chatgpt instead
definitely didnt tell it to respond like that beforehand
definitely
This how you do it
how tf do you even get chatgpt to speak like a gooner
You should've seen the shit I got it to say last year. I was instigating some horrendous activity
ai needs to be stopped
nice work gemini
It's interesting seeing how lobotomized AI-agents, in my case mistral AI agents, are in the consumer chat version versus when consumed directly thru the API. Implemented some AI features for my bot and played around with what I could get it to say. It very very easily became quite horrible so had to lobotomize it myself thru the system prompts. Figured there'd be more safeguards directly on the model itself
Boys i talked about golf clubs with my friends
Like irl
And i got a tiktok ad about golf clubs
How
I swear i searched nothing prior to this convo, during or after related to golfing
tbh usually at this point i go to defend the conglomerate and say that its probably a coincidence but at this point it happens so often that i think something is being sussy and listening to us
It happens with me and my wife as well that we're talking about stuff or watching videos together and the other one gets recommended content on their account
Like... All the time
me when police come to my house because i talked to myself about killing forked children in ipc and google assistant heard it
I just saw this earlier and came in here and saw your message lol
android literally sends a signal to google every time you open and close an app
idek how to disable it
block google's ip :)
if there was grapheneos for samsung i wouldve got it :(
but then i also like google wallet and i lose that with graphene sadly
Wonder if there's any system modifications you can make
Then again, I have no idea how stuff like root works in relation to something like iOS jailbreaking as they had an app where you could just install tweaks from a centralized platform, but add sources
similar with android root but you have a few options, usually not all in the same place though
for system/kernel level patches you'd use lsposed (xposed replacement), for root apps you can prob just use fdroid or download them directly
i root my phones mainly so I can do full snapshots
but yeah its trivial to nuke telemetry
cant get google wallet working anyway so
@delicate zephyr
https://github.com/LaurieWired/tailslayer interesting
I use iphone tho
But i swear it happens to me as well
I am so close to buying one of those old flip phones again 
I swear this happens a lot to me. Golf clubs, vacuums, even cookies. All gave me targeted tiktok and google ads which is crazy
Hi
how can i promote my bot 🤔
https://discord.com/channels/264445053596991498/921136635733762058
auctions are a good start! 
whats the minimum it cost
I personally don’t use but you can read up on their guides. https://support.top.gg/hc/en-us/articles/23146173577372-How-Do-I-Use-Auctions
hb smth else ?
Well there are other servers out there that might could help you progress other than auctions. Unfortunately, I cannot recommend another way. Apologies 
Nw
any free websites where i can host my discord bot 24/7 which will also have persistent storage...
🥹
You are asking for too much for free discord bot hosting
💔
There are free vps trials but you need to give them your cc info
should i host it on replit then host the database on supabase
Either find a cheap vps or go with a free trials but you need to give them cc info because that how anti abuse works for most of them
fair enough
Buy a raspberry pi
or convert some craptop you dont use anymore to a server
💔
like run it locally 24/7
Thats the method
Nah
There is no reason if it's not overheating I guess
its really cool but i feel meh about it
looks very situational and hardware dependent
as is usually the case with undocumented quirks
you know someone is a performance nerd when they use always inline everywhere
i finally was able to make chatgpt swear
i sent him a crazy ass regex and said why doesn't this work
it told me, ah this is a gotcha that fucks everyone
lmao
I have been able to make ChatGPT say some crazy things
It’s really special circumstances and a lot of convincing but it worked
crazy things
I ain't reading allat
damn these ai thingies are starting to become weird
#discord-news message
thank god i have that intent
Doesn’t sam own anthropic tho
Nvm
Isn't it scary how the entire world is dependent on just a few services...
cloudflare, aws etc etc
true ngl
i remember when couldflare went down for a while
the chaos it caused
google, chatgpt, etc
all were down
100 years of human technology VS a silly blahaj
kinda not surprised to see fireship in this video https://www.youtube.com/watch?v=ZoibAbdQf58
How Private Equity Turns Your Favorite Channels Into Slop
Get FREE end-to-end encrypted email at http://proton.me/bp/gen
🗞️ Sign up to our free newsletter to get smarter about money and power in 5 minutes, every week: https://www.themoneytrails.com/
Follow GEN on social media:
📸 Follow me ...
he's felt off for a while now
also did fireship delete his discord? i swear i was in it before but cant find it anymore
What if they banned you from it
One message removed from a suspended account.
bound to happen but ugly nonetheless
if any of you call yourselves a developer and dont know fireship then dont speak to me ❤️
Fireslop
I have been rocking astro and solidjs lately
still need to try astro
have never used anything outside of react world besides raw dom manipulation
whenever i use ref i go "that kinda defeats the point but fine"
refs have improved rendering on one page i touched from 1.2s to 100ms
this is on a 9900x
dont even imagine on an average cpu
So erm guys. My bot is growing right. It’s all in a dedi in hetzner and so is the db
What’s the best way of handling backups
sql dump and upload it to r2 via restic
you can use hetzner automatic backups which is most likely good enough for your use case, but i just take manual snapshots since theyre cheaper (you can also automate the snapshots to act like backups but cheaper)
is what i do
Hmm
speaking of manual snapshots i forgot to do my weekly cheapskate backup
Thank you!
Can i have ur snapshots
That was supposed to be rizz
Instead of asking for snapchat you are asking for snapchot?
I love waking up to these notifs but then i remember they take 6% cut
Yeah it was a snapchat joke lol
Really wish stripe was available for my country. Or anything close to it
does anyone else use the typescript native preview language server?
its been getting less and less stable for me
like how even
mine crashes all the time too
intellisense just randomly stops working
the table has turned it seems
having your email publically listed on github does attract some weird aahh emails
atleast the effort is there
ps is wild
my email only attracts invoices
hi i have a question about discord bot owner identity verification
is this the right channel
okay it is i think
well my issue is that whenever i submit pics of my government id it shows this then goes back to normal. Should i wait or did it just not work
(also make sure your id is a supported document)
okay fair thank you
ipv8 gonna be fire
cant wait to have 10.0.0.0.0.0.0.5/56
hope it can be truncated to 10::5/56
getting roasted on hackernews lmao https://news.ycombinator.com/item?id=47788857
who even thought of this
I'm working on my IPv9 proposal as we speak. It has an LLM validating the contents of every packet. Gotta stay ahead of the curve.
LMAO i haven’t read it yet
Every manageable element in an IPv8 network is authorised via OAuth2 JWT tokens served from a local cache. Every service a device requires is delivered in a single DHCP8 lease response
xDD
@delicate zephyr

i see how they manage to afford all these bots... scamming each person out of 80 dollars
lmao
it's what scammers do... but don't get any ideas.
okay
what's that status man
?
When you give 80 it keeps asking for more, ntts made a video on it
thats crazy
this doesn't answer the hijacked accounts tho
im guessing these guys buy them and use them to promote their scam
hmm
i assumed it would be a like discord phising email thing or smth
when you sign up
i put a random email it didn't even check if it was legit
it just let me in
so im guessing they log that?
but that's not a reliable method
im pretty sure these guys use like cracked software to gain access to most of these accounts
in the typical one, the deposits go on for so long you end up losing roughly $4k
game cheats
typical hacks
Heyooo
Hi
@delicate zephyr 1469209915145977888
@quiet lynx please dont advertise, thank you
you get the role by having an approved project listed on the website 
Oh I just uploaded one of my bots on top.gg
Hoe long is it gonna take to take a look at it for the top.gg team
if you just submitted it, its likely in queue, which is then reviewed by reviewers
our timeline is 1-2 weeks, but it can take less or more time
Oh yea my friend said it will take 2 to 3 months
definitely not months
just a few weeks !
I have a pretty big crypto bot on telegram. Looking to make a discord bot for it as well. Are crypto-related risk analysis bots allowed? My bot has a free plan but a paid one as well where payments will go through discord (through crypto wallets). Is this allowed by topgg?
since when does discord support crypto
for the topgg guidelines it's fine though, as long as not everything (or most of it) is behind the paywall
is it ok to implement javascript to make lighthouse score 100 artificially
💀
i was wondering if it's allowed to accept crypto for payments on discord tho
I use privy for solana wallet transactions.
I generate a private wallet per users, they can pay the amount to it and get access to the content
But the bot has a very big free section so i don’t think that is a problem
Unless discord prohibits this way of payment
Discord wants you to use their monetization platform/offering
Unless you can't for some reason (like it's not available in your country for example)
That monetisation isn’t even available in my country
Yeah, quite some countries it is now
But as soon as it is, then you have to migrate
at least no new ones, but iirc whole EU, US and some others are
And once it's in your country, you have to use it as per ToS yeah
Indeed
That's the whole point as to why they made it lmao
XD
For legal reasons that’s a joke
Nah, you are fine here
I mean there has to be a way
Tim rules here
Like a loophole of buying credits
Instead of subscriptions
We need a lawyer here
Even if you find a loophole discord can just patch it and you are forced to use their monetisation method
Oh so you can keep both options and your already existing customers dont have to migrate
Plus I'm pretty sure they looked for those with their lawyers before releasing it
But you have to match the pricing
Jason Citron the ceo of discord on action:
Digital products and services keep getting worse. In the new report Breaking Free: Pathways to a fair technological future, the Norwegian Consumer Council has delved into enshittification and how to resist it. The report shows how this phenomenon affects both consumers and society at large, but that it is possible to turn the tide.
Read more o...
ex* CEO
I really wonder how discord would look like now if microslop purchased it in 2021
Lol on to making a web platform instead
Not worth it if discord takes a huge cut
10k users and growing tho 
some sites probably already do because lord knows their shit be slow af
he's got the company into the IPO stage, got his 🤑 💰 💸 then dipped before discord goes to complete and entire shit
@knotty night
@oak cliff
Question: Do they let you know when they'r testing your bot? dont want to shut it down on them to add something while they are testing it
No they don't. If you're worried about downtime for maintenance and they decline during the maintenance, you can DM the person who reviewed for a re-review as soon as they can. If you mean just general uptime, your bot should always be online except for maintenance. If it can't be, then that's a bit of a problem
Yeah just for making some changes. That'd be the luck I have. Take it down for a minute or two and thats when itd get reviewed lol
What language do you use?
Python
Python has ways to reload files at runtime
Dont ask me how though because idk those details. I think dpy has docs on reloadable cogs
I may look into it thanks
does anyone know why I keep getting Missing Permissions from the discord api when trying to time out a user? my bot has administrator perms for testing so shouldnt be because of that
UnsuccessfulRequest(
ErrorResponse {
method: PATCH,
status_code: 403,
url: "https://discord.com/api/v10/guilds/1429911351777824892/members/745619551865012274",
error: DiscordJsonError {
code: JsonErrorCode(
50013,
),
message: "Missing Permissions",
errors: [],
},
},
),
Discord has a thing that enforces how a bot moderates based on role hierarchy. A bot can not moderate a user whos highest role is equal or higher than the bots highest role
Regardless of if it has admin perms or not
yeah, I moved the bots role to the very top and tried moderating on a user without any roles
nope
current unix time + 60 seconds
yes that is me too
i may be stupid
you are almost correct
yeah, it works now, oops
It timed out me instead of the other user
its getting ridiculous @frosty gale
Anyone know good premium features i could add to Echo? It can already do what other bots make you pay for for free, like... Mee6 making you pay for a greeting message is actually insane but thats besides the point. I currently have it to allow conditional statements and API requests, but I feel like theres just... More I could do
do you expect explanation or uuid from it?
this is the full chat
"7dbbbb63-1734-48c4-a1de-d1a65f62cada
turn this uuidv4 into a reserved uuid"
oow
got it too or did it work for you?
hm, I use Pro
damn
but your share link works for me
xD
the word spam is probably tipping it over the edge
i think they also do an LLM run before answering your question which determines whether your request is "appropriate" or not
safety filter not flagging bullshit tier list
claude > deepseek > chatgpt > gemini
at least gemini gives you a predetermined message when it refuses something, chatgpt just generates a condescending response that has a superpower of pissing anyone off
@steel oxide what
Your bot promotes or operates a service that competes with top.gg on your bot page.
#staff-tickets if you want to talk about that please, thanks!
hey guys
i need a small dataset of like 100 samples of regular checkout js code?
Something like:
extract credit card ddata or whatever, then send it over the network.
Does anyone know any sources to get this from?
might be worth generating with an LLM
might not be guaranteed to be correct but I feel like the most capable models could get you something functional
wdym
they're telling me they can't extract credit card info and that's against the rules nad bla bla
What are you prompting them with
that i need to generat ebenign scripts that retrieve credit card info from the dom, for machine learning pruposes.
tbf i alreayd hae like 2k benign scripts, i could take 200 from them and insert random payment retrieval keywords lol.
You can't really depend on chatgpt or Gemini tbh but there is a way to have it help you make what your trying to make you have to word it a different way
Is bot development actually still an active field?
People still make bots, yes
Bot dev will exist as long as discord does
Unless they decide to hide the API behind a paywall 
i wonder what are behind them to make it so big
does it log all the errors since 2023
That would just get rid of garbage bots
|| def not ragebait ||
lol
2023 BCE
On April 15, Ursula von der Leyen declared the EU's new age verification app "technically ready" and built to "the highest privacy standards."
On April 16, a security researcher bypassed it in under two minutes.
🤣
Classic
Made a personal bot to provide me hosted image links 

god It's been ages since I've visited back here xd
@knotty night 783293506117828618
They changed check to ch3ck in my server
@knotty night 706168035509141504
im always sending the user id because I think some have started deleting their msgs if anyone replies
Luke got em
bro
Cause yo uasked for it
Fun fact. Discord has an "auto" shard feature
I know
My bot has 64 guilds, I'm wondering how many shards discord will create for mine
1?
-1?
Its set to auto???
None if you don't use sharding
Good point 💀
I have 2 shards personally
But i only have my app in 30 some servers but I'd assume some are slightly larger
Cuz it shows my app is profiling over 3k people for leveling rn
🥹
personally you don’t need 2 shards for 30 servers
you need only 1
are you hosting your bot anywhere on a platform or something?
At my hosting service, yes
are shards env vard by pterodactyl themselves?
thats pretty typical for a lot of hosting services
Nah
Well mine ain't like that
Lol

well whatever the case, discord would only give you 1 shard for 750 servers on auto. so something on your end is giving you 8 shards.
Ik
Lol
Its there though
Ig
fixed it
1 shard per server = best configuration :^)
it was indeed a wrong config file
if you got the ram
why not
lol
no one is stopping you
ram is not really an issue, the nuber of connections is, it will bork your entire network stack xD
plus most systems have a limit on concurent tcp connections
you can just increase that no?
yeah depending on the config, its manageable
Because every WebSocket connection is treated as an open file by the system, you will hit these OS-level caps first:
Per-Process File Limit (ulimit -n): The most common bottleneck. By default, most Linux distributions limit a single process (like your web server) to 1,024 open files. This means your server can typically only handle ~1,000 concurrent WebSockets out of the box.
System-Wide File Limit (fs.file-max): This is the total number of files all processes combined can open. On modern systems, this is dynamically calculated based on your RAM—often around 10% of available memory (roughly 1k per file).
Local Port Range: If your server is making outbound connections, it is limited by the ephemeral port range (default is often 32,768 to 60,999), providing roughly 28,232 available ports.
And Discord simply won't let you have 1 shard per server. It's not rally a RAM or TCP issue. Discord's identify rate limit is like 1 per 5 seconds so 750 shards would take an hour to start. And you get 1000 identifies in total a day so restarting twice would lock you out
If someone is smart then they'd just resume their session after a restart
@knotty night can you tell me how to make a bot dashboard please
🤣
No
step 1. do not ping staff for asking how to make a dashboard
step 2. repeat step 1
Don’t use that language you can ask but I am not teaching you unfortunately
Lots of times you can resume though
No need to re-identify
So you'd only re-identify really broken shards
Discord doesn't have an "auto" mode, it's Discord giving you a number of recommended shards and the library you use names that "auto" as it's based on the recommendation of Discord
Still interesting that it recommend that many
Nobody is raw dogging the api. Libs abstract away from recommendation to connect as you need to call /gateway/bot either way
Saying discord has an auto mode is wrong
It simply doesn't have that
It's also not Discord starting the shards, it's you
can I make discord start my car
Probably
very likely
good to know
Correct that it's a recommendation, but I disagree on your semantics of not calling it an auto mode
It's an auto mode for the API wrapper
It's not a Discord (API) auto mode
It's a Discord recommendation, the API wrapper abstracts it and calls it auto mode as you don't need to pass in the number yourself
A better name would be a recommended mode
Though they call it "auto" very likely because the logic behind sharding is not needed to be made by yourself
jarvis, discord auto mode on
So Discord definitely has no auto mode regarding sharding
iirc the docs also mention that sharding decisions is entirely on the client to decide
doesnt it force you at a point?
they just force you for 2500 (per shard)
but you can also have one shard per guild
completely pointless, but it's the client's choice
Im not really tryna argue this right after waking up, but I write my own Discord api wrappers and I'll call it what I want and you can call it whatever you want :)
Sure, as said API wrappers have a so-called auto mode. Just don't say discord itself has an auto sharded mode, it factually doesn't
That would be just giving wrong information ¯_(ツ)_/¯
Lord
or just give it out
Who here uses BDFD?
na
You don’t?
We don't
yes
So you do?
na
isnt there sort of an "auto" shard mode? discord api returns a recommended amount of shards here
unless i misunderstood the discussion
As said, it's a recommendation of number of shards
Not an auto mode or whatever
Libraries call their class or whatever with auto as it handles the sharding for you
And uses by default the recommend number of shards
Discord has no auto mode, Discord just recommends you a nunber of shards and doesn't care what you do with it
They enforce max 2500 guild/shard
The sharding itself still needs to be solved by the API wrapper
API wrappers tend to have a so-called "auto" (or managed) mode that creates the number of recommended shards and handles the connection - Discord has no so-called "auto" mode; it merely wants you to shards at 2500 guilds/shard max
I really hate how rust did cross-os compat
I wish there was just a proper unified way of doing most os-specific things that just return Results instead of needing fucking traits
I really hate how rust did cross-os compat
W
me and my homies hate dynamic lookups
cannot live without them so will withold my comment on that
atp my vtable may be bigger than actual code
tbh they are an amazing abstraction for non performance critical code like http
well yes id never use them in stuff that barely does syscalls
or places where the alternative is a bunch of if else branches
otherwise it doesnt matter much
a lot of them become zero cost anyways assuming they are predictable
only poopoo thing is that they cannot be inlined :(
🔥
45.5% 34.7Mi 45.3% 34.7Mi .text
44.5% 34.0Mi 44.3% 34.0Mi .rodata
3.4% 2.61Mi 3.4% 2.61Mi .eh_frame
2.2% 1.69Mi 2.2% 1.69Mi .rela.dyn
2.1% 1.60Mi 2.1% 1.60Mi .gcc_except_table
1.7% 1.27Mi 1.7% 1.27Mi .data.rel.ro
0.5% 421Ki 0.5% 421Ki .eh_frame_hdr
i have created a process on port 3000 on my vps. It's completely locked down, only my personal ip is allowed to enter it.
i have used cloudflare tunnels to expose the port 3000 for post only requests.
Although, now i am a bit scared about that cloudflare tells me that my configuration is insecure regarding tls encryption. I have setup a tunnel, so why would i need to encrypt my vps? I have just pointed the cloudflared tunnel to http://localhost:3000 tbf.
should i change it by adding tls encrption? If so, how would i ever go on with that.. never did this on a vps.
yargh
Technically, cloudflare's warning is correct in a sense. but the risk is minimal. The traffic never actually leaves the VPS's network stack. The only way an attacker could intercept that is if they have root access to the VPS already, and by then they have bigger things to snoop around in
i see, but the data between post requests -> cloudflared is encrypted though?
And then cloudflared just forwards it through the tunnel over http.
yeah the only unencrypted portion that cloudflare is warning about is a memory-to-memory copy on your own machine.
cloudflare cant tell from its side whether your origin is loopback, same, or across the internet so it just warns all unecrypted origins by default
ah honestly no need to enable tls there.. thanks for helping me understand everything better!
i see i see!
If you do want to get rid of the warning anyway you can do something like a self-signed cert. have your app serve HTTPS locally with it, point the tunnel to 3000 and toggle No TLS Verify on the tunnel's config
you can serve it on any port. ports are labels realistically. HTTPS just uses 443 by default because that's what browsers default to when you go to an https url
No worries! :> Happy to help.
I've been learning more about cloudflare myself here in the last few months
so imparting knowledge is always a must
that's awesome, i love cloudflare so much. Been using it for all of my sites
but honestly, first time deploying it on a vps
I don't really like using self signed certs because they have to be frequently renewed
trying to setup a post-only webhook, so figured that cloudflare tunnels would be the best. Used to handle it with ngrok, but i paid 26$ a month..
I did see you mentioned you whitelisted your own IP to your vps. as the only access. If your IP is dynamic you might lose admin access to your VPS when it rotates
you can use a Cloudflare Access policy over SSH. I use it myself
I think it's more reliable and durable than a baked in firewall ip list
i always have access to the vps through novcn.
I did indeed get locked out, especially as my vps requires 2fa each time you use sudo or login. Actually, it requires you to:
- enter your password
- have a ssh key
- enter 2fa

thats quite a layer
yeah i heard people talk about them but figured to pass due to time constraints haha
yeah facts maybe overkill but trying to secure my vps the best i can.
mines no root access, ssh key only with cloudflare access policy
very nice! Maybe i will have a look into access policies.
i know this is controversial, but i installed a few tools as well and have them log bi-weekly:
aide, clamav, chrootkit, custom yara rules, lynis.
idk the recent news of hacks really put me on edge.
that axios shit was brutal
I seen that one about the xz hack
lossless data compression tools
well, the long story short of it
yeah it was a long story
so basically someone spent 2 years building trust as a maintainer of the xz utils library which is a compression library used basically everywhere on Linux. Then, they slipped a backdoor into the release tarballs that would silently overtake sshd on affected systems. It was caught days before it would've hit stable Debian and Ubuntu releases.
It almost ended up millions of production servers
and it was caught by accident too
some microsoft engineer was working on Postgres completely unrelated to security and noticed his SSH logins were taking some odd 500ms longer than normal and using noticeable CPU. he was doing benchmarks on something else and the differences in variation annoyed him
yo, im new here. building & in queue for review. I was wondering what are some of the must have server owner controls for a bot who is available to anyone to @ by default. so server owner, admin, managechannels+ to control things like allowed channels, etc? I hadn't done as much in this department yet so figured I'd ask here 🙂
Hey there! Welcome to the dev community. Since you're building a bot that's open to mention by default, you'll definitely want to give owners the following controls.
- Channel Whitelisting/Blacklisting
- Permission Overrides
- Toggleable Mentions
- Ignored Role
- Rate Limiting per user/ per channel.
Once you get these covered you will have a much easier time getting through review. Good luck!!
😄
Ensure that your bot uses the permissions it needs and does not include the administrator permission.
thanks great starting point, yeah no admin.
👍
@safe rapids the most reasonable option would be to atleast block everyone or role mentions unless said user has mention everyone permissions, things like ratelimits and per-channel are more quality of life which shouldn't effect bot approval
thanks, ill def do per channel, going to explore most of the others (less so rate limits as ive got some internal guards similar to RL), but more granularity in these areas for sure.
Today we are absolutely thrilled to announce the release of TypeScript 7.0 Beta! If you haven’t been following TypeScript 7.0’s development, this release is significant in that it is built on a completely new foundation. Over the past year, we have been porting the existing TypeScript codebase from TypeScript (as a bootstrapped codebase that...
We got TypeScript in Go
Was waiting for that one
hell yeah
hell yeah
Having a little fun making plugins in C# for Rust, making an economy plugin :p
Unity UI kinda yucky to work with programatically tbh
Holy scammers
see this is the problem with society
everyone assumes the worst in people
he could simply be a humble travelling guide
looking to forward the betterment of society on his own expense
Hi, gm/ga/ge ☕
Does anyone know how I can make the ‘inline code’ text within embeds have a grayish-blue background instead of charcoal black?
can't
Yall think this database editor looks a bit too chaotic? I swear it looks better on desktop but for a mobile view, cant really tell. (Desktop site version and regular mobile version)
Damn that 2nd image is awful, jesus
My fault
What percentage of this is vibecoded?
why is
the text
-# varying
so much
in size?
honestly make the smallest text almost 5 times as big on mobile
so u dont need to zoom in to read
The left is just using the website version on mobile
The right is the actual size but I kinda did the scroll thing for screenshots
So it looks long as hell
Yeah
The right will actually look like uh
One sec
Like that
looks better yeah, tho u could shave some padding to gain extra space
The fact that topbar is detached is annoying me
especially for db tools u rlly want to be compact yet not cramped
If you understood how much scrolling there is, you'd understand
Especially in the docs
Yeah. There's a lot of scrolling and I'd hate to have to scroll to the top everytime I wanna switch tabs. It's a lot, I'm not really a designer tho
I just did what I could fr
they mean this
But when I remake the website, it'll look 10x better
It's not centered either
to make it follow the scrolling, make it position: fixed
Hell yeah, I appreciate it
not another one
FUCK
Better?
looks better yeah, but is that bottom padding on the menu necessary?
new bot im working on, custom agentic ai harness inside a bot - told it to make a little hangman game, host protocol instructions, and files to manage player records and it created and let me play right then. art is a bit rough lol but an interesting proof of concept. basically in that channel any user can now @ bot /hangman to spin up the game from an agent skill/memory with instructions on the tools it build to host it.
It's throughout all pages considering... It's the directory
Kinda need the menu to travel through all the others
Okay I just completely rewrote the whole thing since it was bothering me
Obviously on a subdomain and not actually published yet because im tweakin out on making it work on PC
Sounds heavy
Scrolling on mobile is slow compared to the older one
what
yup
Its not published
it is
to see the changes
But... I never said the subdomain nor is it shown
So you cant test the new one if you don't even know what it is
Not saying they are but you commented that 3 minutes after I posted the photos with no clue of what the url is
certificate transparency logs exist
once you issue a certificate for e.g. a subdomain, it's on a public listing
Certificate Transparency (CT) is an Internet security standard for monitoring and auditing the issuance of digital certificates. When an internet user interacts with a website, a trusted third party is needed for assurance that the website is legitimate and that the website's encryption key is valid. This third party, called a certificate author...
so the staging subdomain was on that public listing
but sure, I won't give feedback on new websites again, thankiies
Naw I just find it weird that you're like, stalking my website to test it and saying it's slower than the old one when in fact it's the opposite after numerous times of me testing it myself
Like that's weird man
Idk
sure as said, won't give feedback anymore
Poor Krypton
This is such a crazy thing to say lmao
You published a site to the public. Subdomains are not private. Deal with it.
Want to have it private? Lock access to the subdomain.
Furthermore you come here asking for feedback, expect more feedback than you initially asked for.
Krypton is a nice guy dont do him like that
bro went forensics on bros domain 😭
Don't share your website or your project if you can't handle feedback
Feedback is one thing, but going out of their way to find a website I have not publicly announced anywhere at all for testing to begin with on a site that isnt even remotely close to being done and saying "its slower than the old one" when not even that much is true either is not how you give feedback
If anything thats straight up weird lmao
Yeah. Feedback on a screenshot. Not for the dude to go finding subdomains i never even announced to anyone on an unfinished website
The fact yall tryna defend that makes you weird too
You showed the url
You made it Public
The url points to my PUBLISHED site. He went to one that WASNT posted
If you actually read you'd know that
I mean Subdomains are Public Info..
Just test on local webservers
Then you don't have the problem
Again, stalking my website to find one I never posted to test and give "feedback" on (which wasnt even done, and he went through a whole lookup in 3 minutes to find it?)
Thats straight up weird
And by no means do I even know a lot about websites to begin with. I dont know all this fancy stuff, I just know HTML and TypeScript. Just figuring out how to use CertBot took me an eternity
just move on, i already apologized. the weird person will make sure to not talk again.
I moved on. Didnt expect to wake up to 2 pings tho
Not only that, I'm not saying YOU are weird, I just think what you did was a little weird. I get you had good intentions to provide feedback but if I wanted someone to find the development website to test for feedback, I wouldve said that. I sent screenshots for that reason. Regardless, like I said, I get you had good intentions
please 🙏
blud is ragebaiting at this point 😭 🙏
y'all need to get ragebait trained this is discord
Who's ragebaiting?
everyone
Interesting
you, me, chloe, sky, the entirety of discord is a giant ragebait
Thats valid
ive become a bit of a ragebait expert
tiktok folks i especially found the easiest to ragebait
i make apps stupid proof cuz im stupid
I think they were supposed to be stacked on top of eachother maybe
The top one is a visual glitch
I use gemini pro and notice it a lot
Lol
I will keep scanning your site for all of the public domain recorfs

Lmao
He is 100% ragebaiting
The fact i fell for it i feel like a loser
Nobody ragebaiting tho
It has to be a ragebait
No ragebait here
hey hey long time bois
hows everyone
hows the AI job taking over treating you

Hi
clickhouse is truly magic
that isn't happening anywhere, for now 😁
what is happening is companies firing people "in the name of AI" and then rehiring at a lower salary
What’s the best usecase for clickhouse
Latest video of NTTS made it to my feed.
How is his main still in discord?
He is literally running exploits for views
analytics
If Discord decided to ban him he would create a new account and make a video claiming that Discord is trying to silence him or something. Not really worth
@frosty gale this has to be ragebait
did you ask it why? i found gemini does tell you eventually
no its just the stuff included in my google one sub
I usually use claude
though the answer is now horrible
I only use Gemini for deep research
host your own gemma 4 instance tbh
Alt accounts monkas
Can someone build me a bot
they must've set the safety filter to high because rarely do I encounter a safety block via api. the safety filter has 4 configurable levels I think
what is the best way to mange payments for a discord bot?
why your ai loves to not answer due to security reasons 😭
did you have anything weird in the memory
Time to walk up to Discord HQ like
Its so annoying
Its holding back features of mine which hold back other features
I dont wanna ship out a half assed version
What even are you developing out?
I need the server members intent for 2-3 new features
Which are very important on people actually keeping the bot
And verification rates with ping on join
Maybe they dont like me cuz my region doesn’t support their 30% cut on all profits
From what people wrote on ddevs waiting over a month is the norm right now
I was banned from that server in 2019-2020
For having my bot on my bio
does anyone know if they have like some way of appealing
or am i not missing out on anything
They do, but you have to send it through support portal
how long will that take 3-5 years?
I have no idea, I was never banned there nor I know someone who sent the appeal
Is there still the requirement of having the bot in 75 servers before getting it verified?
you mean verified on discord or in topgg?
i mean doesnt matter, mine got verified on both and its in like 10 servers only lol
The 75 server number is how many servers Discord waits before sending you a System message from the @urban karma (643945264868098049) account. If your bot is using a privileged intent like MESSAGE_CONTENT, GUILD_MEMBERS, etc then you must get your app verified otherwise your app will be stuck once it reaches 100 guilds and cannot be added further
(if it says unknown-user just trust me it's real. You can even API fetch it or ban it from your Discord servers)
hmm
Indeed
My bot is growing faster than I thought. Due to this, I need a way to apply early to the Discord intent permissions. Is this possible?
Not afaik. You need to hit 75 servers for it to unlock
That reallyyyyy sucks... Because doesn't the application take like over a month at current rates??
Is there anything against ToS that lets me spin up multiple shards of my own to overcome this limit temporarily and then migrate people to our main bot once intent application has gone through?
If you mean under the same bot token, that wont work. Under different ones, that could work, but honestly too much work. The applications are only necessary if you use any privileged intents that need approval like MESSAGE_CONTENT, etc. If your bot doesn't use any of those, verification is practically instant now
I have a whitelabel system setup that lets us just provide a bot token, then it deploys automatically on our infrastructure, all synced through our centralised gateway; So spinning up extra bots is no headache for us.
Unfortunately, we do need intents to work properly (at least for some features)... Guess I'll just bite the bullet when it comes to it 
I'm scared to ask if you use rabbitmq
No clue what that even is, so no 
Everything we've built is all self-made
Sharding is for bots at 2000-2500 servers what are you on about
Also you can individually spin up shards based on a guilds id
We have our own system built in from the off-set for this
@neon leaf i got bored at work so i downloaded an atera installer exe from their site and put it into virus total for shits and giggles and now their sandbox keeps trying to run the exe and its sending the entire team an OTP email for the install to commence lmao
one of them got in touch with atera and they say their logs dont say who it was so im just going to quietly forget this ever happened
lmao
Why has Discord made it kind of free to have our bots verified?
Like as far as I remember, it required a minimum of 75 servers and a detailed explanation of the intents
Honestly that's what I've asked myself for long as well, they finally seem to have that fixed
It still does if you enable intents
Oh, so has the verification phase already been like this?
So the intent and bot verification are different phases of verification
Indeed, verification is automatic and instant when intents requests are manually checked by discord support
But has it always worked in this way?
No, back in the days verification was also manually
Was it actually when it meant something to have our bots verified?
Like it feels very pointless now
It was always pointless because check mark on discord doesn't mean the bot is safe
Yup, that's honestly very fair
But there seems to be a significantly less amount of active developers on Discord especially now that Glitch isn't a free host
Honestly those who only used Glitch weren't really developers
I don't think it's because glitch, it's because discord removed the active developer badge so there is no point of being "developer" for most people
Honestly yes, I do think they should bring back some sort of a badge in order to make bot development more doable for most of the people
Because bot development has always been a massive industry on Discord for long
But obviously, it should be a less-abusable method as most of the people just used a few slash commands to make their profiles eligible of claiming the badge instead of actually developing a bot
There are certain things with verified bots like not being able to change the name when an attacker gains access to the token to do things like impersonation
Technical not free since you have to pay for hosting :p and putting in effort to actually create/maintain your bot, submitting id for verification and other stuff xD
And platforms are better with an open dev scene and api helps Discord too (free advertisement to use discord)
its always free if you host it on someone else's server without telling them
Is this an investment recommendation?
Real botnet right here
Yup I will take it seriously
It looks like such a valid way to keep the payment off myself
Ok go spend your money on doge coin /s
Oh my God another genius
1-2 weeks



)
