#development
1 messages · Page 101 of 1
Me when “don’t use an async function in a .map”
wtf is this
tim said i can tho
He really didn’t
It’s not
i mean
😐
where
on tje Promise.all result
it doesnt matter much
its mapping tjem into an array of promises to feed into promise.all
Also why is setExperienceCache async
no work still
because it calls an API for data
so i need to await it
where did yoi put tje await?
await topList.join('\n')
no
💀
bruh
topList = await Promise.all
if you do await topList.join() yoi are awaiting the .join, not the topList
await applies to the last thing in the chain
o ok
if you want a oneliner using await, you need to put () around the thing you want to await
(await topList).join()
bjt you dont need to await twice, so if you already awaited Promise.all() no need to await topList again
what is this file better sqlite makes
why does this return Value even if fallback isnt provided? It should give Value | undefined in that case
How to do an ip whitelist for tog gg webhook
it depends on what you're using for your webhook, if your webhook is behind cloudflare, just use cloudflare for it
check cloudflares docs
That's not valid at all, what are you talking about?
the at exit handler still works, despite delete mod.cleanup
implicit copy perhaps?
Oh, I didn't notice the colon after cleanup and completely misread the first part
The function is copied, so changing/deleting it doesn't affect the handler
it keeps track of the operations sqlite performs to enable rollback functionality and transactions and stuff
why not fallback?: Value
I do not use cloudfare
then look up on how IP-Whitelisting works on your webserver, depending on what you're using
apache2, nginx
if you're using a library that does whitelisting, look up the docs if it supports something like that
though using cloudflare is your easiest way to do it
🤷🏾♂️ but it still doesnt seem to work correctly, it always gives back Value even if fallback isnt provided
Actually can't think of a more complicated way than using CF
Imagine registering an account over there, figure the shit out and pass through your connections
The easiest way on any OS is to DROP incoming connections not using the topgg source IP
ask a mod in #support, it should've been given to you automatically but sometimes it doesn't go through
alright
does anyone know why it isnt inferring the zod Body correctly? it shows as AnyZodObject even though its supposed to infer the provided type
Holy that's verbose
i dont really understand what youre trying to do, but it seems youre overcomplicating
this was my final solution which worked
Sanest obscure typescript library user
you can create a typeguard function by returning boolean and using the is keyword
hey guys is there any bots that allow you to follow channels that aren't announcement channels?
That's kinda specific, so I don't think so
Especially for how easy it'd be to crash such bot
But shouldn't be hard to make that feature yourself, just don't follow very active channels
well but the thing is id have to use my account since the bot isnt in that server
i dont think thats allowed
yeah thats self botting
yes
not allowed
You can also just ask some moderator if they could transform that channel into a news channel
It'll make no difference for them if it's indeed a notifications channel
i dont wanna switch servers all the time
they usually say no
Open a new discord tab then
You can't mirror the channel if it has enough movement
Even with bots it'd crash in a few minutes
Not even discord news channel would work since they have hourly ratelimit too
hi
Shoot it
okay
i need to
check if anyones nickname
contains the word brenda
BUT
it can either contain or not contain spaces
eg brendaIsCool or brenda is cool
string.toLowerCase().contains("brenda")
will that work
lmfao yeah that
no shot
Lul
HMMMMM
Can also replace all spaces with nothing
.includes
Try includes then
i made that mistake the other day
Idk why js uses includes instead of contains like any other language
Also nickname might be null
Use effectiveName or whatever it is in djs
If there's none then use the null coalescing operator
displayName
Ikr, it’s awful
I’m so used to Java
why am I getting this even though im only using 146905 / 524288 file descriptors?
trying to start a vite dev server
is message.content.toLowerCase().includes("words" || "other words" || "another couple words") the way you are supposed to to that or would putting the words in a separate array be better?
the intention is just making a small auto response thing so when some one says for example, some version of "goodnight everyone " the bot will respond to it
That does not even work
.includes is meant for a single string, what that is doing is supplying it a boolean
It might run due to implicit casts, but it definitely won’t produce the output you want
I've not tryed to run it cuz it didnt look like it was gonna work
Yeah it won’t
You’ll likely need to loop through an array to do what you want here
array.some(s => message.content.includes(s)); is probably what you’re looking for in your condition
mmmm see the code that I was inspired by was some how worse
thought I could make it more compact
yeah that works too but the array.some method is going to be a lot more compact
it does the same thing though
nice
in a perfect world I would make it so that the auto responces would be in their own command files but that would require more code than just slipping it into the message even file
top 10 most readable code
Tokyo type shit
Seeing code in languages other than english is so cursed to me wtf
is it possible to get the name of an autocomplete option
👀
do you have an answer ⁉️
I have no idea, storing it in a variable? 🤷
Its hard to know exactly without knowing the design goals, and what you have.
what
i wanna know if its possible to get it from the api i don't wanna store it anywhere
i know the API returns the value, but does it return the name too?
Like on an autocompleteinteraction?
How are u even getting the field value without its name?
what
To get the field value, you need to know its ID right?
there ain't no id
How are u even getting its value then?
wym
Afaik slashes don't work with positional arguments
They work with named arguments
interaction.options.getInteger('id'); this is how i get the value
but i want the name
There, the id
That's literally an id
Ids don't need to be numbers
They just need to be unique
It does actually, if you have the id you can retrieve more info about it through the slashes endpoint
the id of what
The id named "id"
...
Retrieve that slash using the endpoint, then grab the param named "id"
id isn't a slash commands id
I know
Tho using the api will be much less efficient than simply saving info about the commands somewhere
You want the display name of that param right?
no
Explain then
well i have
but i will again
when a user is running my command there is a option named id, which is an autocomplete option
when they type, i send choices with a "name" and "value" to discord based on what they're typing
when they send the command, i can get the value of their choice with interaction.options.getInteger('id'), however, i was wondering if it's possible to get the name.
I still don't get what you want
...
You say you can get the value with that code, but u also want the param name right?
what are you not understanding
Param being the autocomplete
i want to get the name of the choice they're picking
Isn't that what discord already returns?
no
it returns the value
but i'm wondering if it returns the name too
so i can use it
Did u try printing the interaction to console?
no
Then do it
why
I can't say yes or no because I don't fuckin use d.js
Can't u even try something yourself for once?
i try a lot of things
Do you need to rely on someone else trying it to give you a pre-chewed answer?
yes
Literally print the thing to console, it's literally one fucking line
What did it show?
Well, then that's it
i want the name tho
why discord so dumb are they so lazy that they can't just send both
Because 99.9% of the time the display name is useless
facts
Since u already know the names beforehand
Depends on what you're generating
As tim said, most of the time will be spent doing I/O operations
Which is why you should cache resources if you want speed
this takes like 150ms to generate
I bet 140ms is just retrieving that thumbnail
possibly
let me see
thumbnail is like 60ms
however
i also load the chart as an image
how long did it take yalls bot to get approved?
right now it takes ~2 weeks
Current wait time is 1-2 weeks with 2 weeks being more of the average
top is thumbnail
middle is chart
bottom is total
why does the chart take so long to generate
You tell us, what data are you fetching to generate these charts
well the time to fetch the data is not including in this
thats just generating the chart itself
Show what you’re doing
the chart?
Yes, show where you start the timer to where you stop it
Doesn’t help very much since I don’t know what those functions do
Well yeah but I was expecting some actual code, not just like two function calls
this is the generateChart function, there's not much i can do to make it quicker https://pastebin.com/DdjTAit3
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.
Just as an experiment, try removing the registerFont call and just use the default font
Since that’s (most likely) an IO operation, that could be the slowest thing to call
hm
Haven’t ever used it though
whats a faster one
I don’t know, I haven’t used canvas libs or chart libs at all
Keep in mind that “slow library” comment was just speculation
Someone more experienced with these libs might know what you’re doing wrong
hm ok
is there really no way to make the icon load faster except caching
cus in reality there won't be many times someone requests the same thing twice
If you’re requesting it from an API there’s not much else you can do
Caching is used everywhere for everything because it’s way faster than constantly requesting things from an API
So then how are you “getting” the image data
every hour my bot fetches data from the api and stores it in my db, while i'm at it i cache the data
read the docs
which library
I’m mostly a python, c# developer but how is discordjs different from nextcord py (obviously the code, etc)
discord.js is completely different compared to Nextcord.py (Nextcord.py is a fork of discord.py, which you honestly shouldn't use as discord.py is maintained again), and you're comparing Python to JavaScript which is also vastly different, discord.js has an official guide website that walks you through the simple steps and tells you how to make a Discord bot with it along with some useful stuff: https://discordjs.guide/
But of course, you should learn JavaScript before jumping into making Discord bots with discord.js as the discord.js guide already mentions at the start
PS, it's just nextcord - not Nextcord.py
See images, links, etc. Google is your friend
lvl_calc + 1 - 1 lol
Yeah it did something weird but it got the answer for me
If it works... 
Good enough for me

Yeah it’s almost like a more advanced rubber duck
Twice the value for explaining your problem to it lol
I'm so bad at math I knew I had to square it but I didn't know how
So ChatGPT saved me
lol
This is so pog
I should ask it questions about how to do some of the calc concepts I don’t understand lol
Probably pretty well documented throughout the 300-400 years it’s been around
I had seen people talking about asking it to do coding on Twitter but today I was stuck and instead of googling I thought it's try it
I'm genuinely impressed
But I'm also afraid beginners wouldn't take the time to understand what's happening in the answers
It's like an instant stackoverflow answer
Much spoonfeeding
I'd love a chatgpt version of copilot
true copilot is useless most of the time
very rarely it actually does something right
wtf
i tried that query
it gave me very incorrect responses
i was trying to calculate mee6 levels since i scraped 200k+ levels from mee6 for combat warriors
Chatgpt is known to be somewhat bad at math.
I wouldnt depend on it to give reliable answers
bing ai is a bit better at math, but also gets things wrong sometimes.
I have given it some really complex scenarios(multiple paragraph explanation of what I wanted) and gotten correct answers which was really cool.
i might have to try bing ai
I'm finding it really useful for errors, it does a good job understanding context and finding a stack overflow answer.
(and linking to it is so nice)
<guild>.memberCount
members ≠ people who use your bot
yeah
client.guilds.cache.reduce((acc, guild) => acc + guild.memberCount, 0)
this is what I use
This will not work if your guilds are not cached btw
my bot has 750k members but only like 70 people have actually touched it
It's like 1 active user per 2 guilds which on average is good considering most guilds are probably old dead abandoned ones people don't use anymore
I believe it's from 75 onwards?
yes i know
if you have the Guilds intent they'll be cached
yeah ok bun
lol
same thing
discord is slow
smhh
i submitted verification 12 days ago ☹️
It means nothing really
and means discord has your real name 
Technically it doesn't
yeah nothing bad
er
which means discord still has access to it
whats discord going to do to me
They don't actually
send you to the gulag
They were pretty clear about it, so did Stripe
Discord has got very good at catching phishing links before they even get to the servers now
phishing links usually change a lot and discord has builtin automod now
We used to use ZeroTwo for that but it didn't detected anything for months since Discord released better spam protection
👀 have we even had a phishing link here in awhile?
I can change that 
If that's all it does then yes. Discord already handles 99.99% of these now.
Moderation bots are becoming pretty useless
Imagine discord not stealing a popular bots idea and making it useless and implementing it themselves
Sounds like a much worse platform
Well it's actually a good thing. I'm glad they did.
Moderation should be handled discord side
bots which do moderation tasks are a risk
Indeed, I am also glad
Moderation bots only needed to exist because Discord was doing such a bad job with phishing and raids
Isnt their auto mod still kinda buggy?
Now that Discord are improving on that, the moderation bots are becoming pretty pointless
I haven't experienced any issues with automod here
It even accepts regex now
REGEX
and theres the new ai automod, which for a server like ours might not be super useful but a lot of servers that will be perfect.

👀 theres a ton to do today tbh
I mean, large, traditionally moderation-oriented bots like MEE6 are moving towards monetising communities and offering AI and other tools now because they know moderation is a dead path to stay on.
thats because of how saturated the bot market is now
All those multi purpose bots that got made to be a carbon copy of another
Those are all already done mac
Please god not another card game bot
Yeah but each game bot can offer something different. It's something you actually need to be creative for, unlike coding a moderation bot.
Always have the option to use already trained models
I was originally planning on using AI for auto mod in one of my mod bots back in the day
but got too lazy
alright
I'm playing around with some stat tracking stuff.
For example, an Iframe users could put on all their favorite botlists/serverlists and track viewcounts across platforms to see which ones are the most beneficial to their bot/server.
Mac's card is worth 1 macaroni noodle
no please dont 
Top.gg is 90% of my invite traffic, and Discord's "Add to server" button on the bot profile is the other 10%. I'm on all bot lists and none of them do anything for me 
👀 yeah, I would think so.
I track through the invite link
PRINT ME PAPER MONEEEEEHHHH
It's a registered trademark
Im talking about the company
It's a Dutch company
I assume you guys got an LLC or smth
I thought about adding that too, but for anyone to use.
Oh you are so lucky it wasn't registered in America, we hate monopolies /s
I don't know how the US stuff is handled but I believe we're just a trading name for Ferox / Medal over in the States
We americans always lose at monopoly
yes
We have no laws in the us for monopolies.
We do?
our only laws are for anti consumer practices, which cover most monopolies.
I would say the EU hates monopolies more than the US
but nothing specifically about monopolies
Anyway we're very off topic for development here 
lmao
Thought we had antitrust legislation
#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}
What do you guys think of my super advanced program?

😔
pwned by chatgpt
its the weekend, be lazy
Okay bro, bing dont know shit
I spent my entire week being lazy because it was my spring break 😉
I need to get a girlfriend
Hello this is Top.gg! I think yo- ERROR 503
Make life more fun
no bad mentality
Hello this is Top.g- ERROR 503
endl is platform agonistic as windows might complain about no \r
Yeah but I’m assuming this is an ideal environment where he’s not deploying his hello world application to multiple platforms lol
endl flushes the buffer, so it'll heavily degrade performance if done too much
endl endl endl endl endl endl
So what if I am
why's this happening
oh wait i'm dumb
nvm 😳
forgot to add breaks
and now i have another question. so i have lots of data and when viewing it on the charts it looks cluttered and hard to read, so i want to remove some of the points. would it be better to do it with sql when getting the data or removing them from the array after i get the data.
i tried to do it with sql but i can't find something that works with sqlite ☹️
you won't find something that specific ready to be used
use your brain and write a query that merges every 2 rows into one
wym merges two into one
you want to reduce the amount of data
you either limit the amount of rows or merge the rows into a single row
er
sounds like too much work, just ended up doing the second option
my bot is pretty much done now pog
import { FontLoader } from 'three/addons/loaders/FontLoader.js';
import { TextGeometry } from 'three/addons/geometries/TextGeometry.js';
how do i import such addons on nextjs
Hello, does someone know how i can make it that when the message is added to the database on line 188, it will send the doneEmbed on line 190
man this is some crazy formatting
just send it after you set?
yes
wait lemme explain
someone will choose a channel first
then the bot will say "enter a welcome message now"
then after someone entered the message the bot will say Done
so i am going to insert my discord status on one of my pages, what's the best way to approach that?
your status or the bot status?
well, the only way would be querying discord
if ur ok with some imprecision, you can cache the status for like, 30 mins
that way you'd not need to fetch from discord all the time
uh so it's a website right how would that work would discord be fetched everytime a user visits the site
Depends on how you’re sending the information. If your app sends that request every time that page gets a GET request, then yeah that would be a problem. If your app only sends a request every 30 minutes and then sends a cached version to incoming GET requests to that page then you’re fine
It wouldn't really need to be cached if you used a bot which only had this one purpose.
you could enable presence intent and it should always be cached correctly so you dont need to ever fetch your own status.
just get it from cache
that'd only work for users that share a server with the bot
isnt it only their own account? 👀
also, dont you need to share a server to get status information?
u can get through oauth2
I think
idk what they're planning tho, I imagine it's some kind of dashboard
judging by their status they're making a portfolio and want their status on it
guys i have two questions about canvas when hosting on ubuntu
- how can i make the emojis work
- how can i make the text not squished in
(first image is windows, second is ubuntu)
1 - emojis must be supported by whatever font you're using
2 - "squished"?
Only thing I can see that may be considered "Squish" is the text next to the thumbnail
all of the text is squished in a little
it’s very noticeable
and it’s the same font as you can see
but how do I make emojis work on Ubuntu
use a font that support emojis
?
unicode fonts
👀 does canvas use the default system font?
They may look very similar but ubuntus might be slightly less wide and not have emoji support?
what font is it?
perhaps it's using a fallback font in the first case for the emojis, where in the second case that emoji doesnt exist or isnt mapped
what?
emojis are mapped by the font, not OS
then why are emojis not working on Ubuntu
^
the emoji in the second image doesn’t exist?
idk if you can see or not but they’re the same things just ones ran on Ubuntu
they’re the same emojis
^
so why isn’t it using a fallback font on Ubuntu
because the fallback font might not support that specific emoji
iirc the fallback for windows is times new roman
which is extremely rich regarding emojis
idk which is ubuntu's
so I need to install times new Roman on Ubuntu?
no
why
times is proprietary to windows
bruh
does open sans look ugly
you're ugly
I see nothing squished
mind to circle it?
circle what ur seeing squished
the text…..
CIRCLE IT
…
I'm not seeing anything off
well it is
If you put the two images on top of each other and turn down the visibility on one you can see it better
even he sees it
but it’s not just the title it’s all the text
I think what ur calling "squished" is that the emoji isn't taking the same size
I really can't see a difference
well I’m not sure how your not seeing it because it’s all the text, but I’ll send a screenshot in a bit
not at my pc right now
Perhaps you're just paranoid
how am I paranoid when the other guy saw it too?
and I put them on top of each other the Ubuntu one is definitely squished
She said "maybe this is squished" is the slightly bigger space between the title and the thumb
Which I already said, is because the emojis are different
Lmao
I’ll send a screenshot when I’m on my pc
💀
don’t know what type of screen your on that your not able to see it especially on the title where it’s really noticeable
i literally don’t see any difference
yea
and setting up fonts on canvas is a royal pain in the ass
can take some jiggery pokery sometimes
the letter spacing is just lower
if you want eomoji font support / different emoji styling you should be installing emoji fonts like Tweoji
it is, I've been doing software engineering for over 5 years, and have had similar issues with other fonts
they’re different sizes
I literally put them on top of each other the windows one has a slightly higher height
font size, letter spacing, line height is entirely dependant on the font
they’re the same font
not to mention character styles
might be the same font
but are they the same font version
because that exists too
they’re exactly the same font
transferred the font file directly from my pc to the server
no
The other way around
yes
it doesnt really matter
windows manipulates fonts really weirdly
because it does all that accessibility crap
you shouldnt really be trying to compare how it looks on windows to linux... and realistically you should setup a dev environment for testing like that
so your saying windows is stretching the font?
yes
bruh
👏
how do I make it not stretch the font
Given how fonts don't work in pixels but points might also be rounding issue no?
might be yea
but windows also just does really fucky things with fonts
Not that they should be comparing windows and linux anyway, since it'll not run on windows
...or will it?
Just setup a dev env on ubuntu and either code remotely or use git
^^
That way u can fine tune in the target system
does that make it look like how it does on windows?
I don’t see a point in doing it then
looks weird on ubuntu
It literally look the same
no it doesn’t
Nobody would notice even if it was 1cm wider
They didn't
they did
They said THE SPACE BETWEEN THE TITLE AND THE THUMBNAIL IS SLIGHTLY BIGGER
That's not saying "the font is different"
it looks fine.
no it doesn’t
Maybe you're just tired and seeing things
Sanest battleless interaction
how am I seeing things
Among 4 people you're the only one seeing the difference
you saw the difference
sec ill make this easier for u
I saw the space being bigger
Which I already said 4 times it's because of the different emoji
Emojis aren't monospaced
the text itself is a slightly different height
https://scs.twilightgamez.net/g/gR2qz.gif I see 0 difference. And the space is bigger because of the fire emoji
I literally can't notice it
I can see the difference and it’s unseeable now
That's called paranoia
☹️
There is no difference
there is a difference
Circle it
fix the fire emoji problem and they'll be identical
I’m not on my computer
The 0 looks like 1 pixel more squished
all the text is more squished in
you're seeing things
It’s not
im not
I see what hes talking about now, but its not THAT big of an issue.
You’re paranoid
hold on ill make another gif.l
exactly
the text is moving due to the missing emoji
which isnt helping
It’s like 1 pixel less in height
The average user will just pass by without even noticing the color of tge chart
also, just so you know.... it wont matter what you're doing when most peoples pcs handle fonts differently anyway
lmao
Nobody will do forensics analysis on the image to find the difference
I’m rendering the images they’ll all be the same font
There is a tiny difference between it, nobody is going to know
it’s a bot
Now I can see it
But that's undetectable unless you put in a fast gif like miyu did
I detected it tho
99.999999% of the users won't
Also it doesn’t even look bad?
Don't think so, the only way it'd look bad is if it was pixel-aligned with the "corrected" font
that’s what Luke said
You spend so much effort in such a petty thing instead of important things, like learning how to optimize your chart or stuff
there’s no way to optimize my chart
Waffle already checked it out I’m literally just doing the bare bones with the library
lol
and this isn’t a petty thing it’s a design flaw 😢
Also the user will never notice the difference, know why?
They don't have the other side to compare against
They'll only ever see the ubuntu version
😕
very sad moment that this issue is not fixable
but I thank you guys for the help and eventually seeing the height difference after some convincing
Now don't be such a douchebag
I only saw the difference because miyu made a very fast gif
The difference is literally unnoticeable if you're just looking at the images
yes but instead of believing me because I’m definitely making up that they’re different heights you call me paranoid 👍👌
You literally didn't give a single proof that there was a difference
And yes, you're paranoid
im not paranoid
You are
very
no im not
You're as paranoid as someone who say water and dihydrogen monoxide taste different
If everyone is "wrong" perhaps you need to reconsider whether you're right
you were literally wrong tho
The common denominator here is you
☠️
I wasn't
I said I can't see a difference
yes you were
I couldn't and still can't see the difference in the original images
The only way to see something is if you zoom in and make a gif with it
Not possibly, it IS true, nobody saw a difference without miyu doing it
but what was I wrong in exaxtly?
You were wrong saying it's a very clear difference
because it is to me
do you think I just randomly decided to compare the size difference of them?
Yes
I didn’t
The user won't be able to compare
But anyway, I won't argue since that'll just inflate your childish ego
I don’t have an ego you just think you’re always right
if anything you have the ego
🤠
he does
how am I wrong in this situation when you guys are saying there’s no difference when there was?
👍perfect sense
Okay. Theres a big difference between "There isn't a difference" and "I can't see a difference" we wernt stickly saying you were wrong with the difference, hell I even pointed out in the beingging about the spacing between the text and image. The thing we are saying is that is not as big of a deal that you made it and now you're being childish.
So miyu, how's the bot going?
haven't worked on it much as of late. its still running, but I've considered shutting it down due to motivation and saving money on vps costs.
Working on any other hobby?
Going through c++ courses atm. Trying to expand into more advanced languages
Courageous
Cpp honestly ain't that bad if you avoid winapi and setup a good error logger asap
Well, idk what I really plan on using it for. Maybe build apps? Exploring game hacking stuff? Idk, but it interested me for some reason.
this did nothing
Figure it out
wrong once again ☹️
Figure 👏 it 👏 out
When you become less egotistical perhaps I'll spend effort trying to help you again
i will, just letting you know your solution did nothing
Then find something that works
you don't need to help me, no one is forcing you to
i'll find a solution regardless
Don’t bite the hand that feeds you
ignorant and egotistical developers tend to not go very far
why not?
because then that hand won't feed you anymore
until you run out of food that you like eating
Yea but people won't make the same mistake twice
it's as simple as don't be a dick lol
discord is very wide
billions of guilds
running out would be hard ngl
people try to help you and if they get it throw back in their face you're sure as hell gonna get a reputation that'll mean people will just ridicule you instead
😢very saddening
"aw man I guess I'll be a dick to people just because there's other people 😢"
also I just checked out your website @hushed robin
nice
I like being flashbanged every time I go to a link of yours that redirects
lmao
please fix
"too difficult" when you literally don't need to have that there 
it's like one of the simplest things to do
lmao
but aight
user experience would be better
considering you were going ape shit about a 1 pixel difference before
is there any benefit to being a dick to devs helping you? no, but you still do that :p
what user experience it just redirects u to another website
from a dark background to a while background
why not just go directly to the link without the redirecting screen
You're joking right?
whats wowing
the fact that its very simple to go
html,body{
background: black;
}
on your redirecting page to avoid it
idk why he needs the redirecting page at all...
its so easy to just 302 to a link with 0 white page
html, body {
margin: 0px;
background-color: #ff0000;
}
``` 
@earnest phoenix @quartz kindle should enum values be PascalCase or UPPERCASED_SNAKE_CASE? ```ts
enum First {
SomethingThat,
IsVeryInteresting
}
enum Second {
SOMETHING_THAT,
IS_VERY_INTERESTING
}
PascalCase, just like macros

i often use enums for constant so i use screaming snake case
I use screaming snake too cuz you can instantly notice which values are contants/enums
wym
so should i use the first or second
personal preference, I just find the second more obvious
so he gets the embed in discord likely
A website made with Typedream.
the typedream link advertises typedream lol
anyone knows any lightweight summarization model?
No it's a portfolio, and i am trying to keep it serverless
PascalCase
But i have heard there are third party apps that help you with the user status
it's still a common convention for TypeScript enums to use PascalCase for their values. But, if you prefer a different convention, you can use it as long as you're consistent throughout your codebase
enums in ts are constants
usually global constants
so it's worth setting it as screaming snake case
yh, enums are a way to define a set of named constants in TypeScript
the values of an enum are fixed and cannot be modified at runtime
Enum name scheme is basically just preference between pascalcase and screaming snake
It doesn’t matter all that much
so, for me, using PascalCase for enum values is a convention that makes the enum values stand out and be easily recognizable as constant 🤷
pascal - class / interface names
camel - variables, functions, methods and mutable fields
screaming snakes - constants (global constants, enums, static class fields)
it doesn't really stand out for me
if (env.type === EnvironmentType.LACKS_CRITICAL)
new WarnConstructor(...args, _class.ENVIRONMENT_ARGS).dispatchSend()
is more recognisible than
if (env.type === EnvironmentType.LacksCritical)
new WarnConstructor(...args, _class.EnvironmentArgs).dispatchSend()
imo
both styles are certainly readable. It's ultimately up to personal preference and coding standards
constructs are not global constants
being able to differenciate between types of fields is important imo
but they are typically named using PascalCase as a convention in many programming languages
like ts
i used to write in enviroments that lacks syntax highlighting
in this case it's not a construct
more like an intrinsic constant
so screaming case for me
but say in rust
yeah mb
rust enums can be constructed with values defined in enums
in that case, it's used with pascal case
Rust enums are different though because they act more like genuine structures than ts enums
yeah thanks, I'll choose the screaming one in TS now
thats sad as hell lmao
Surprised they dont just use github pages
lmao
lol
triangles
Now make an engine 🧌

I've heard there is certain servers you can join and then you can use their api to get your status anyone can provide me with an url?
why not just do it yourself?
because serverless
You can literally use a cloudflare worker iirc
dont even need a gateway bot iirc
hmm
Note that even though it's personal preference, pretty much every big project uses either camelCase for enum values (such as kBitMask or constexprValue) but some use SCREAMING_SNAKE_CASE for legacy codebases
It appears that PascalCase is unusual for enum values, as well as the SCREAMING_SNAKE_CASE
It has been used very thoroughly throughout big codebases, especially Google's projects
I mostly use SCREAMING_SNAKE_CASE for env vars, or specifically necessary values that will cause the app to not work unless set
anyone know of i can use one one audio stream and send it to multiple discord VCs?
cuz the only thing i can think of atm is to stream the audio like those internet radio stations streaming mp3 and then just make a standard bridge from that to discord for each vc
but i really don't want to do that
I can recreate multiple sources but that would require a whole bunch of indexing and databace shenanigans
don't want to get into that just for a dumb audio command
any ideas?
and once again I have scaired off everyone from the development chat im this server with a question that is so niche that no one knows how to answer it
I would think its possible to do easily but buggy.
If discord lags on one stream I'd imagine something like this would cause weird artifacts on all streams?
You would have to have multiple streams going to discord, no?
Since I don't believe there's a way to only send one stream to multiple connections
Could be wrong though
I'd think so, in nodejs there are pass-through streams.
Which I think can be made to duplicate it?
https://stackoverflow.com/a/19561718
screaming snake case is def the most popular
i'm legacy 
I'm thinking more along the lines of one source but can be accessed by multiple vcs
so you just run a commands and you just get connected to the same source as everyone else/ send a coppy of the stream to each vc
if that makes sence
afaik, streams are linear. one stream can only be piped to one thing.
from what I understand they can be duplicated, but that's not really what you're asking for.
That stream could be duplicated on discords side to many voice chats, but that would require discord adding support for it.
nice, managed to work with bezier
that's cuz bezier
java's default circle shape isn't really a perfect circle
actually, it is, just compared with the default impl
could i duplicate it and then just send the duplicates to indevidual discords?
but then I would have to track each one so they get killed when the bot is kicked
and thats back to square one cuz I can just make multiple instances of the source comming in from the sound card
I see many people posted about topgg's DBLClient's get_user_vote function just hanging not doing anything. I get the same issue. I found no solution. Any idea? Maybe it won't work with AutoShardedBot object?
dblpy = topgg.DBLClient(bot, topgg_token)
vote = await dblpy.get_user_vote(message.author.id)
one way is to debug and see how it goes
Well it just runs in this loop until there's an aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected exception

Anyone else got any idea? T_T
It isn't, going through many big projects and medium level projects, most of them use camelCase enum values
@wheat mesa need some help with opengl blending, it's acting weird when the backgrond is white vs when it's black


