#๐พ-core-development
1 messages ยท Page 63 of 1
Oh, but I can click on the icon you added, and it redirects me to the other mirror already, thankfully?
This one.
Wait, so that's mean if a pr is merge at codeburg , if will sync with GitHub as well?
sorry, what do you mean?
it's an image inside a markdown hyperlink
I should ask you this question. XD
What do you mean here?
blehhh fork https://cli.github.com/ and add gitea support ๐
the image is a badge powered by https://shields.io
We serve fast and scalable informational images as badges
for GitHub, Travis CI, Jenkins, WordPress and many more services. Use them to
track the state of your projects, or for promotional purposes.
"C O D E B U R G E R "
you can pass text, image etc via query parameter
true actually I was thinking abt making a pr checkout tool
And you want to use a custom image instead?
we already do
Then what is the problem? XD
but you have to &logo=data:image/png;base64,dijsdjshuifdqwi0fdwqokpfijoqwhuifwqehuioftgejiowrfjioqwjioftgwejiofjioqwfjioqwjiogewjiogjioqwfikopwaopikfgwjoikgjioaewrpgpuifweijofjiowejiotgfwqjiotgjiqwrjoiqwjirqwijorjioqwijorwqjiortwqeijo
Oh, you can use HTML in markdown.
what i meant by you can't just an icon url is that this doesn't work: &logo=https://codeberg.org/favicon.ico
Lemme test for msyelf.
Oh, you were referring to shields not Markdown, my bad.
I know the grammar to add custom logo is ?logo=data:image/png;base64,โฆ. but I don't know how to custom to my badge. for example, my repository is https://github.com/aQuaYi/SICP-in-Racket. Racke...
They explicity stated to use base64.
it do
@glossy relic hi
do you still have the changes made here? https://github.com/Vendicated/Vencord/pull/643
iirc you made a userscript image, do you still have that? I would like to use it
which is exactly what i did silly
- fixed, update, up
- linux, l
- mac, darwin, m
- missing features, screenshare, presence, keybinds, mf
- moreinfo, more info, mi
- reinstall, redownload
- windows, w, win
Show all members in Discord servers with over 1000 members since Discord only shows online members.
- fixed, update, up
- linux, l
- mac, darwin, m
- missing features, screenshare, presence, keybinds, mf
- moreinfo, more info, mi
- reinstall, redownload
- windows, w, win
Yeah I thought it was a Markdown problem, I am very sorry.
Anyway yeah learnt that base64 trick to make an SVG of my logo using a font file, thankfully.
What do such tools do?
Host github.com
User git
IdentityFile %USERPROFILE%/.ssh/github/id_rsa
Is this what you meant, Vendi?
why in the world is it inside a subfolder
In case I make any new ssh files for something else? I am sorry for being a noob.
what do u need from there
~/.ssh/github
Hmmmm, yeah could have just renamed the file.
just ls it cuz it apparently creates a folder there
mm
heads remotes stash tags
Host github.com
User git
IdentityFile ~/.ssh/github
do all of these show up in ur remotes
idk why you don't just use what i sent verbatim :P
Anyway, Vendi, do I specify the public key folder or the private key folder?
Does Windows recognize the ~ location? Lemme test.
remotes yes but i added these manually
Oh, it does. Wow.
from before gh pr checkout discovery
did you add ~/.ssh/github.pub to your github account
yeah I'm reading that
Yes, thankfully.
why do u have apple prompt on windows lol
can you send the contents of ~/.ssh/github.pub here
I dunno, the theme messed up the icon.
(it's the public key you can share it with anyone)
Honestly I have too many trust issues right now.
General gist of it:
ssh-rsa Some random text titan@Titan-PC
is it one of the ones listed here
Ok lemme check if it is there.
you can just send it here theyre public 
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDRzaC1nbR2xi+bR2ULZBwYqwPER5ZwSFLOXMAL5djcx4GKkg6CV070cLz3sG2BKR3ir0Q/b5RX2H3x8fhKrXzzfCfsAJNZGZxOx7arBACz2eLY3wm8m8gBH99OY73PkyIw64WR+lTy76DdSFZB6uTVNwCoDpw/LrOH1CH5qaT3w6b4pJcmWmcIdniWFV5cReRgiB4R0ESwR5/uM4T3DitgrDi6a9oFEnqjD355qaLi79PqdBm1qe+TUBXLogcNsEj6+7bbHSaJk5tOvWOHBZ7LWi3CkFu8QpLfXLYiyUYbXMvu2agWjR3crFPyZUnTQ1WtVMKmkIicGHsnuTiDSX8mQlIrUmXrNWhTBg7jtXcJf8hADmBH4ODrBpxblBjaFuTTAeFF1uIq3iEFRsVDI7ZFHtntBe1SYWbKAFhI1fNrU9T/hbasuipXPcfxCfEIUfaGVxkOZ+8VU5B8e6rCdyNBp40WlER7Z8g9M3CcN8aj3sC8jGrNHjvy9fnnAO+iTI8=
I think what happens is, when u checkout a PR from someone u added a remote manually before, it seems to use that
Copied from the link you sent, that is the one.
so it could be why there arent as many heads
just send ~/.ssh/github.pub
There is a minor difference.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDRzaC1nbR2xi+bR2ULZBwYqwPER5ZwSFLOXMAL5djcx4GKkg6CV070cLz3sG2BKR3ir0Q/b5RX2H3x8fhKrXzzfCfsAJNZGZxOx7arBACz2eLY3wm8m8gBH99OY73PkyIw64WR+lTy76DdSFZB6uTVNwCoDpw/LrOH1CH5qaT3w6b4pJcmWmcIdniWFV5cReRgiB4R0ESwR5/uM4T3DitgrDi6a9oFEnqjD355qaLi79PqdBm1qe+TUBXLogcNsEj6+7bbHSaJk5tOvWOHBZ7LWi3CkFu8QpLfXLYiyUYbXMvu2agWjR3crFPyZUnTQ1WtVMKmkIicGHsnuTiDSX8mQlIrUmXrNWhTBg7jtXcJf8hADmBH4ODrBpxblBjaFuTTAeFF1uIq3iEFRsVDI7ZFHtntBe1SYWbKAFhI1fNrU9T/hbasuipXPcfxCfEIUfaGVxkOZ+8VU5B8e6rCdyNBp40WlER7Z8g9M3CcN8aj3sC8jGrNHjvy9fnnAO+iTI8= titan@Titan-PC
It lists my user and PC's name.
Yup.
its a comment it doesnt rlly change anything
Ah.
why do it say titan@ instead of git@
ah I see the trick
you're especially looking for these
username<@&1018201358337327145>ostname
but it should be git@ right
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH7TluBf0EOjxlL/Hm5X5AzGhCFOTEU9OJg3sUnYUEas vendicated@riseup.net
this is my public key
no
that's just key name
it's irrelevant
i love how ed25519 is super compact single line
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH7TluBf0EOjxlL/Hm5X5AzGhCFOTEU9OJg3sUnYUEas vendicated@riseup.net
```then rsa is wall of text jumpscare ```
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDRzaC1nbR2xi+bR2ULZBwYqwPER5ZwSFLOXMAL5djcx4GKkg6CV070cLz3sG2BKR3ir0Q/b5RX2H3x8fhKrXzzfCfsAJNZGZxOx7arBACz2eLY3wm8m8gBH99OY73PkyIw64WR+lTy76DdSFZB6uTVNwCoDpw/LrOH1CH5qaT3w6b4pJcmWmcIdniWFV5cReRgiB4R0ESwR5/uM4T3DitgrDi6a9oFEnqjD355qaLi79PqdBm1qe+TUBXLogcNsEj6+7bbHSaJk5tOvWOHBZ7LWi3CkFu8QpLfXLYiyUYbXMvu2agWjR3crFPyZUnTQ1WtVMKmkIicGHsnuTiDSX8mQlIrUmXrNWhTBg7jtXcJf8hADmBH4ODrBpxblBjaFuTTAeFF1uIq3iEFRsVDI7ZFHtntBe1SYWbKAFhI1fNrU9T/hbasuipXPcfxCfEIUfaGVxkOZ+8VU5B8e6rCdyNBp40WlER7Z8g9M3CcN8aj3sC8jGrNHjvy9fnnAO+iTI8= titan@Titan-PC
It displayed errors, renaming it to id_rsa helped and showed me a different error.
Lemme send.
honestly the easiest solution would be to just delete the keys and create a new one
likely fixes it
Alright.
Yeah, in git bash or normal Windows terminal?
normal terminal
Should I specify a passphrase or does it not matter?
it's better for security
if you don't set a passphrase, anyone who gets access to your private key can authorise as you
Sooooo many debug1 messages again.
but it's less convenient
i personally don't use a passphrase
cause im lazy
but optimally you should
decapitated
I didn't change its default location.
where is it
anyways it basically just fetches the remote, and resets u to FETCH_HEAD
and thats why it doesnt actually pollute ur remotes
make

soon
u will make windows compatible 
~\.gitconfig
maybe I'll just typoscript its good enoug
what if rust
~/.ssh/.config
guhhh you'll make me take two years to do this
I havent used go yet
lol
debug1: trying private key: C:\\Users\\Titan/.ssh/github
no such identity: C:\\Users\\Titan/.ssh/github: no such file or directory
bleh
does that file even exist
do
swagger jumpscare
swagger
go is really easy to learn
but yeah just use what u want

rust 




Oh... @!%^.
isn't this mastodon stuff https://codeberg.org/api/swagger#/activitypub
we will use this on the vencord site https://codeberg.org/api/swagger#/miscellaneous/renderMarkdown
kinda real actually
does it work now
apparently though
the way github actually does it is specific to gh
every single pr has its own ref in the remote repo
but
I can just fetch the actual ref from gitea/forejo's api
lol
whar
curl -X 'GET' \
'https://codeberg.org/api/v1/repos/ven/cord/git/refs' \
-H 'accept: application/json'
run
you love 745 refs
wtf forgejo also does it
so easy
Yup, thankfully
Thanks for your help!
Had to remove the passphrase to let the updater work though.
oh yeah ofc
WAIT
DOES THIS WORK
IDK I'M TRYING RN
its recommended by codeburger
fetching crates.io index jumpscare
SEE YOU IN FIVE YEARS
I LOVE RUST
literally node_modules
but worse
cause node_modules doesn't take 20 minutes to compile
fix
oh it has silly name
virus
๐ฅ
oh no
lol why doesnt it show the actual progress
HELP
it does, just cut off
jeez that was really quick
its already done
hmm
it's not even anything special
150โฌ cpu
Caused by: The system cannot find the path specified
I'm not to sure with some parts of the app. There are mainly two major things I'd like to be reviewed:
- API endpoint injections: I think we need to do more valdiation on user input
on some of the commands. - Credentials: I'm not sure if storing the creadentials in the
DATA_DIRis a
good idea. I haven't found anything on the topic of wher...
virus
lol wtf
tea seems to be able to
oh its go
its in official arch repos ๐ฅ
lol it explodes in bash too
virus
Warning: problem while finding a SSH key: token does not have required scope: read:public_key
blehhhh
just say yes
it literally just makes one for u lol
the horror
Are you guys trying to make a tool to accept/reject/view PRs?
Checkout as in do what exactly?
git fetch git@codeberg.org:ven/cord.git refs/pulls/2 && git reset --hard FETCH_HEAD 
oh its refs/pull/2 i think
git fetch origin pull/2/head:epic-build-scripts
Correct?
git fetch git@codeberg.org:ven/cord.git pull/2/head
git reset --hard FETCH_HEAD
lmao
yeah thats basically what gh cli does
it does more stuff
it also checks out the branch
and if you git push it just works
without specific remote
**checkout.go: **Lines 221-228
if missingMergeConfigForBranch(opts.GitClient, localBranch) {
// .remote is needed for `git pull` to work
// .pushRemote is needed for `git push` to work, if user has set `remote.pushDefault`.
// see https://git-scm.com/docs/git-config#Documentation/git-config.txt-branchltnamegtremote
cmds = append(cmds, []string{"config", fmt.Sprintf("branch.%s.remote", localBranch), remote})
cmds = append(cmds, []string{"config", fmt.Sprintf("branch.%s.pushRemote", localBranch), remote})
cmds = append(cmds, []string{"config", fmt.Sprintf("branch.%s.merge", localBranch), mergeRef})
}
virus
nice
cmds = append(cmds
if pr.MaintainerCanModify && pr.HeadRepository != nil {
headRepo := ghrepo.NewWithHost(pr.HeadRepositoryOwner.Login, pr.HeadRepository.Name, repoHost)
remote = ghrepo.FormatRemoteURL(headRepo, protocol)
mergeRef = fmt.Sprintf("refs/heads/%s", pr.HeadRefName)
}
so need to somehow get the remote repo
Well, do you really care about Codeberg, or is it just a mirror for the main repo?
Oh well, I should show myself out anyway.
I am irrelevant to this convo.
Thanks again.
ye
[Ven C:\Users\Ven\Coding\Vencord ๎ฅ main]$ tea pr checkout 2
Fetching PR 2 (head ssh://git@codeberg.org/rini/rinicord:epic-build-scripts) from remote 'pulls/rini'
Error: object not found
nvm I'm blind
might be gitea vs forgejo differences
lol does gitea not have searchg
will u start working on it? @olive aurora
cause i wanna help too

or maybe we just force berg dev to add pr checkout
what langg
probably rust unless u force me to learn go
rust horror
why not just use ts

we will use the node 20 binary maker feature /s
i feel like anyone who will use will definitely have node installed
so lets just node and put it on npm
what do u think
are there even any good libraries for making clis
yeah
a lot
but like
do we even need it
if we just have pr checkout and notjhing else
yeah maybe not if its just that
Last week, I wrote an article about building a Node.js CLI using yargs. I introduced it saying we use cli tools everyday to simplify common tasks in our jobs. Iโฆ
nvm that post sucks
i think this is most popular
100m weekly downloads
Rust is love
I can make it for u if you don't feel like learning rust.
Zig is also love, but zig is still on alpha
(they have done rust)
should i set up repo ๐ฅ @olive aurora
or will u
if u figure out a name first
fire
good?
yeah that actually works lmao
first step is to read channel names
crying
I HATE NAME PARKING
cobu 
available
It would be nice to have small notifications for the "1 of 1 accounts connected" notification.
The images show a comparison of what it looks like for FairEmail and Conversations (both "normal" and "expanded" views)
One option might be to have it say something like "2 XMPP accounts" by default, then have the extra text below appear when not all...
not dead
i will stalk this guy and find out his email and FORCE HIM to give me codeburger
and this is the stalker
invite
soon
how
make codeburger logo
oh i found
added
so are we doing node?
https://www.npmjs.com/package/cobu VIRUS PACKAGE
code burger is what now
have you seen this wombat
inb4 node doesnt let u publish codeburger because its too similar to another package name
we typoscript
I doubt that
npm passes malware (unintentionally) all the time I don't think they care about package name similarity
they do
they do
I got that error before
@austere talon u love that theres no confirmation on my side to join ur org
you can just add whoever
so fatt
whar
u will tsx
also still thinking abt this lmao I actually wanna try
insan
why would running directly be different cuz #!/usr/bin/env node is literally node <path to script>
also banner: { js: "" } smh
are you making codeburger cli
process.env.npm_package_version NOT WORKING @olive aurora
only works if u run via npm
const bail = (message: string) => {
console.error(message);
process.exit(1);
}
const command = (spec: Record<string, (args: string[]) => void>) =>
([cmd, ...args]: string[]) =>
spec[cmd](args) ?? bail(`Unknown command ${cmd}`);
const cli = command({
pr: command({
checkout: (args) => { /* */ },
}),
// etc
});
cli(process.argv.slice(2))
ditch commander NOW
NUH UH
commander so good
not really but
it is convenient cause it generates everything for us
bloatttt
yse
or pnpm
if its not working on pnpm something's wrong
soon
butit wouldnt use pnpm once installed
it runs via wrapper script
hop on define: { COBU_VERSION: process.env.npm_package_version }
**constants.ts: **Lines 4-5
export const VERSION: string =
process.env.npm_package_version || JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf-8")).version;
this works but we can change it
i made it use commander for now, tbh 30kb is fineee
and it's really convenient cause
pretty good
implementing this from scratch would take a bit
use a define it makes more sense to include it on the build output rather than it trying to figure out itself

true true
I'll fix that soon
horror
i'd seriously just use commander lmao
bleh 30kb is nothing
i will do silly define tho
colors soon too

no sorry it seemed to get rid of it sorry
almost done
probably

i pushed
giamnt penis
epicest
we will probably need something slightly better
aka capture stdout and stderr and stuff

oh wait that uses cli too
not bindings
mmmm
yop
like eslint and comamnds and stfuffs
or-later or nah
or-later
doneee
merge conflict jumpscare
OH NO
oh yeah cause i edited package dot jason a lot
meow
okay i go now u go nuts
WAIT
oh btw we should #๐งฉ-plugin-development
yea
im stupid
**vcNarrator.tsx: **Line 74
.replaceAll("{{USER}}", clean(user) || user ? "Someone" : "")
clean(user) || user ? "Someone" : ""
this means
(clean(user) || user) ? "Someone" : ""

when i mean ```js
clean(user) || (user ? "Someone" : "")
makes sense to me tbh
That is such a mood. I spent so much time configuring omp one day cuz I had a final project due the next day
Oops
That's on me
Well is it? Interesting that it accepts capital S but but capital F
OMP?
oh-my-posh
Oh, sorry for not realizing that.
And you didn't need it for the project, right? XD
oh yeah definitively not
all g
it's funny cuz im pretty sure after all that procrastinating i ended up removing it all anyway
Oooooooooouch, relatable anyway.
It is kinda like impulse purchases.
it is
so true
and now i don't have any deadlines for the summer (until job starts) so im just vibing and have not been motivated to finish installing arch
all my motivation comes from deadlines
Arch?
archlinux
I know, I meant in, uh, surprise or something.
I kinda have PTSD due to it.
Not medical PTSD, mind you.
Lemme go get my tale, I wrote it down.
mine is pretty short- i tried to go off script from the installer on the wiki
don't go off script
Well, it takes a day or two to get it fully running and install the daily necessities.
for me the worst part was me trying to get BTRFS
Lemme first apologize to V for misusing this channel before I send my tale.
with manjaro the calmari installer just handled all of it
Why do I hate Linux now, specifically Arch?
Well, backstory is that I had Ubuntu but it got messed up once or twice so instead of reinstalling I installed Arch Linux which is more customizable and I read that it is a challenge/advanced level stuff, so I wanted to try it out.
Well, Arch is not bad, and is a rolling release OS which means it doesn't need any distro update like Ubuntu (20.04 -> 22.04 and the like).
For Arch, there are two ways to install packages, the official package manager way, (pacman), and from AUR packages which are community maintained repos, and you will probably have to build FROM SOURCE.
Imaginge trying to install ros-noetic-desktop-full and building it. Btw that downloads ~400 MB, so if the source code is 400 MB in size, how long do you think the building will take? Also I had to update the system/packages as well, so I had some AUR package being updated at the same time since yesterday evening, but that one took up a staggering 7-8 GB of storage which made me run out of space and both installations/build processes failed. So I have to re-start the build from where it stopped, but the package being built might need a rebuild, and some of the packages were HUGE.
Why do I hate Linux now, specifically Arch? THE SEQUEL:
Now after building, I needed some more packages for a robotics lab. After installing some of them, it turns out there are TWO packages not available in the AUR repo (community repo). Of all the tens of packages, those specific two had to be missing.
What did I do? I installed apt, downloaded the .deb packages, and force installed them ignoring dependencies. Imagine having apt on a non Ubuntu Linux distro. My system is simply a frankenstein monster.
BRO
ven ๐ข
^
But I want you to read the tale too, V, and either tell me I am using Arch very wrongly or whatever. XD
i installed apt

I knew that would trigger you. XD
either use tar.gz which almost everyone provides or use https://github.com/helixarch/debtap
Uh, either I tried something like that and failed, or something.
your entire criticism seems based on the result of doing incredibly hacky stuff you're not supposed to 
Look, I NEEDED ros packages for a uni project.
It was a must.
what's a ros
ChatGPT's answer:
ROS (Robot Operating System) is an open-source framework for building robotic systems. It provides a collection of software libraries and tools that help developers create and manage robot applications. ROS is not an actual operating system in the traditional sense, but rather a middleware that runs on top of a conventional operating system (such as Linux) and provides a set of functionalities specifically designed for robotics.
^ This is just the first few lines of its answer.
It mainly handles sending messages between modules and stuff, all for robotics projects.
Full answer:
Now can you blame me for installing apt?
That one package was actually needed for the project, it wasn't just some unused package.
Just my luck that it was one of the only 2 not available in the AUR repositories iirc.
Look at apx, it is a package manager, but basically it uses distrobox under the hood.
Very useful if you want to install a package from another distro, w/o polluting ur current distro.
Although, I'd suggest having smth like debian as ur base distro.
And use arch within distrobox
That way you get the stability of debian, with the packages of arch
#๐ง-off-topic-iceman-only anyway
I'm not a fan of debian, but you look like one
insanity
Never
I am not really a fan of any linux distory, but so far Arch isn't that bad, thankfully. Just having to build from source is annoying, that and the space issues.
What is that channel's goal? So that I may use it properly.
Building from source is why I love the AUR, but when it is a pain (who even builds chromium from source?) there are usually bin versions as well
Instead of chromium, you install chromium-bin
Etc
Anything related to programming a plugin or the vencord mod itself
Yeah, learnt that a bit late, but there wasn't any prepuilt for ROS, sadly.
what?
#๐ง-off-topic-iceman-only is for anything
Welp, as ven said, you could unzip the tar.gz from other distros
that channel is general, aka any topic. this channel is vencord dev aka anything directly related to vencord development
now shush
Honestly neither the name nor the description resemble anything like that.
By this I thought #๐พ-core-development was the context
Since we are on this channel
And titan asked whats the purpose of the channel
noone ever knows what the context of this is
JS moment
does the devcompanion not work on vencord desktop? im using pnpm watch to build vencord and pnpm start:watch to run desktop, and its loading my .dev.tsx userplugins just fine
hello, if I'd like to contribute a plugin can I just pr it? or should I ask someone first?
what does the plugin do uwu
it hides the ping indicator for incoming friend requests, message requests, and nitro offers
also question, the patcher's find is per webpack module, not per js file, right? so I can't nest multiple replacements under a single find if they're in different 4123: (e,t,n)=>{ thigies
why would you want to do that?
do you want to patch all modules that match a specific find?
nah i was patching 2 things in 1 js file and it turned out they're in 2 different webpack modules
which made it a lil harder cuz one of them was small without many unique things
but i got it 
yeah the smooool modules are always a bit tricky to find
but i have yet to encounter a case where it wasn't possible to unique find a module
actually that's wrong, i have, one single time! But that was because deranged Discord somehow had two modules that were 99% identical with a super small difference
well, may i present to you:

dw i patched a different one instead
ik, i needed to override that function call in 1 specific place
(to make the Message Requests tab not auto hide when i spoof count to 0)
i got it all to work tho so it's all good 
was a fun challenge for my first plugin ever

could u explain a bit more?
hides from where?
these places
and the taskbar icon (i.e. friend requests don't contribute to the count it displays)
i sometimes want to keep friend requests/message requests lingering there but at the same time ping indicators annoy me
and a few of my friends would like it too
mobile app does it in a nice way - hidden under notifs tab without eternal ping circle
but u still want to show pings for regular messages, right?
ye
i see
so you always want to hide it on
- message requests
- friends
- pending
and reduce it by those values on the home button
wellll i guess
but i'd probably have to patch the same things for the taskbar/home reduce anyways
(and i don't really do css xd backend gang)
it's not really complicated imo
css is really simple honestly
[class|=tabBar] [aria-label="Pending"] [class|=badge] {
display: none;
}
Here's an example for hiding the pending badge
but it only works on english lol
so ig a patch is still good here

ye
small nitpick but use definePluginSettings, options is deprecated
o okay
it's essentially the same thing just strongly typed and without the Settings.plugins.YourPluginName boilerplate
:3

This plugin removes the ping count of incoming friend requests, message requests, and nitro offers.
Ping indicators are removed in the following places:
- Home button (count reduced)
- Friends tab button
- Pending tab button
- Message Requests button
- Taskbar icon (count reduced)
The visibility logic of the Message Requests tab button is preserved (i.e. still appears when there are message requests, and disappears otherwise).
Would it be possible to add the possibility to see if a user is currently in a voice channel also in the profile tab that is shown on the right side in the DM?
Just like this: (the section circled in red has been added by me using Photoshop)
It currently looks like this:
I...
None
None
font-weight: bold;
color: purple;
[kb store] KeybindStore: Looking for callback action SOUNDBOARD_HOLD but it doesn't exist in this version. Skipping ```
None
None
font-weight: bold;
color: purple;
[kb store] KeybindStore: Looking for callback action SOUNDBOARD_HOLD but it doesn't exist in this version. Skipping ```
%c[KeybindsStore]
font-weight: bold;
color: purple;
[kb store] KeybindStore: Looking for callback action SOUNDBOARD_HOLD but it doesn't exist in this version. Skipping
match: /\.getPendingCount=function\(\)\{/,
you can make this patch simpler by not unnecessarily matching \i and the function body and also using a lookbehind. Now your replacement only has to be .getPendingCount=function(){return 0;
You could make it even simpler by using a lookbehind:
match: /(?<=\.getPendingCount=function\(\)\{)/,
Now your replacement becomes return 0;
match: /(?<=getSpamChannelsCount\(\),\i=)\i\.getMessageRequestsCount\(\)/,
Now your replacement is just $self.getRealMessageRequestCount()
ah okay, for some reason I thought that causing the function to have double return would be bad
no it's completely fine, we do it a lot as it makes many things a lot simpler
when making branches we intend to pr on should we go off dev or main
main
they're usually the same thing anyway
i just use dev to cummulate a few updates before pushing to main
so updates are batched instead of multiple
Is it possible to have nicknames instead of user account names as a TTS option? VoiceEvents from BD had this option. Thanks!
https://betterdiscord.app/plugin/VoiceEvents
re
jumpscare
we tried
but it was broken for ven
now we're working on one lmao https://codeberg.org/cobu/codeburger
do we still have to pr to github?
Cool!
oh, ok i need to read
how does it work if you open a pr on codeberg though?
surely you can't mirror both ways?
you can
oh that's cool
this is needed on github side https://codeberg.org/Ven/cord/src/branch/main/.github/workflows/codeberg-mirror.yml
The cutest Discord client mod. Mirror of https://github.com/Vendicated/Vencord, but feel free to open pull requests and issues here as well!
**codeberg-mirror.yml: **
name: Sync to Codeberg
on:
push:
workflow_dispatch:
schedule:
- cron: "0 */6 * * *"
jobs:
codeberg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@674e65a7d483ca28dafaacba0d07351bdcc8bd75 # v1.1.1
with:
target_repo_url: "git@codeberg.org:Ven/cord.git"
ssh_private_key: ${{ secrets.CODEBERG_SSH_PRIVATE_KEY }}
mirroring back from github to codeberg is really simple tho i just had to add it in settings
[Ven C:\Users\Ven\Coding\Vencord ๎ฅ main]$ tea pr checkout 2
Fetching PR 2 (head ssh://git@codeberg.org/rini/rinicord:epic-build-scripts) from remote 'pulls/rini'
Error: object not found
fix @vestal grove
wow forking is soo fast
github so so bloated
"somehow" 
yes somehow
sure, I will look into it later today, I am currently at work
small indie non profit has considerably faster infrastructure than one of the richest companies in the world
that is indeed surprising 
it really is not
obviously it's cause shithub soooo bloat
but still
isn't github in ruby or smth
that's probably also part of the problem
vs go forgejo
meow
virus
tbh github source code is pointless cause we have github at home https://codeberg.org/forgejo/forgejo
Beyond coding. We forge.
(Code of Conduct: https://codeberg.org/forgejo/code-of-conduct)
dissoc github-source-code-master % wc -c seed.sql
683853 seed.sql
tiniest github sql query
Yeah would be a really cool plugin
Also interested in this
Tried making custom recipe (https://github.com/ferdium/ferdium-recipes/blob/main/docs/integration.md), by modifying discord one and adding Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'Vencord.user.js')); (with Vencord.user.js being in the recipe folder) but that didn't work.
I assume the userscript depends on GM APIs, does ferdi provide those APIs?
try using browser.js from releases. The .user.js is a userscript which is nothing like what ferdium seems to provide. Though you will also have to inject the browser.css css file somehow, that's up to you
thats included in browser.js
the only extra js the extension has is content.js iirc which just adds the script and css to the page
But how does it deal with CSP?
it has a declarative_net_request thing
Inline scripts can do that?
No GM APIs, no browser APIs, how tf does it do it then?
whar
We are talking about js executed on a domain w/o being a userscript/extension
shrimply dont care abt csp or fix csp like vencord does in the desktop app since ferdium recipes have access to electron apis
Yes, but does browser.js already support ferdium?
...no?
Then how would it work?
insanity
yop
it is fully self contained and only depends on basic browser apis
you can load it anywhere and it'll work
And what are the trade-offs?
that's the tradeoff
Discord Account
M3T_R3MIX#4529
What happens when the bug or crash occurs?
When a user join, leave or move in another channel the announcer says only "someone" joined/left and not the channel or the the users name as it used to do
What is the expected behaviour?
as mentioned above it used to say the users name and the channel
How do you recreate this bug or crash?
join the call by yourself and drag your nick to another channel or try with a friend
Errors
_No resp...
this seems to be copy paste of a lot of code. Why not instead refactor the component to be more generic and used by both?
90% of the code is duplicated for each setting. Why not make it a function that takes parameters for the settings name and description?
camelCase is preferred
pluginSettings: {
you reuse Object.values(plugins) multiple times. Do it at the top and store the result in a variable for better performance
sorry why was my post instant removed?
No tradeoff was listed
the tradeoff is that it's fully self contained
missing desktop specific features, accessing settings via file isn't possible, etc
d8ce4ce feat(MessageClickAction): delete message logger... - fawni
oh my bad i saw the tag now
it doesn't actually seem to be a duplicate even though i could have sworn it was, sorry!
In any case, it has already been fixed yesterday via https://github.com/Vendicated/Vencord/commit/ad3abd9f688a1fcd1e02474fc9a9e00d0655893e but hasn't made its way into stable just yet
np and thanks for the replay
Does it support CSP?
this code is kinda messy, you could just do this instead
const { enabled, userList, shouldPingListed } = Settings.plugins.NoReplyMention;
const shouldPing = !enabled || pingListed === userList.includes(message.author.id);
you actually mean "does it remove/unstricten csp?" to which the answer is no, the platform it runs on has to provide that for full functionality
very similar to the userscript
or better yet
const shouldPing = !Settings.plugins.NoReplyMention.enabled || (Vencord.Plugins.plugins.NoReplyMention as typeof import("./noReplyMention").default).shouldMention(message, false);
This mf gasslighted me
Me: browser.js can't modify CSP
rini: yes it can
It needed to be added inorder for gitlens to recognise the remote as a gitea instance
without, it wouldnt be able to open branches/specific commits correctly
and build tasks are just for ease of development
(teeny weeny pr bc im not gonna do anything else with this branch)
(baby pr)
Already tried that when the plugin came out, 1000 turned out to be too small and just got me a kinda small/medium magnifier circle.
I'm confused. All this PR does is hardcode the setting to 1000, so why can't you just do that via settings?
without:
with: (repo opens correctly)
without:
with:
(repo opens correctly)
Noob question: if I want to make my own plugin, where should I read/search Discord's code to find stuff to replace?
that's no better, rini assumed I was talking about the extension
first of all, do you know how to code? and do you know js/ts?
actually, dumb question
ur question indicates that you know at least some stuff
Uh, I think you can look at my GitHub profile and judge for yourself.
nah I won't judge ya
I am a beginner in JS and don't know TS, but I won't ask for extensive help, hopefully.
I will just try or give up.
Please feel free to.
if you know js, then you can use ts
albeit w/o types ig
although ts is really easy to learn (not advanced ts, but casual ts)
anyways, we just open the dev tools
and go to the sources tab
Guess I gotta find a way to waddle through that then, I was hoping it was easier than that.
press Ctrl + Shift + F and search for keywords that might have what you want
if what you want to patch is about discord's UI, you can use the react dev tools to find the component and jump to it's code
since you want to patch stuff, you should also be comfortable with regex
Just finished a compilers course which made regex actually seem easy compared to its other stuff, thankfully. XD
yeah regex is super easy, most people are just too scared to learn it (or they lack pattern recognition skills)
It's easy to write but it gets hard to read fast
Depending on how complex you make it
well, with syntax highligthing it gets easier to read
same with any piece of code
yeah
just simply .* everything you dont want to put in the effort to match
true
but i do understand it gets pretty hard to read
like
(?<=(\w{1,2})=window\.DiscordNative;)if\(null!=\1\){.*}(\w{1,2})={os[\s\S]*browser_user_agent=(\w{1,2})\(\)[\s\S]*\w{1,2}\.distro}}
if your regex gets super long, then you are doing smth wrong
I can understand that if I spend the time to
But yeah it's easy when you write it but takes effort to read again later
why remove the codeblock?
using embedType gives me a 500 Internal Server error lol
cause the detected lang was ReasonML or whatever that is
oh lmao
jetbrains IDE have nice regex syntax highlighting
what's the point of sortOrder and sortBy? Just use these
you can use breakpoints to figure out how stuff happens
ex. for your afk thingy you can find the part that displays the popup, breakpoint it, then see where it's called from
ooh
how will prs on codeberg work
Will ven just grab the patch and apply it to github or smth
two way syncing?
wha
yep
how
codeberg syncs on push and every 8h
and theres a github action that syncs to codeberg on push
oh
The cutest Discord client mod. Mirror of https://github.com/Vendicated/Vencord, but feel free to open pull requests and issues here as well!
**codeberg-mirror.yml: **
name: Sync to Codeberg
on:
push:
workflow_dispatch:
schedule:
- cron: "0 */6 * * *"
jobs:
codeberg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@674e65a7d483ca28dafaacba0d07351bdcc8bd75 # v1.1.1
with:
target_repo_url: "git@codeberg.org:Ven/cord.git"
ssh_private_key: ${{ secrets.CODEBERG_SSH_PRIVATE_KEY }}
What about conflicts
Huh
its always the same as the other
Interesting
is it dirty to patch in an extra class to an element, then add a class to body so you can style it?
body.vc-hide-servers .vc-servers {
display: none;
}
Why though
Just style from js if that's what you want
for something like collapsible ui
otherwise i need to obtain the dom element somehow
wait, not necessarily true
whatre you trying to get
react element would work too :p
if I understood correctly
okay, i guess i could grab that with a patch
what happened with pronoun a/b testing btw
yep
like betterdiscord's collapsibleui plugin
wait wha
I meant the normal AFK which sets you to idle when you are online, but honestly this might be a bit too much to attempt for me. XD
Discord was a/b testing pronouns fields in profiles
but i don't think i wanna make buttons to hide everything as some things are so smol
oooo
@lime stone I suggest adding/removing classes to the body, so you only have to toggle a class on the body for a panel to collapse/uncollapse
22-01
i was asking whether it's dirty
prob forgotten about
and so i didn't have to use a changing class name i added my own to the server sidebar
i toggled a class on the body though
they did forget about it (I even hijacked the element that was sitting hidden in discord's code for pronoundb) but then they re-enabled the experiment for a bunch of people I think
idk discord is weird
well, its not what you said, and not smth I could infer from your question about it being dirty
they use wayyyyy too much a/b testing
i did say that
i enabled it and it shows in profile editor right but i cant find it normally
oh wait pronoundb uses the element whorps
@lime stone you talked about patching an element to add a class to it
yeah it force-shows the experiment element and modifies the text
is the [They/Them] part of your about me or the experiment
also lets go to #๐ง-off-topic-iceman-only






