#🪅-progaming
1 messages · Page 5 of 1
so funny how this actually almost entirely works with strings
if only the requirements had versions....
oh god, imagine a userplugin that would put all codeblocks through that thing before being sent
send all your messages as codeblocks like scammers 😍
Hi I am Discord suppor.t
Please reply with your account credentials or your account will be delete in 30 day.
omg is your account ok?!?!
is it going to be delete in 30 day by Discord suppor.t?!?1!?1!!?
theres brazilian gov links in ublocks badware risks list

i avoid all viruses
(link risk)
i'll accept the challenge
hi i am roblox suppor.t
Please buy this gamepass or your account will be delete in 10 second.
Hey, not sure if this is the right place for this, but can someone give me some tips on how to improve this sorting algorithm? Thanks :D
from random import shuffle, randint
def very_fast_sort(sortee: list[int | float]) -> list[int | float]:
remains = []
iters = 0
while True:
index = 0
while index < len(sortee) - 1:
if sortee[index] > sortee[index+1]:
remains.append(sortee[index])
sortee.pop(index)
index -= 1
index += 1
if sortee[-1] < sortee[-2]:
remains.append(sortee[-1])
sortee.pop(len(sortee)-1)
if len(remains) == 0:
print(iters)
return sortee
insert_idx = randint(0, len(sortee))
shuffle(remains)
sortee[insert_idx:insert_idx] = remains
remains = []
iters += 1
i gotchu
import random
def is_sorted(arr):
return all(arr[i] <= arr[i+1] for i in range(len(arr)-1))
def very_fast_sort(lst):
while not is_sorted(arr):
random.shuffle(arr)
return lst
bogos sorted 
how to hide the little "Create Invite" button next to the channel name
css
is there any guide from where can i edit the css?
quickcss
div[class*=children_]:has(div[aria-label="Invite to Server"]) {
display: none;
}
div[class*=children_]:has(div[aria-label="Create Invite"]) {
display: none;
}
not working
wrote on quickcss, restarted the dc
is discord language set to english?
yes its on English, US
works on my machine
same
someone really needs to make plugin regarding to this
maybe you're putting the css in the wrong place
I put the code on Themes>Edit QuickCSS
it is enabled right?
i hv to enable any plugin for that?
Thank you, enabled it. Working fine.
Also thanks @languid tide
no way im being blocked from #🏥-vencord-support-🏥 for using dev build 
bye bye support helper
You're a genius
Apparently I have heard that not only dev. build users are affected, but also those not using the "official" way, #🏥-vencord-support-🏥 message and #🏥-vencord-support-🏥 message
you aren't
it pops up with "fuck you" basically and throws you out of the channel
what theme do you use for the light mode (or is it just the normal light mode?)
normal light
you mean the "hold on" thing?
LOL bookmarked
waited 11 years for fix
person immediately asks for way to reactivate buggy behavior
https://xkcd.com/1172 moment
i'm not a girl, i'm an AbstractFeminineEntityFactory
please get me a new AbstractFeminineEntityFactory()
I just removed the code

working now
@native spruce can i do this on my iphone with jailbreak
i mean depending on what it was after 11 years it can be expected to be regular behavior so the "fix" to users might be the "bug" lol
xddd
lol
they actually added an option for it
set oldundo
yeah
obligatory xkcd
I guess asking third-party plugins injections support in #🏥-vencord-support-🏥 in prohibited, can I ask it here than?
The https://github.com/Vendicated/Vencord/blob/main/docs/2_PLUGINS.md guide says I need to "Create a folder in src/userplugins/", is it means in the downloaded source code or where?
Where do I need to run "pnpm build"?
I can't figure it out do I have to build Vencord for third-party-plugins usage/creating or not? It appears to be true, but Fafa said plugin creating here is same as with BetterDiscord (where I can just put my code in the plugins folder and it just works)
i didn't exactly say "its the same", it's the same as in dropping files in a folder*
you git clone vencord, do all the changes you wanna do, then run the commands provided in the markdown file
Then point your vencord install to that dist directory or something similar
thats exactly what Ive told them in #🏥-vencord-support-🏥 
Uh
I wanna create a plugin but the example plugin GitHub thing is kinda confusing.. it’s a very simple idea, I don’t have TS knowledge only 5 years of programming in lua python html css js and vue which is recent, can I get a bit of assistance to achieve my goal?
mind sharing your idea
You didn't. You just posted a .mds and said "the plugin guide says what you need to do" to this question. Thanks for help anyway
The md's tell you which commands to run
There were several times I asked "where to run these commands?", this guide didn't answered it. I guess there are git commands?

Yeah the git command is to clone the repo
youd run them in your cmd/terminal whatever youre using
explained in the link ive sent above as well
Yeah, thanks, it much more clear for me now
Just want a plugin that hides messages, like if I open someone’s DMs I don’t see any of their messages (or mine)
Or is this idea harder then I think it is
Figured it would be a simple for loop and some command to get rid of the html elements out of the dm
you could probably fetch the messages of the dm and then remove the elements
might want to ask someone more advanced in that area though
Yeah well
Shit
Is their docs?
for creating plugins?
Yes like actual documentation
i only know of the md files, dont think there's an actual documentation
Yeah me too
It just is something about string replacement
Might have to just write a JavaScript function to do it
@royal nymph you made Golang what would be best
im making adb logcat tui
do i make thing to interact with the socket directly
or
use adb cli
i didnt see any lib for go that adds adb stuff
oh
nvm

@royal nymph 
im using charm libs
they look prettyy
Glamorous glamorous OuH ouHhh
they make great stuff

Dolfies should try to do this

What if you are in a different VC in a different server
Would that...work?
can someone move you to a vc in their server when you're in a different servers' vc?
probably i dont know anything as to what it checks
i don't think that works
yeah, I don't think discord would do such a mistake I changed my mind if you know about the edit message bug,
i am not, please enlighten me
I am unsure of how to explain this, but I would try. there was a discord bug where you could edit your message but it won't show to others that you edited the message, no text to speech has explained this topic better then me
you could check his video
https://www.youtube.com/watch?v=ykEcPWqsMBk
Ok as this wasn't quite clear to me initially, I will put this for discord search
In order to see the state of whether the current client is in VC, you use the VOICE_CHANNEL_SELECT event, it tells you both whether you connect and/or disconnect from the voice channel (by checking if currentVoiceChannelId is null then you would use channelId to get the voice channel id, if currentVoiceChannelId is not null when the event is fired, it appears to be a disconnect event (a little confusing to me which is also why I am documenting it, I can see how to determine it, just I feel like I'd do the opposite, on connect currentVoiceChannelId should be set and on disconnect, it should be null but I am sure there is some reason they did it the other way
Ok there is also VOICE_STATE_UPDATES which fires for both local (the local client, you) and external voice chat joins, and you can figure out whether it is connect or disconnect in a similar way, if channelId is populated, it is a connect, if it is null, it is a disconnect, even more straight forward than VOICE_CHANNEL_SELECT (imo)
I am sorry 😦 what fried the brain?
Also it appears that the subscribed events do not have a data type I could find in Vencord source so I guess FluxDispatcher events come from elsewhere but it is fine, as with JSON.stringify, I can see the structure and get what I need without the exact type although I don't know if that is best practice (looking at the other subscribe examples though, the type is not specified/any for them as well
Given VOICE_STATE_UPDATES has voiceStates in an array, does Vencord sometimes receive multiple updates at once and sends them in an array or even though it is in an array, it is safe to assume vencord only sends 1 voiceState object for each time that event is fired, I will probably play it safe and use a for anyway, was just curious
Oh, it appears VC Narrator may use the right approach while some other plugins may be doing it in an non-ideal way, if you put it inside the flux property in definePlugin it does indeed give you the type, interesting, if I wasn't using intellij (it magically knew the type after the foreach and referenced vcNarrator) I wouldn't have found the better way
Oh I see actually, they define the type themselves (in VCNarrator), so either way is fine but the flux property seems like a simpler way to go about doing it
Ohhh, they modeled the interface of VoiceState themselves
what are u even saying
flux stuff are events from discord
if you want them typed u need to manually create a type :3
Yeah, I noticed that in the other plugin, I don't normally program in NodeJS nor am familiar with the electron side of things (FluxDispatcher from WebPack (according to import) so maybe WebPack side of things) so it was fun figuring it out as I went
(sorry i didnt mean to sound rude, just big wall of text)
It is alright I didn't perceive it as such and yeah with a lot of long messages, I don't blame the response xD
Essentially, I noticed after quite a bit of nothing getting sent back from arRPC that it was missing some things, it doesn't inform the client (probably because if it did send back a response like not implemented, could break some RPC apps) so I am looking into implementing some more things into ARRPC, mainly Voice channel related things, I stumbled upon the bridge plugin and figured that is where I need to modify to first send the data along the bridge and then modify the ARRPC server code to potentially store and then implement the response for the CMDs so then I can use those endpoints and help ARRPC to become more complete
So I am currently on the vencord ARRPC plugin side of things
you want to add additional rpc stuff to arrpc?
Yeah I notice it has only a few CMDs implemented https://github.com/OpenAsar/arrpc/blob/main/src/server.js#L138
**server.js: **Line 138
case 'GUILD_TEMPLATE_BROWSER':
yeah thats true, https://github.com/OpenAsar/arrpc/issues/18
you wouldnt need to edit the plugin
you'd first need to edit arrpc itself
Oh... I would need to modify the bridge anyway right? As my thinking was going in a straight line from client sending data to ARRPC, ARRPC reading the response, ARRPC (probably) storing the response and then on GET_SELECTED_VOICE_CHANNEL for instance, sending the last response from the bridge to the RPC connection
why the ... in c++ if (x>0){x--} works correctly when x is int32_t but not when x is int64_t
what
uint64_t n=2;
scanf("%d",&n);
works
uint64_t n;
scanf("%d",&n);
does not
initialising n that is initialised anyway by scanf fixes it
aight well I made a plugin out of that, and it's only a little choppy
and if you want it for whatever reason, well, I have bad news for you (also I don't have image perms sadge)
https://cdn.discordapp.com/attachments/604382796332662787/1238604504031563989/codeimagifier-47cad9fcac24.png?ex=663fe3d5&is=663e9255&hm=e9131ec234e6014a3999c8fb02133447cb1600464b56ea06fe1fae3ec8da3839
yo im tryna make a text rplace plugin, its going fine so far but i need help getting the reactions to work
cuz having it react using:
["a", ["\uD83C\uDDE6"]],
["b", ["\uD83C\uDDE7", "\uD83C\uDD71"]],
doesent seem to work
but using symbols:
©
does
im using this:
window.Vencord.Webpack.findByProps("addReaction").addReaction(channel.id, message.id, { name: reaction, animated: false });
you probably need to use reaction name/id, not the symbol it represents edit: actually discord uses emojis as names
well thing is reaction name quite literally reacts just with the text and I cant find a reaction id for this as it seems to just be svgs
- write
Vencord.Webpack.findByProps("addReaction").addReactionin devtools - right click-> show function definition
- set breakpoint
- react with what you want and observe the results
wait they really use emojis as reaction names
why
Vencord.Webpack.findByProps("addReaction").addReaction("1223973149222375536", "1238620501346353332", { name: "\uD83C\uDD71", animated: false });
``` works perfectly for me
what are you exactly passing into the name field? just the string or one of these arrays?
great so its my coding error how fun
function convertToRegionalIndicators(text: string) {
const regionalIndicators = new Map<string, string[]>([
["a", ["\uD83C\uDDE6"]],
["b", ["\uD83C\uDDE7", "\uD83C\uDD71"]],
["c", ["\uD83C\uDDE8", "©"]],
let result = ''; // Initialize an empty string to store the result
// Iterate through each character in the input text
for (const char of text.toLowerCase()) {
// If the character has a corresponding regional indicator symbols, append them to the result
// Otherwise, append the character itself
const emojis = regionalIndicators.get(char);
if (emojis) {
result += emojis.join('');
} else {
result += char; // Append the character itself
}
console.log(`Character: ${char}, Converted: ${result}`); // Log the conversion result
}
return result;
}
const handleConfirm = () => {
const channel = ChannelStore.getChannel(message.channel_id);
const regionalText = splitText(inputText);
const reactionList = regionalText.split('');
reactionList.forEach(reaction => {
window.Vencord.Webpack.findByProps("addReaction").addReaction(channel.id, message.id, { name: reaction, animated: false });
});
onClose(); // Close the modal
};
this isnt the complete code
i just added enough so that you get the jist
first of all, you spam a lot of request
this will end in at least a ratelimit and at worst account termination
please use code blocks
```optional code name here (eg js)
code here
```
yeah ive been getting the rate limits ive just decided i was gunna fix it later
oh yeah mb
im not sure about js behavior, but split("") may split it into separate codepoints thant don't create a valid character on its own
well so far from my testing characters that are represented by a special character in the list actually get through
the characters seem to get recorded as I have seen in the console
its just the reactions are weird
const channel = ChannelStore.getChannel(message.channel_id);
//...
... channel.id ...
do you search for channel via its id just to get its id?
I get it from this bit:
message: msg,
channel: ChannelStore.getChannel(msg.channel_id),
which happens inside the asnyc start function
inside definePLugin
you want ```diff
- string.split("")
- [...string]
i stole that bit from the husk plugin since i figured it would help
like this?:
const reactionList = [...regionalText];
first of all why are you appending it to a string in the first place, just use an array
second of all you can only react with the same emoji once
thirdly why do you specify it as codepoints
yeah i have another window ready for that error handling
there is unused function convertToRegionalIndicators and nondeclred function splitText
third of all this is sending requests in a loop
i took it from a aliuwu plugin i knew worked (i took the list)
it was declared I just didnt send it mb:
function splitText(inputText: string) {
// Convert input text to regional indicators
const regionalIndicatorsText = convertToRegionalIndicators(inputText);
logger.log('Regional indicators text:', regionalIndicatorsText);
return regionalIndicatorsText;
}
it really doesent do much
yeah tbh i dont really have an excuse for that other than the fact i aint comfortable with arrays
tbh ur code doesnt make a lot of sense
this entire immediate function isnt really needed
yeah most of this is remanants of some other old thing which i couldnt be bothered to delete
so half the functions arent named aptly
i... honestly dunno
it is useless
i just repourpoused it from some other rewrite of this
yeah i dont really have an excuse for that
you're banned from javascript /j
😭
well after some more error handling it will work or should i remake it into an arrary first...
Hi, I wanted to make a plugin that lets me quickly toggle the connections such as "display spotify as your status" with a simple button, but the problem is I don't know if there's an easy way to just switch it using built in vencord functions or if I have to use the discord api to change it
🙏 Thanks alot
very unsurprisingly it didn't work the first try, is there a faster way to test it without needing to rebuilt the entire vencord?
wait what it might've actually worked an i'm just stupid
you can just do watch instead of build
do on the console lol
ok i'm just stupid nvm
It's fully working, I just don't know what icon to use on the button
@royal nymph @royal nymph what would you use to represent logcat lines in go
bytes.NewBuffer has no size limit
like 10000 lines at most, configurable
oh
@royal nymph how can I make this include call signatures
export type ProxyInner<T = any> = {
[K in keyof T]: T[K];
} & {
[proxyInnerGet]?: () => T;
[proxyInnerValue]?: T | undefined;
};
I can't do T & {...}
because if it's any you lose ProxyInner
t & is what you want
try using unknown instead of any
actually nah that sucks lmao
i mean why would anyone care about those internal properties
unknown is horrible
it's not really for the internal properties
but for the person to know they are working with a proxy
yes but I want it to be ProxyInner<any>
with objects it works fine but it doesnt work with functions
there is probably a cursed way to make this work but 🤷
ig any technically extends anything lol
😔 true
ill see tomorrow :p
if you haven't figure dit out by then
imagine if chat gpt cooks
(it will not)
wait...
a fuck
please have what I want type-fest
I never doubted you
hmm wait.....
WAIT I COOKED I THINK
@royal nymph
LETS GOOOOOOOOO
xd
u got this
yeah cause it's not callable
why did chat get closed 😭
why was english chat closed 
yeah lmaooo
trolley
i wonder if i should just get the complete raw logcat then process on the pc rather than passing formatting arguments to logcat command
literally just for shits and giggles
like im not even joking
it has actually done more harm then good
true
what harm
closing general chat for a month is stupid
"Dear Vencord community members, we are happy to announce that if you dont grind this chat for days on end then f off you only have support and programming"
ong
vencord was a place for me and im pretty sure a lot of others to connect
now that is being taken away, and i no longer have access to talk to people who are like me
hot take
I can say something in offtopic and 90% chance most will agree with it
#🧊-off-topic-iceman-only memes not funny
true
#🌺-regulars is a circlejerk
we need to do a revolution
Fr
automod too strict
real
its like actually just segregation
feel the sunray please
its 4am
too lazy to go outside
comparing a discord server to segregation s genuinely insane
womp womp
i mean
with the way some regulars treat whitenames
however i have no friends in real life due to not having inperson school or anywhere to go, so to make up for it, discord is a place for me to make friends
can we just give regulars the ability to give people brainrot role instead of locking #🧊-off-topic-iceman-only 
vvotebrainrot
vendor is the ONLY place that has people who are like me
by the time may is over, most likely me and many others will have gotten over talking here and would be moved on
yop
yeah
this has never been so true, feels like same 15 people are always talking
and the actual stupid thing is that there still is chats
not even joking but mod abuse seems to be a part of the server identity
back in the cute person days I think it was worse (?)
but if you don’t speak another language or don’t have a special role then fuck even trying to talk in them
yes
i have those chats muted and hidden because i cant even use them
translators arent even allowed iirc
yea same
i may be just ‘a whitename’ but i actually had friends here
vee should just introduce "no real-name rule"
imo you aren't just a whitename
you should've been made regular a few weeks ago
agreed
now, because i am not among the few that have a special role, and because me and most of my friends do not speak any other languages, we’ve been separated
yeah but no one can force the mods to do that + when offtopic existed the higherups liked to laugh at me only having image perms and not regulars
agreed
we cant force them
(hopefully the leveling stuff vee's been talking about for long time comes soon)
(it won’t)
its ironic how the programming chsnnel has to be used for this
havent several regulars said smth about this or was it just you
programming = off-topic lol
atp yeah
vencord: turning every channel into #🧊-off-topic-iceman-only since the start of May, 2024
Fr
this is so deranged for the record
the only time we’ll get a truly non-offtopic server is if they remove every public chat except support
support will become off-topic
mf yall took away my friends im going to be angry about it
it kinda is sometimes
yeah it is
you have privilege
called not caring about #🧊-off-topic-iceman-only
they way you treat a discord server like a fucking country is insane
managing a 1 on 1 dm conversation is a lot harder then a group conversation in a server
dies in white name mr.#🌺-regulars
it’s not a country, yall are just actively being rude
it’s not my fault i miss the people i used to talk to???
i’m sure you do too, considering you used to talk there aswell
i said the lock is stupid but comparing this to segregation and "privilege" is really crazy
"whitenames" "regulars" "higher ups" what in the fuck
who's we?????? why are you lumping me with anything?????????
vns
incorrect
this is the best I could do to help
you are apart of the mod team / higher then regulars
???
is fawn not like vees girlfriend or something i swear theyre important or some shit
This is so random
fawn so privileged
I don't think they're any higher than average regular
special role but no donor aswell
feels like they are

but sometimes feels like OG members (usually from aliu) are "higher" than newer members
this puts you into quite a pickle!
i mean they act like they are atleast
yop
it's a discord server genuinely seek help
(doesn't get the point of this)
(at all)
yea i'm so privileged to understand this
yes
jesus christ
you love #🌺-regulars
fawn i do not think you understand what i mean by this whole conversation
priveleged for having a role i msde it in life
No access pepeSadJAM
I can get u in, it will cost u 10k VenCoin

when people with privilege literally do not get the point of the conversation because they aren't affected and have no empathy for those who are
you are insane
nuh uh
peak first world problems
what privilegde even?
I kinda didn't read before joining the convo, I thought this was about offtopic being shut for may
it is
i am not a person who has many friends and i do not have anywhere to go in real life. vencord’s discord server was a place for me to talk to people who were like me and who enjoyed my presence. now that has been taken away for a long time, and it’s reasonable why i am angry about it because it is literally the only fucking people i talk to being taken away
if you want to be mad at something, go be mad at the government
@alpine pecan how would you feel if you were banned from vencord chat
I DON'T GIVE A FUCK
has special role
the way you're reacting shows that you do indeed give a fuck
just saying 
why are yall hating on fawn
You can still talk here, I have no clue why offtopic is shutdown tbh but it's kinda stupid imo
???
also inb4 i get punished in some way
shouldn't happen

i mean im the entire reason this chat derailed so like
Why husk that
real
Bru
these gifs look insane
yeah i’ll probably atleast get a mute
u not on facebook
true
It's just a miss you gif :(
thats true
btw if you wanna talk to me in dms at any point you are more than welcome to @dim cave
!!
Based
do not dm me unless you want to learn OpenGL
Please DM me unsolicited OpenGL tutorials

I don't DM tutorials, I create them on the spot
I have GLBrainRot
also id like to mention this happened while i was already stressed with other shit so not only is it bad on surface level its worse when you take that into account
🤫🧏♂️ ** **
roblox character
I am the opposite of the MC modder who will say "OptiFine not supported"
mewing so bad
It's literally only one
Nop
yop
mewing ideology is so huskable
actually two
looks up catgirl on discord gif search and finds nothing
wtf even is mewing
lc.google mewing
pressing your tongue on roof of mouth
wtf does this even do
meant to make jawline more defined
make your jawline good
gen alpha stuff
tiktok beauty hack
side view of casual guy
remember when people used to make their lips really big
it looked painful
true
jeepers!
zoinks!
O
K
I like batman
me too
Who wants batman gifs
me
O
all i have is shiny ping
Real
:)
you can turn it off
HOW
on desktop at least
ignore the retroactively part it gives you a prompt to do it if you want
Use vendetta
i have that on
O
i am on ios and cannot jailbreak :(
truest shit ive ever heard
i want to swirch to sndrid.o
Ik this isn't the place but i couldn't find anything on google and firefox support,
maybe someone here knows?
in google and in other browsers when you have multiple tabs in a container you have an option to minify all tabs in the container.
is there a similar feature for firefox,
thank you!
https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/images/2024-05-10-23-50-30-ed642e.png
https://assets-prod.sumo.prod.webservices.mozgcp.net/media/uploads/images/2024-05-10-23-50-10-eff1b0.png
afaik no, you can use something like Simple Tab Groups if you just wanna hide it away
there maybe is some addon that would also allow you to minify it, but I doubt that, you can always search AMO if you wanna see
Vivaldi does have tab groups, but I think google chrome's tab groups are the best
I still don't have a browser I like
Google chrome is really nice and has useful features, but it lacks customizability
Vivaldi is still chromium lol
(uses a lot of resources)
yes, but that doesnt mean it's exactly the same as google chrome
yeah that's true
wtf was the italic font changed
probably yeah
idk they do look different, I got used to it after a bit of italics and bolds
opera gx has some customizability but lacks features and is kinda annoying and cringe and i should switch to vivaldi
vivaldi is very customizable, but a bit rough around the edges and lacks a few features
but has more useful features than opera gx
opera gx has a bunch of gimmicky features
is there something that fires when you change the config of a plugin without restartNeeded ;-;
ungoogled chromium
they have an onChange listener
not gonna use some fork
used it before, had issues
no issues with the og
use firefox stop supporting chromium based browsers 
just wanted to ask how bad of an idea it is to git pull and rebuild both Vencord and Vesktop every time I run vesktop
very bad
its not gonna kill you 
Epic 30 second startup every time but sure
why when there's already an updater
for vencord at least idk why you are building vesktop yourself
dev builds 🫠
nvm
didn't read 
(this message has been sponsored by Gentoo Linux)
becausen't
#!/bin/bash
cd /opt/Vencord
git pull
pnpm build --dev
cd /opt/Vesktop
git pull
pkill electron
pnpm start --dev & disown
that's fair
lmao
oh that's amazing thanks
nah shouldn't be
git pull should be nearly instant if your internet isn't bad and build takes less than a second

you can use sidebery on firefox, it moves tabs to the left on screen, tabs are grouped under the ones they have been opened from and you can make multiple tab panels
it is very customizable
And survives mine 2k+ tabs
there's also the tree style tab extension
i have both, tree style tab is similar but with much less functionality
yo is there a place where i can find a list of possible patches?
there is an effectively infinite amount of patches you can make
you just need to learn how to do make the patches
well i have the examples from the experiments plugin and others its just i have no idea where the things i want to patch are
finding where to patch is fun
basically you open the search panel
and type random related strings into it
what like the dev console thing?
yes
like this box
when you find a = n("number") you search that number to find where the webpack module is
do this to find things like related react components
in what tab is that?
Yes
Good luck
To make sure your regex match doesn't explode later you should use \i instead of hardcoding the random variable names
This button is also very helpful
Make sure to turn off when copying to make patches though
yeah im still tryna figure out how this works:
match: /(?<=>)(\i)\.hasFlag\((\i\.\i)\.STAFF\)(?=})/,
this is regex
learn regex
read a regex tutorial
note that the \i is nonstandard
if you want the same effect in a regex helper tool, use [A-Za-z_$][\\w$]*
also here is what that patch looks like (before and after)
@frosty obsidian
havent decided whether to format using adb logcat cli options
or to take the raw output and format in go
you can give https://github.com/Vendicated/Vencord/blob/main/CONTRIBUTING.md a read for help
oh thank you!
do that
so u can reformat old lines too

okay
im slighty confus on how to do this cause the raw complete output uses 2 lines and a newline between each entry
current code expects each entry as one line
do u use cli?
yop
werent u gonna use that library
it doesnt have logcat and the shell command methods dont work with interactive like logcat
so veepy
veepy
@deep mulch will you use julie app
@royal nymph how do I make fake windows that will display on top of the logcat
with bubbletea lib
yes
**vencordLoader.ts: **Lines 45-57
export async function downloadVencordFiles() {
const release = await githubGet("/repos/Vendicated/Vencord/releases/latest");
const { assets }: ReleaseData = await release.json();
await Promise.all(
assets
.filter(({ name }) => FILES_TO_DOWNLOAD.some(f => name.startsWith(f)))
.map(({ name, browser_download_url }) =>
downloadFile(browser_download_url, join(VENCORD_FILES_DIR, name), {}, { retryOnNetworkError: true })
)
);
}
oh wait so i just inject into vesktop then?
no, look at vesktop settings
guys im making a stardew valley mod 
minecraft sucks
the game was ruined for me after all this drama and tasteless updates
factorio also is a autism trap yes
I have like thousands of hours into it


modding community "ruined" mc for me lol
not really cause idc about their stupid drama but every time it comes up its like cmon
what's difference
who cares about drama h
I love the game idc abou the stupid drama those people can fight each other as much as they want
yeah I didn't care but they sometimes do have a point I agree with
and I get consumed in that
what point
why is Omit defined as
type Omit<T, K extends string | number | symbol> = { [P in Exclude<keyof T, K>]: T[P]; }
instead of
type Omit<T, K extends keyof T> = { [P in Exclude<keyof T, K>]: T[P]; }
This is going to be such a stupid error i know it,
im making a python script using pytube to downlaod yt vids from it's link, i have succeeded in doing so but it's quality is horendous. Any ideas how to force it to up it?
ive tried hard coding so that the script will downlaod the vid in it's max specs but that didn't work :(.
import os
from pytube import YouTube
def download_video(video_url):
try:
yt = YouTube(video_url)
print("Downloading:", yt.title)
stream = yt.streams.filter(progressive=True).order_by('resolution').desc().first()
output_path = ""
stream.download(output_path)
print("Download completed! Video saved in Videos folder.")
except Exception as e:
print("Error:", e)
if __name__ == "__main__":
video_url = input("Enter the YouTube video URL: ")
download_video(video_url)
(yes, that name reveal was on purpose lmfao)
+i also asked chatgpt for help after,
but he just yapping
Maybe yt hard limits it?
Bcs after all it is copyright lol
I can't get this fucking blury shit to disappear. Here is a side by side, the top is from yt and the bottom is what my script saved
Look at the persons head/hair
I even tried without hardcoding the "downlaod in max resolution that is found" line
from pytube import YouTube
def download_video(video_url):
try:
yt = YouTube(video_url)
print("Downloading:", yt.title)
stream = yt.streams.get_highest_resolution()
output_path = "/Users/attiaeran/Documents/Media/Videos"
stream.download(output_path)
print("Download completed! Video saved in Videos folder.")
except Exception as e:
print("Error:", e)
if __name__ == "__main__":
video_url = input("Enter the YouTube video URL: ")
download_video(video_url)
I give up, youtube prolly has a blocking mechanism
yt-dlp lol
It just needs brew install yt-dlp lol
yeah yt-dlp is the goat
its like curl for youtube
if u cant do it with yt-dlp it prolly isnt meant to be
xd
have you seriously never heard of youtube-dl / yt-dlp?

Never, i might actually be living under a rock, i already did some configs and
MY GOODNES YOU CAN CONFIGURE THE INTERNET SPEED WHILE IT'S DOWNLAODING
that in itself is epic
lol
Real

that's really surprising
youtube-dl is like the holy grail of video downloading
you can throw any site at it and it's likely to work
Dam
I should rlly get out the box i'm in currently
Any other very useful projects you know about?
gallery-dl
I’ve been thinking about making a web app to download youtube videos cause every other one ids stupid
the ytdlp in question
so yt-dlp with a frontend
xd
depending on the scope u will run into the same issue people got who tried to make a gui for ffmpeg lmao
or opeenssl
nice read
Yes
LOL
I would only include basic features just for downloading videos
I am 10000% sure there is billion both web and desktop frontends for ytdl
there is even some on mobile
yt-dlnis beloved
there are yeah
but if he wants to build it for funsies / to learn why not
first result
mmm thats just my opinion but if its some project that wont cause you to learn stuff its better to just use already existing ones
ytdlp frontend would be basically just a cli wrapper
yt-dlp is goat
yeah true
apperantly it isn't so i am removing the message
idek what cobalt.sh is lol
it's cobalt.tools, apologies for the confusion
it's video downloader with custmizable stuff, free, open source and no ad
clean UI too
yeah, good site
but it isn't ytdl so like
😭
but hey it support yt and other stuff
ffmpeg is also goat
yeah, you are right
ytdlp and ffmpeg is a powerful combo
no, never
i C C++ and i run away
why
whats wrong with it
it terrifies me
xd
how bad is it
A gui for ffmpeg does not really need to be that complicated. most users are not smart enough to use all the settings correctly. I would say hand break is a example but they override a lot of ffmpeg defaults for... some reason
the more horrible it is, the better it is dolfier
understanting smart code is always harder
first time I tried to use youtube dl it didnt work
couldnt parse description or something
never used again lmao
macos 9
y'all supposed to use yt-dlp
damn does that mean all my code is good
yes 😎
when r u upgrading to win 11
idk abt smart code lmao
Yep, it sends ALL voice state updates so I think I'll use it in tandem with VOICE_CHANNEL_SELECT to know when the user is in a vc to then process the events
Oh wow, Dolfies is in here
❤️
@pine coyote
Hello
Anyway
I found this, seems fun
https://github.com/deepfakes/faceswap?tab=readme-ov-file
But i would assume it is very recourse intensive to train
me when ytdlp says webm is available and then changes its mind
@willow widget
no
this person's username color is the EXACT SAME as the main color in my discord theme
LOL
yes
MFW using webm
either way youre using it wrong. webm is simply the extension yt-dlp says that stream is contained in. the "format" is the format code of that stream. you can list them all with just -F.
for example in this video if i wanted 1080 av1 (webm) with full quality opus (~128kb/s) id do -f 399+251
yeah i figured it out but i was confused cause it works if you type mp4
mp4 seems to just download the smallest mp4 compatible formats without any extra -f args..... i fucking hate the yt-dlp defaults. Even if you tell it to prefer something with -f args it will just... refuse?
there are so many options its insane
really the only working option i know of to download youtube videos
im so glad i got the video/audio codec and ffmpreg autism
macos user
M3 pro isn’t fully functioning on it yet
Also I like iMessage
unprecedented misconfiguration
???? xd
yeah, i know
Holy those are amazing specs my goodness
what is an actually good ffmpeg gui though
i just google the commands for the cli but half the time it does something slighly different than what i want
i found this but idk how good it is
If you’re willing to learn all the options this is a pretty good one. https://github.com/staxrip/staxrip
I prefer just using the CLI tho
What actually are you trying to do? I can give you a command myself
idk what u wanna do but maybe this https://handbrake.fr/
HandBrake is an open-source, GPL-licensed, multiplatform, multithreaded video transcoder.
usually re-encode shit to different format, sometimes do some compression
Hand break can do that but it has some weird defaults like automatically defaulting to VFR which breaks some players and can cause playback issues in general
No body likes VFR
i mean most of the time i can find the ffmpeg command on google but it's funny because sometiems the order of flags matters for whatever reason
SS is starting second, before the input seeks to the nearest keyframe while after decodes the video up till that point while being super slow. Before or after the input/output matters but other than that no
I like handbrakes cli
its so easy to use compared to scary ffmpeg cli
handbrake -i blabla.mp4 -b 9000 --start-at seconds:20 -o output.mp4 
wtf is -b
bitrate
Disgusting never fucking use that
????
All encoders have some sort of quality parameter. For the x26X series it’s crf and VPX/AOMAV1 it’s Q.
Bitrate target makes all encoders less efficient and is not content aware wasting more bitrate on slower flatter content while starving high motion complex content
2pass x264 bitrate is actually equivalent to crf mode but it’s the only exception
this guy encodes
it has quality parameter too
but I like to specify bitrate more
will i find u on HDB or PTP xd
I can actually control the filesize
Idk what either of thoes are
nvm then :3
I thought you meant HBD first not HDB and I was about to go on a 10 bit rant
xd no, hdb as in the private tracker site
@ivory heath meow

for 1pass right? edit: nvm i didn’t read lmao
What?
nvm^2, av1 has 2pass bitrate encoding is that okay too
Target bitrate is broken in SVT and target bitrate isn’t as effecient as Q mode in aomenc
bruh :( is rav1e any better
Rav1e is horribly slow for its efficiency
It’s only advantage is it has the best psycovisual tuning so it looks the most consistent in quality
How? It brute forces
bruh
Always use 2 pass with aomenc even with q mode tho
Googles developers are stupid lock some coding features behind it
Even tho good encoders like svt and x26X can do it with one pass
av1 immature codec moment
No, it’s literally just googles fault. I’m not joking.
The encoder that’s not made by them does not have the issue.
It blows my fucking mind how Google hasn’t made a good image/video codec nor a good encoder in a fucking decade with their billions in funding.
Their JPEG encoder is orders of magnitude slower than Mozjpeg while being less efficient (and you can recompress the output of their encoder with Mozjpeg losslessly for ~2% file savings because the dumbasses forgot to optimize residual coding.
Webp is just dogshit and the encoder they made for it uses cheap tricks like image sharpening to improve perceived quality without actually improving the encoder’s efficiency that also leads to massive generation loss.
Don’t even get me started on vp9 and their av1 encoder. Like x26X is laughably better when it comes to psycovisual optimizations. At one point x264 had a preset called touhou because they developers were just a handful of fucking weebs.
bruh lol
X264 TOUHOU LMAOOO
i used handbrake to burn subtitles
bc chromecast doesn't let u cast subtitles
and i have an old tv
@zinc stag how easy do you think making an oss version of esign would be
which esign
the on-app signing app
not too hard, it's probably already been done before
how does it work, enterprise cert?
yeah, called esign
but its chinese and have chinese telementry
Can use distribution or enterprise certificates, and also optionally can be like TS
is esign not open source
shouldn't be too hard, but where are you gonna get an enterprise cert
I don't exactly want stuff like that to be hidden from the public
all sorts of sites 🚎
though I would probably just test with a bought distribution certificate
are you human though
Yes css will definitely fix that
css can fix everything if you try hard enough
/hf
what does /hf mean please i was just lurking but now i need to know i looked everywhere (overexaggration i only looked at 4 google results im just lazy)
Real
oh thank you
Or do you mean the command
what
Chatgpt
```In programming, /hf typically appears in the context of compiler or command-line tool options and flags. Here are a few examples of how /hf might be used:
-
In C/C++ Compilation (Windows MSVC) Context:
- /HF Option: This specific flag does not exist in standard MSVC (Microsoft Visual C++) compiler options. However, compiler options often have similar patterns like
/MD(use DLL runtime),/EH(exception handling model), etc. The/hfmight be a typographical error or confusion with another flag. - If you encountered/hfin an actual context, it could be a custom flag defined in a particular build system or script.
- /HF Option: This specific flag does not exist in standard MSVC (Microsoft Visual C++) compiler options. However, compiler options often have similar patterns like
-
In Unix/Linux Command Line Tools:
- Unix and Linux tools often use flags like
-h,-f, etc., but the exact combination of/hfis less common due to the use of hyphens (-) instead of slashes (/) for flags. It could be a typo or a misinterpretation of the actual flags used.
- Unix and Linux tools often use flags like
-
In Documentation or Scripts:
- Sometimes,
/hfcould appear in specific documentation or scripts written for a particular tool or project, wherehfmight stand for something like "high frequency," "high fidelity," or another domain-specific abbreviation.
- Sometimes,
-
Custom or Domain-Specific Usage:
- If you're seeing
/hfin a custom tool, script, or specific environment, it would be best to refer to that particular tool's documentation or help command (toolname /helportoolname --help).
- If you're seeing
If you provide more context or the specific environment or tool where you encountered /hf, I can give a more precise explanation.```
extremely helpful /s
Idk why you didn't do it urself
just search “/hf tone indicator”
It’s probably “have fun” or somethin, tone indicators have become more complicated than trying to figure out what someone actually means 
lol
i think it means half fucking?
so basically same as /hj
Real
ohg
is the encoder you're talking about jpegli
i remember hearing smth about that a while ago but idk about any of this stuff
@shell crag google didnt make jpegli. jpegli was made by the jpegxl team as a super simple upgrade to jpeg adding modern features while staying fast and simple. I meant this https://github.com/google/guetzli
i see, thx
rate this code 🔥 (I made basic_webserver btw)
I use windows cos curve
Idk what that even is
if isinstance(result, Response):
return result
elif isinstance(result, str):
return Response(200, {'Content-Type': 'text/html'}, result.encode())
elif isinstance(result, tuple) and len(result) == 2:
status_code, body = result
return Response(status_code, {}, body.encode())
else:
return Response(500, {}, b"Internal Server Error")
lol
yes
why 500
Cause 500 is internal server error 🔥
what if I wanted to send a float and forgot to turn it into a string
then you're stupid
I'd get a 500 without any error on server-side
I'm 15 i know nothing about coding good apps 
also having a header like h: causes Error handling request: not enough values to unpack (expected 2, got 1)
having more than 1024 bytes in a request causes anything after to be ignored (for example with Error handling request: not enough values to unpack (expected 3, got 2))
and funnily enough when the server does error out it doesn't even send a 500, instead just
except Exception as e:
print(f"Error handling request: {e}")
finally:
client_socket.close()
sold
running this web server in production
Shush
(I literally just had this error)
I do this 💀
I also run a outdated version cos why not
Latest is 0.5 I use 0.3 🤑
yo prolly an insanely dumb question but how do i send a boolean property to another function? cuz with string we do
func(findOption(opts, "string", ""))
so how do i give a boolean and string to func here?
func(3.14, 42, "str", false, {}, [], true);
huh? no the properties im sending here are from the options selected in a command
so ive used opts and findOption
idk then ¯_(ツ)_/¯
o aight
Note: Guetzli uses a large amount of memory. You should provide 300MB of memory per 1MPix of the input image.
Note: Guetzli uses a significant amount of CPU time. You should count on using about 1 minute of CPU per 1 MPix of input image.
Note: Guetzli assumes that input is in sRGB profile with a gamma of 2.2. Guetzli will ignore any color-profile metadata in the image.
1 minute & 300 MB / 1 MP? wtf?
Guetzli does a heuristic “brute force” search of quantization tables and trellis opts using a pretty slow to compute but accurate image metric
Actually I forgor if it uses it for trellis or even has it
Discord stores the voice channel participant data somewhere surely right? I know it fires off the voice_state_updates event from every single discord but I can't seem to just get it from a channel/channelstore, I could capture all the voice state updates, but if the discord client does have that info somewhere, it would be better to not duplicate it using 2x the memory for the same thing, I just am not sure, none of the other events stick out to me
It's got to right?
Couldn't tell you where tho
Yeah, it is rough, if they are not in channel stores or not defined in them, the only other thing may be events, I might just need to listen on all voice related (or maybe not) events as if I can't get it through stores, there must be something I am missing on join of a vc with already existing members
Thank god for VCNarrator
const VoiceStateStore = findByPropsLazy("getVoiceStatesForChannel", "getCurrentClientVoiceChannelId");
And it works fine, I like this approach a lot better, I ask for it, then I recieve the info rather than trying to get the data from events (although maybe you aren't designed to use events in the way I was trying to use them
events are for getting data in real time
to get data right away you always use stores
Yeah, I was aware of the stores @webpack/common, this store wasn't in that so I thought I had to use events but vcNarrator found the store by findByPropsLazy not sure how that works but it does indeed work xD
Oh, I guess that is one of the strengths of JS looking at the comment for findByPropsLazy, but I guess most other languages do also have reflection
is there anything wrong with using discord.id + "." + crypto.randomBytes for a token xD
the issue with jwt is you can't invalidate it
i thought there should probably be a button to log out all sessions
security??
oh ig this is in browser
should be fine probably
but id put the user id at the end
otherwise it looks like your discord user token
i will make separator >.<
not really though
that uses base64
i guess anything is ok as long as it's not like that one security bot which used a private key which wasn't very private...
(iirc)
my code calls users/@me then revokes the token immediately 
i don't want to set up a job to refresh info



