#๐Ÿ‘พ-core-development

1 messages ยท Page 43 of 1

fleet depot
#

weirdly on vencord desktop i can't get the title bar to go away

#

even after

#

and fully restarting

charred monolithBOT
quick ibex
#

And vencord doesn't know it's in a browser

fleet depot
#

i wasn't sure if that toggle was meant to remove the bar?

quick ibex
#

So it runs the wrong code

quick ibex
#

But vencord desktop doesn't have that code

fleet depot
#

oh but not fully implemented :/

#

i see i see

#

trying some stuff w authotkey rn cuz i have it anyway

fleet depot
#

Kinda wacky but worksish if you do winset style

lime stone
#

:O

#

i did realise though, why would you have the tray visible if it disappears when vencord closes?

austere talon
#

I didn't make a release yet tho

charred monolithBOT
lime stone
#

๐Ÿ‘‹ is the wave back?

#

the wave is back!

#

or maybe it didn't work in threads

somber ginkgo
#

god what id do for a permission viewer rn

#

@limber skiff is perm viewer done PauseChamp

limber skiff
#

It's been for like more than a month

somber ginkgo
#

self-merge trolleyzoom

limber skiff
somber ginkgo
hollow musk
#

is that musicolet?

brazen phoenix
#

@cunning canyon expect a PR to a PR trolley

cunning canyon
#

i dont get it

austere talon
#

I would just not store the request result at all

#

assuming u fetch from github raw it will already cache for 5 minutes

cunning canyon
#

hmm so let the fetch run everytime open non-nitrobanner profile?

austere talon
#

yeah

#

if u look at requests tab it should cache already

cunning canyon
#

help im explod
now how to i return the text and update

bannerHook(banner: string, userId: string) {
        const update = useForceUpdater();

        if (banner/* || userBg[userId] === null*/) return banner;
        // if (userBg[userId]) return userBg[userId];

        fetch(URL + userId + ".txt").then(res => {
            if (res.status === 200) {
                res.text().then(text => {
                    // userBg[userId] = text;
                    update();
                });
            }/* else {
                userBg[userId] = null;
            }*/
        });
    },
nocturne haven
#

I guess you don't handle async properly?

cunning canyon
#

@brazen phoenix ๐Ÿ˜ญ

brazen phoenix
charred monolithBOT
nocturne haven
#
function usePromise(promise, fallback) {
      const [state, setState] = React.useState(fallback ?? null);
      
      React.useEffect(() => {
            promise.then(value => {
                  setState(value);
            });
      }, [promise]);

      return state;
}
brazen phoenix
#

useAwaiter already does something like that if i understand correctly

#

it's under "@utils/misc"

nocturne haven
#

No clue what that is, I guess a custom hook vencord has?

brazen phoenix
#

yup

woeful sable
#

Hey thats me !!

austere talon
grave mangoBOT
# austere talon https://github.com/Vendicated/Vencord/blob/main/src/utils/misc.tsx#L37-L45

**misc.tsx: **Lines 37-45

/**
 * Await a promise
 * @param factory Factory
 * @param fallbackValue The fallback value that will be used until the promise resolved
 * @returns [value, error, isPending]
 */
export function useAwaiter<T>(factory: () => Promise<T>): AwaiterRes<T | null>;
export function useAwaiter<T>(factory: () => Promise<T>, providedOpts: AwaiterOpts<T>): AwaiterRes<T>;
export function useAwaiter<T>(factory: () => Promise<T>, providedOpts?: AwaiterOpts<T | null>): AwaiterRes<T | null> {
austere talon
#

lol the jsdoc is outdated

#

amazing

nocturne haven
#

But yeah I'm aware of the zombie promises

austere talon
charred monolithBOT
cunning canyon
#

after trying for half an hour, i think i cant do it lookWhatTheyTookFromUs

brazen phoenix
#

i still have vscode open

cunning canyon
woeful sable
nocturne haven
#

people try to be formly on github: challange (impossible)

woeful sable
#

hush strenchie

charred monolithBOT
lime stone
#

@umbral hedge hello h (good nickname)! what did you find confusing about my suggestion? you can downvote it if you don't like it but i thought it was clear. sorry for ping :p

brazen phoenix
lime stone
#

you are opening a pull request on a pull request at this point! xD

umbral hedge
lime stone
#

i didn't know they didn't have a proper downvote action though

#

never had to do it :)

umbral hedge
#

thumbs down to me is like "this is dogshit delete it" whereas :/ is more like "it's okay but I don't see the use"

lime stone
#

ah i see

#

i think i'd find it useful if i forget about my special role

umbral hedge
#

hm?

#

personally I don't see the use when this exists

upbeat elk
#

I just do this, but you can still navigate to it with kb

#guild-context-leave-guild {pointer-events: none;}
lime stone
#

examples of things that you could probably forget about

#

:D

lime stone
#

either you forget or you're leaving a lot of servers at once

#

mistakes do happen!

#

idk, maybe it's not that useful - just trying to explain why i personally thought it may be nice

woeful sable
# charred monolith

^ I quite like this idea actually. I find that the more places I can prevent myself messing up, the better.

lime stone
#

yes, that was my logic :>

#

:3

upbeat elk
#

you can try my css, it just disables the mouse over it

lime stone
#

need to find a way to trick discord into thinking a message's type is 19

#

:P

woeful sable
#

what for

lime stone
#

making it look like a reply :) i think i said a while ago :P

woeful sable
#

ah

lime stone
#

i tried modifying new messages, but i wonder if there's a way to do it just in the ui

jagged cloak
#

ye

#

just cause there's a generic confirmation doesn't make it "useless" tbf

verbal pumice
#

MessageStore.getMessage("123").type = 19 shiddohwell
(kind of hope this doesnt work)

jagged cloak
#

probably dispatch fuckery as usual

nocturne haven
#

could be a simple string-patch on the message store

#

or nvm the websocket is the direct source, so you'd patch that

lime stone
austere talon
#

so a plugin to swap the buttons then

woeful sable
#

genius

lime stone
#

lol please not

#

that would be very confusing

#

xD

#

[clipboard message i don't type this fast] i think being able to lock things is quite common, first example i can think of is save states on the snes classic though xP

#

there's also servers which may not have any invites available

woeful sable
#

we could always just

lime stone
#

xD

#

i think my idea may actually not be terrible tbh

#

(for once)

woeful sable
#

I swear there used to be a plugin like that on powercord

lime stone
#

ah, this is just something that came into my mind

upbeat elk
#

there was some plugin called admin something where you couldn't move channels

jagged cloak
#

pretty sure that was just the channel locker thing

woeful sable
#

prob

jagged cloak
#

where u cant type in a channel

lime stone
#

some servers have a self-timeout command for that

#

anyway, i'll redo the suggest and add some reasons for and against

#

*suggestion

#

The Suggest

austere talon
#
.footer-IubaaS:has(.colorRed-2VFhM4) {
    display: flex;
}

/* cancel */
.footer-IubaaS:has(.colorRed-2VFhM4) .colorPrimary-2-Lusz {
    background-color: var(--button-secondary-background); /* or use --button-positive-background for green */
    color: var(--text-normal);
    order: -1;
}

/* leave (and other dangerous confirm actions) */
.footer-IubaaS .colorRed-2VFhM4 {
    background: none;
    color: var(--white-500);
} 
lime stone
#

lmao

woeful sable
#
// ROugh example that doesnt work
// Replace "SERVER_ID_HERE" with the actual server ID
const SERVER_ID = "SERVER_ID_HERE";

window.addEventListener("beforeunload", function (event) {
  const server = getServer(SERVER_ID);
  if (server && server.locked) {
    event.preventDefault();
    event.returnValue = "";
    alert("You cannot leave the server while it is locked.");
  }
});

function getServer(id) {
  const guilds = document.querySelectorAll("[class*=guild]"); // Select all guild elements
  for (let guild of guilds) {
    const guildId = guild.getAttribute("data-list-item-id");
    if (guildId === id) {
      const lockedIcon = guild.querySelector("[class*=padlock]");
      if (lockedIcon) {
        return { id: id, locked: true };
      }
      return { id: id, locked: false };
    }
  }
  return null;
}
lime stone
#

i would probably just click on the background to dismiss it out of fear at this point

woeful sable
lime stone
#

waiit a second

austere talon
#

:3

jagged cloak
#

just make the leave dialog say if you leave you will explode

lime stone
#

seriously though i think this would be better xd

woeful sable
#

make it a double click perhaps

lime stone
#

but i'm pretty sure you're just messing around

#

that's not the point

austere talon
#

i have a good idea

woeful sable
lime stone
#

the point is to make it harder on specific servers

austere talon
#

aw hell nah my vanced just killed itself

lime stone
#

because if you're leaving a lot of servers you're going to be repeating the same action

austere talon
#

what happened ๐Ÿ˜ญ

jagged cloak
#

YouTube jumpscare

woeful sable
#

lightmode

charred monolithBOT
austere talon
#

would that be good enough

woeful sable
#

๐Ÿ˜ญ

charred monolithBOT
lime stone
#

uh so i think that may give me a panic attack

austere talon
#

good

lime stone
#

and delete my discord account

austere talon
#

can't leave the server on accident if youre busy having a panic attack

lime stone
#

๐Ÿคฃ

jagged cloak
woeful sable
lime stone
#

lmao

woeful sable
#

i have really nice speakers ill turn everything up

#

and open my windows

lime stone
#

can you finally admit my suggestion is better?

woeful sable
#

make it louder

lime stone
#

LMAO

woeful sable
lime stone
#

searching for "19" doesn't work well

#

maybe switch\([A-z]+.type\) will bring something up

austere talon
#

find(m => m.S?.dispatch).S.dispatch("SHAKE_APP", { duration: 2000, intensity: 2 })

#

why does this not work

lime stone
#

reduced motion?

austere talon
#

nah

lime stone
#

(if you have it on that is :p)

charred monolithBOT
woeful sable
austere talon
woeful sable
#

what in the world is that

lime stone
#

why- just why

austere talon
#

oh wait i got shake to work

#

app needs to be focused

nocturne haven
woeful sable
#

oh lolol

#

its not shaking :(

nocturne haven
#

๐Ÿ‘

austere talon
nocturne haven
#

look into the nitro gift modal, it does shaking

austere talon
#

dw i already got it

#

the issue was that shake only works if the app is focused

woeful sable
#

i did a setTimeout and clicked on the app and didnt get a shake ganyuHuh

austere talon
#

(dont run if u have epilespy maybe)

setTimeout(() => find(m => m.S?.dispatch).S.dispatch("SHAKE_APP", { duration: 10_000, intensity: 20 }), 1000)
lime stone
#

maybe should also spoiler videos :p

woeful sable
#

why wont it work tf

nocturne haven
#

might need to convert vz -> vc but that's not too hard

lime stone
#

no way this is going to be an actual plugin though.. right?

#

i hope

austere talon
#

it is!!!

lime stone
#

lol

#

nooo

austere talon
#

nah this is just me shitposting

lime stone
#

:MenheraBonk:

jagged cloak
#

guhh reply animation isn't smooth on rn

#

kill

austere talon
lime stone
jagged cloak
#

still not going to use this idc

austere talon
jagged cloak
#

I installed vendetta though for stupid missing features

austere talon
#
var orig = findByProps("jsxs").jsx
findByProps("jsxs").jsx = function() {
    if (arguments[0] === findByProps("ConfirmModal").ConfirmModal) causeChaos()
    return orig.apply(this, arguments);
}

function causeChaos() {
    find(m => m.S?.dispatch).S.dispatch("SHAKE_APP", { duration: 10_000, intensity: 20 })
    new Audio("https://cdn.discordapp.com/attachments/1033680203433660458/1095012995295359136/Nuclear_Alarm_Siren_KKjobijhKOI.mp3").play()
    for (let i = 0; i < 100; i++) {
        const div = document.createElement("div");
        div.className = "banana";
        Object.assign(div.style, {
            "z-index": 9999999,
            height: "2em",
            width: "2em",
            position: "absolute",
            top: Math.floor(Math.random() * document.body.clientHeight) + "px",
            left: Math.floor(Math.random() * document.body.clientWidth) + "px",
            background: ["url(https://cdn.discordapp.com/emojis/961475852061794344.gif?size=256)", "url(https://discord.com/assets/289673858e06dfa2e0e3a7ee610c3a30.svg)"][Math.floor(Math.random() * 2)]
        })
        document.body.append(div)
    }
}
lime stone
jagged cloak
woeful sable
austere talon
#

dosabnรถe reduced motion

lime stone
#

hm, i join too many servers

verbal pumice
#

dosabnรถe

austere talon
#

disbale

jagged cloak
lime stone
#

maybe also add this for joining servers?

austere talon
#

disable

jagged cloak
#

disbalr

woeful sable
#

RAH

#

SHAKING

tame escarp
woeful sable
#

MAKE IT STOP

jagged cloak
#

lol im in a billion servers but by force

lime stone
#

certainly is from here

charred monolithBOT
woeful sable
#

does that end chaos as well

jagged cloak
#

lol you didn't see

woeful sable
#

message logger

jagged cloak
#

I don't think that even works on mobile anyways cause no shake app

woeful sable
honest geyser
lime stone
#

nice!!

#

my tray is now no longer an ashtray

red rock
#

ayeee

charred monolithBOT
lime stone
charred monolithBOT
#
[Vencord/Desktop] New tag created: v0\.1\.5
lime stone
#

javascript/typescript always confuses me x3

austere talon
#

this is the fix

#

i changed the way Settings worked and forgot to update that code

#

require() returns any instead of the proper type so that part didn't have any type checking, that's why i added a typecast now

#

@woeful sable

charred monolithBOT
austere talon
charred monolithBOT
#
[Vencord/Desktop] New tag created: v0\.1\.5
red rock
#

D:

#

:D

lime stone
#

:D

#

||read if cute :3||

austere talon
#

:3

austere talon
#

THIS IS SO COOL WTF

red rock
austere talon
#

@woeful sable E: Unable to locate package makepkg

#

fix

charred monolithBOT
austere talon
#

itso nly in uwuntu23

#

not 22

turbid hatch
#

is it not on backpiorts

charred monolithBOT
woeful sable
#

review my pr vending machine no

turbid hatch
#

its on 22.10

#

in universe

austere talon
turbid hatch
#

guess you can download the debs

#

and then manually fix up anything thats broken

lime stone
#

nice! (trying out ways to implement the feature, i don't think this is it)

jagged cloak
#

the funny duplicating context menu item

charred monolithBOT
lime stone
#

i've made it!

#

it kind of feels weird though!

#

how can you store it persistently?

#

string option of comma separated servers?

#

hm, i wonder if server notes would also be useful...

red rock
#

Doesn't Leave Server have an extra dialog anyway?

lime stone
#

sob

#

maybe this is a bad idea

#

i just feel like it's good to mark severs which are important?

charred monolithBOT
woeful sable
lime stone
#

hm, could use DataStore

#

argh, requires await

#

which then requires async which messes up the menu

charred monolithBOT
jagged cloak
#

ven will make issue templates so people will ignore them and make issues anyway

lime stone
#

can i make it just... wait on the same thread? :3

#

evil!

#

otherwise the context menu doesn't update until hover

charred monolithBOT
woeful sable
#

I'll download deb manually maybe

austere talon
woeful sable
#

instead of just the scrip

austere talon
#

tbh maybe we don't need makepkg

#

this is .SRCINFO

#

u can sed as well

woeful sable
#

true

limber skiff
#

jeez everyone is using this

woeful sable
#

pretty

austere talon
#

you#re the outlier

limber skiff
#

my nitro doesnt support avatar decorations

austere talon
limber skiff
#

#classic-gang

#

pog

woeful sable
red rock
#

However

#

That looks like Windows eww

limber skiff
#

wtf discord added new themes

austere talon
#

@woeful sable did u know of sh subshells

charred monolithBOT
woeful sable
#

yea

dawn coyote
#

vencord desktop sick

austere talon
#

BAAD ```sh
cd banana
doStuff
cd ..

#

GOOOD

(
cd banana
doStuff
)
woeful sable
#

set -e thoo

cunning bobcat
austere talon
#

ig but subshell is better practice cause often times u wanna cd to full path without knowing where user currently is

cunning bobcat
#

is this bash or shitbloats

austere talon
#

sh

#

well anyway do u wanna just sed .SRCINFO too?

woeful sable
#

idk I will wake up first

cunning bobcat
limber skiff
#

WHAT IS THIS FONT COLOR

#

I CANNOT SEE

austere talon
#

does sed support lookahead

limber skiff
#

oh

#

it was my theme I was testing the other day

#

broo

#

how come light themes are so much better than dark

#

like you dont get jumpscared with the ugly gray on a red theme

red rock
limber skiff
#

discord is insane

austere talon
#
#!/bin/sh

set -e

VERSION=$(git describe --tags --abbrev=0 | tr -d 'v')
SHASUM=$(sha256sum "dist/VencordDesktop-$VERSION.tar.gz" | awk '{ print $1 }')

git clone ssh://aur@aur.archlinux.org/vencord-desktop-bin.git aurpkg

cd aurpkg

sed -i "s/^pkgver=.*$/pkgver=$VERSION/" PKGBUILD
sed -i "s/^pkgver = .*$/pkgver = $VERSION/" .SRCINFO
sed -i "s/^sha256sums=('.*'/sha256sums=('$SHASUM'/" PKGBUILD
sed -i "s/^sha256sums = [^S].*$/sha256sums = $SHASUM/" .SRCINFO

git commit -a -m "Bump version to $VERSION"
git push

cd ..
rm -rf aurpkg
#

should work probably

limber skiff
#

gradient light themes are so much better than dark ones

charred monolithBOT
austere talon
#

wha

cunning bobcat
austere talon
woeful sable
#

you're replacing all sha sums

austere talon
red rock
#

All of the gradient light themes are almost identical on my monitor

austere talon
#

is sed global by default

#

we need to replace the first hash

woeful sable
#

per line

limber skiff
#

like wtf

woeful sable
#

tbh I think makepkg probably works as a standalone binary

austere talon
#

nah it needs depednencies

woeful sable
#

I'll make a test repo and see if I can wget it from somewhere trolley

austere talon
#

banana

charred monolithBOT
lime stone
#

is this ok?

charred monolithBOT
#
[Vencord/Desktop] branch deleted: updater\-init
#
[Vencord/Desktop] New tag created: v0\.1\.6
austere talon
#

i borked settings in 0.1.5

lime stone
austere talon
#

yea

charred monolithBOT
woeful sable
#

@austere talon I forgot I can literally test it on my machine

austere talon
#

TENCENT

woeful sable
#

wtf why is that so old

austere talon
#

HORROR

woeful sable
#

i will update immediately

austere talon
#

WHY DO U HAVE TENCENT MIRROR

#

๐Ÿ˜ญ

woeful sable
#

it gets picked automatically u love

#

i had no idea

austere talon
#

horrifying

#

the absolute state of ubuntu

#

cares so little about your privacy that after getting heavily criticised for sending ur search data to amazon and friends they also use tencent mirror

woeful sable
austere talon
#

add

woeful sable
#

true

austere talon
#

should we host vencord deb repo

woeful sable
#

hmmm

#

yeah probably not a terrible idea

#

you just need to serve some files

charred monolithBOT
woeful sable
#

Downloading https://mirrors.edge.kernel.org/ubuntu//dists/jammy/main/binary-amd64/Packages.gz

#

i love double slash

lime stone
#

pr speedrun :p

#

github will ban me for so much pr

woeful sable
#

@austere talon

austere talon
#

true

woeful sable
#

i love accidentally switching keyboards

honest geyser
#

thanks @lime stone

lime stone
#

oh, which number?

honest geyser
#

733

lime stone
#

not an issue, you mean you experienced it generally?

lime stone
#

oh

#

i'm talking about another issue

#

it's not based on your pr

honest geyser
#

oh ok

#

what is your issue

lime stone
#

it's the issue when a message appears and the pronouns kind of dance a bit :3

honest geyser
#

I need to work on my PR

#

I have so much things to do

lime stone
#

hm, why did you want them hidden anyway?

#

i guess it looks cool so i won't argue!

#

haha logic yes

honest geyser
#

too much things to do:

โฏ cat ~/Documents/TODO/TODO.norg | wc -l
286
austere talon
#

looks good, I'll merge in a bit with other changes @limber skiff

austere talon
#

wait

#

i didnt mean to merge

#

oopsie

#

i meant to only rename

charred monolithBOT
honest geyser
#

damn ven is speedruning github

woeful sable
#

84% [19 Contents-all 22.1 MB/32.8 MB 67%] 27.1 kB/s 6min 51s
๐Ÿฅน

honest geyser
#

?

woeful sable
#

so slow

austere talon
#

does my suggestion still work without flashing? @lime stone

lime stone
#

yes

#

would it be safe to remove

// If cached, return the cached pronouns
if (id in cache) res(getCachedPronouns(id)!);

?

austere talon
#

neat

austere talon
#

then it would always append to the queue

lime stone
#

oh, of course

#

i thought awaitAndFormatPronouns would remove the need, but i realise it wouldn't :P

austere talon
#

merge?

lime stone
#

i'll just test once more :p

lime stone
#

noo :(

fleet depot
#

im getting Oops an unknown exception has occurred ๐Ÿ˜”

lime stone
#

let's see again

lime stone
#

yes the issue has returned :(

#

i must have killed pnpm build --watch and forgot

#

weird, should work according to docs :p

#

wait, must be the pending check

#

ahh

lime stone
#

yes

fleet depot
#

all better now ๐Ÿ‘

lime stone
#

@austere talon should be mergeable now, i hope! :P

charred monolithBOT
woeful sable
#

@austere talon we love apt

austere talon
#

does it work correctly? @lime stone

lime stone
#

yes, at least as far as i can see

charred monolithBOT
woeful sable
#

/home/runner/work/_temp/a741b65d-3ab2-467b-a8f7-9e83c058b866.sh: line 7: 1858 User defined signal 1 makepkg --printsrcinfo > .SRCINFO

#

@austere talon fix

charred monolithBOT
woeful sable
#

write(1, "==> ERROR: An unknown error has "..., 53==> ERROR: An unknown error has occurred. Exiting...

#

๐Ÿ‘

#

that is very helpful of you makepkg

#

(the error doesnt even get to show up it just implodes)

#

well

#

it did,d

#

um

#

ok

#

I WILL get makepkg to run

austere talon
#

LMAO

#

just manually edit .SRCINFO

woeful sable
#

NOPE

austere talon
#

make the workflow run an x11 server and forward it via ssh then show a notification on ur pc to ssh into it and manually edit the files

woeful sable
#

true

#

Job defined at: dzshn/malware/.github/workflows/cat.yml@refs/heads/('w'")

#

--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1945, si_uid=1001, si_status=0, si_utime=0, si_stime=0} ---
wait4(-1, 0x7ffdafbc2650, WNOHANG, NULL) = -1 ECHILD (No child processes)
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f9366411a10) = 1946
strace: Process 1946 attached
[pid  1946] execve("/usr/bin/date", ["date", "+%s"], 0x55cb407ae170 /* 113 vars */) = 0
[pid  1944] wait4(-1,  <unfinished ...>
[pid  1946] exit_group(0)               = ?
[pid  1946] +++ exited with 0 +++
<... wait4 resumed>[{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1946
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1946, si_uid=1001, si_status=0, si_utime=0, si_stime=0} ---
wait4(-1, 0x7ffdafbc24d0, WNOHANG, NULL) = -1 ECHILD (No child processes)
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f9366411a10) = 1947
strace: Process 1947 attached
[pid  1947] execve("/usr/bin/gettext", ["gettext", "%s signal caught. Exiting..."], 0x55cb409ade80 /* 115 vars */) = 0
[pid  1947] exit_group(0)               = ?
[pid  1947] +++ exited with 0 +++
#

qhar

#

makepkg ON CRACK

#

his ass CAUGHT NO SIGNAL โ€ผ๏ธ

austere talon
#

looks like ImageZoom broke somehow

#

it's in the correct spot with the plugin off

charred monolithBOT
austere talon
#

@rustic nova any idea what could be causing this?

jagged cloak
#

oofers

austere talon
#

It's not the recent change

#

removed it and still same issue

jagged cloak
#

his ass is not opening in browser

charred monolithBOT
woeful sable
#

@austere talon merge

#

apparently makepkg was crying because pacman wasn't installed lmao

#

I saw it tried to open smth at /usr/share/pacman

#

This step has been truncated due to its large size. Download the full logs from the menu once the workflow run has completed.

austere talon
woeful sable
#

wtf........

#

install_makepkg.sh so good

charred monolithBOT
austere talon
#

should i make new tag

woeful sable
#

do you like my branch name

woeful sable
charred monolithBOT
#
[Vencord/Desktop] New tag created: v0\.1\.6
austere talon
woeful sable
#

lmaoo

austere talon
lime stone
#

hm, this still seems to appear

austere talon
#

vcdLS.getItem("hideNag")

#

?

woeful sable
#

that thing is a dismissible content so u could just set the bit flag for it in the user settings trolley

wp.findByProps("HUB_WAITLIST_UPSELL").NAGBAR_NOTICE_DOWNLOAD // 16
#

electron builder so slowwww

#

you will ubuntu-latest-16-cores

#

E: Unable to locate package makepkg

#

HUH

#

@austere talon you put the tag on the wrong commit

#

so it used the old workflow

#

fix

austere talon
woeful sable
#

0.1.7 ๐Ÿฅบ

austere talon
#

@rustic nova am i stupid or is the .zoom class not used anywhere

woeful sable
#

zoom school class

austere talon
#
.zoom img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#

that class doesn't seem to exist??

woeful sable
#

u will document.getElementsByClassName("zoom")

charred monolithBOT
austere talon
#

i will simply repush 0.1.6

charred monolithBOT
#
[Vencord/Desktop] New tag created: v0\.1\.6
austere talon
#

btw this is why u never use tags for ur github actions

#

cause the author can just change tag to malicious code

#
- - uses: totallytrustworthyh4x0r/virus@2.0.0
+ - uses: totallytrustworthyh4x0r/virus@47f3b7fc892cf8334fd31c627ede388eaf69d575
#

lme me doing cursed tag stuff fucked up github

woeful sable
#

actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3

#

use

austere talon
#

nuh uh

#

actions/* is by github so u can trust them

woeful sable
#

nope

#

you cannot trust them

austere talon
#

/home/runner/work/_temp/f5fb290b-e66a-4baf-a935-1bdafc0acc46.sh: line 1: /home/runner/.ssh/aur: No such file or directory

#

fake

woeful sable
#

oh my guh

#

mkdir ~/.ssh

#

tbh no reason to ~/.ssh ```diff

  • echo $SSH_KEY > ~/.ssh/aur
  • echo $SSH_PUB_KEY > ~/.ssh/aur.pub
  • export GIT_SSH_COMMAND="ssh -i ~/.ssh/aur"
  • echo $SSH_KEY > /tmp/aur_key
  • echo $SSH_PUB_KEY > /tmp/aur_key.pub
  • export GIT_SSH_COMMAND="ssh -i /tmp/aur_key"
charred monolithBOT
woeful sable
#

erm the pub keys dont need 600 !

austere talon
#

does it matter

woeful sable
#

they are public and-

#

(no)

austere talon
#

do i retag

woeful sable
#

maybe

charred monolithBOT
#
[Vencord/Desktop] New tag created: v0\.1\.6
woeful sable
#

one thing I like about circle ci is you could rerun the workflow with ssh access and actually debug it

#

github will make immediately

#

its always a pain to make workflows cuz u do so many things blindly

austere talon
#

lol wtf did i do

somber ginkgo
charred monolithBOT
woeful sable
#

Error: Process completed with exit code 100.

#

???????

frail skyBOT
#
Bad Patches

WebContextMenus (had no effect):
ID: 638525
Match: /(?<=showApplicationCommandSuggestions;)if\(![A-Za-z_$][\w$]*\.[A-Za-z_$][\w$]*\)/

WebContextMenus (had no effect):
ID: 638525
Match: /("submit-button".+?)(\(0,[A-Za-z_$][\w$]*\.jsx\)\([A-Za-z_$][\w$]*\.MenuGroup,\{children:[A-Za-z_$][\w$]*\}\),){2}/

Bad Starts

None

Discord Errors

JSHandle@error

woeful sable
charred monolithBOT
austere talon
#

@turbid hatch can we move Download to the right?

#

this feel so unintuitive to me

austere talon
#

i get the idea but I always get so confused

frail skyBOT
#
Bad Patches

WebContextMenus (had no effect):
ID: 638525
Match: /(?<=showApplicationCommandSuggestions;)if\(![A-Za-z_$][\w$]*\.[A-Za-z_$][\w$]*\)/

WebContextMenus (had no effect):
ID: 638525
Match: /("submit-button".+?)(\(0,[A-Za-z_$][\w$]*\.jsx\)\([A-Za-z_$][\w$]*\.MenuGroup,\{children:[A-Za-z_$][\w$]*\}\),){2}/

DisableDMCallIdle (found no module):
ID: -
Match: .Messages.BOT_CALL_IDLE_DISCONNECT

Bad Starts

None

Discord Errors

JSHandle@error

woeful sable
#

I think apt suddenly decided to explode

#

bleh

#

I forgot sudo ๐Ÿฅน

#
- ./scripts/ci/install_makepkg.sh >/dev/null 2>&1
+ sudo ./scripts/ci/install_makepkg.sh >/dev/null 2>&1
#

@austere talon LAST change.........

charred monolithBOT
austere talon
#

god why did you make the line-height so massive on headers? That's really inconvenient lookWhatTheyTookFromUs

austere talon
#

which? @cunning canyon

cunning canyon
#

res.ok && res.text()

austere talon
#

yes

#

but which

#

:P

woeful sable
cunning canyon
woeful sable
#

res.ok ? res.text() : (await import("segfault")).segfault()

austere talon
#

weird nvm then

limber skiff
#

๐Ÿ˜ญ ๐Ÿ˜ญ what did they do to it

turbid hatch
#

anyway we can readjust it

#

tbf it does need adjustment

cunning canyon
#

ok blobcatcozy

charred monolithBOT
#

This is an issue tracker specifically for the redesign and what needs to be fixed.

  • [ ] Heading line-heights are all weird. We need to find better ones.
  • [ ] Move Downloads to the right. It was cool but it screws up people's muscle memory.
  • [ ] Take a look at any style overrides and see if they should be the defaults rather than individual overrides.
  • [ ] Better icons for the plugins page. They're a bit out of place and don't really suit their meanings.
    • [ ] Whilst we're at it,...
austere talon
#

like way too much lmao

turbid hatch
#

i found some more issues anyway

#

so there's a list of them all that need to be fixed!

#

of which i will start

#

Not Now

austere talon
#

Vertically center pages that don't fill up 100% of the content(?)

#

i think no

#

would probably look weird

turbid hatch
#

it'd break consistency

#

too

#

but i noted it just in case

charred monolithBOT
#

Discord Account

SkoopyDev#9911

What is it that you'd like to see?

Since many servers use ServerStats or other similar bots that tell you the member count already, it would be nice to see a feature where the member count is disabled if ServerStats or some other bot is already showing the member count(or hide ServerStats' one idk).

Also, some members, like myself, don't really care about the amount of online members, so I think it would be useful to be able to disable that to dec...

limber skiff
#

CallIdleStore is no longer a thing

austere talon
#

woah

#

VOICE_STATE_UPDATES: function(e) {
return e.voiceStates.reduce((function(e, t) {
if (null != t.guildId)
return e;
var n = j.Z.getCurrentClientVoiceChannelId(null);
if (null == n) {
Zue.stop();
return e
}
if (1 === iE.ZP.countVoiceStatesForChannel(n)) {
xue = n;
Zue.start(Due, Uue, !1)
} else
Zue.stop();
return e
}
), !1)
},

limber skiff
#

whats that

austere talon
#

the code

limber skiff
#

for what lol

limber skiff
#

oh

#

I see

cunning canyon
#

(usrbg): discord crashs when i open dm with someone has nitro banner and i have no idea how to fix lookWhatTheyTookFromUs

austere talon
#

lmao

#

Should have a queue. This is likely a bug in React. Please file an issue.

austere talon
#

conditional hooks aren't allowed

limber skiff
#

@austere talon permissions viewer review review

#

what about using hooks like this

thing?.useBlabla()

austere talon
#

wha

limber skiff
#

thing is a webpack search

#

so it can be undefined

austere talon
#

why would it be undefined

limber skiff
#

if you cant find lol

austere talon
limber skiff
grave mangoBOT
limber skiff
grave mangoBOT
limber skiff
#

I guess that would be the same amount lol

austere talon
#

if ur function calls a different amount of hooks it explodes

cunning canyon
#

what should i do

austere talon
#

refactor to not have a conditional hook call

#
bannerHook(banner: string, userId: string) {
    const func = banner && settings.store.nitroFirst
        ? () => Promise.resolve()
        : () => fetch(`${USRBG}${userId}.txt`).then(res => res.ok ? res.text() : null);

    return useAwaiter(func)[0] || void 0;
},
limber skiff
#

should be the other way around I think

austere talon
#

ye

#

fixed

cunning canyon
#

jumpscare

austere talon
#

what

limber skiff
#

well just do Promise.resolve(null) lol

cunning canyon
austere talon
cunning canyon
#

ah ok

austere talon
#

its kinda pain that react works this way

#

makes it kinda inconvenient for us

limber skiff
#

ye

#

NULL

austere talon
#

jumpscare

inland fable
#

omg i can read

cunning canyon
#

dm issue is fixed but if open profile from friend list it still crashs oh my god

woeful sable
#

cuz apt is stupid and displays progress as dozens of lines

#

even if you --quiet

austere talon
woeful sable
#

so good

austere talon
#

dont use apt tho

#

i think apt-get better

woeful sable
#

nop

#

its apt over apt-*

austere talon
#

no

#

not for cli

woeful sable
#

h

austere talon
#

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

woeful sable
#

debian will EXPLODE

austere talon
#

apt-get now

#

apt-get install -qq -o=Dpkg::Use-Pty=0 pkg

#

will make it shut

woeful sable
#

WHAT IS THAT

#

horror

austere talon
#

sanest apt command

#
apt-get install -qq -o=Dpkg::Use-Pty=0 <packages>
#

We took a look in the source of apt and discover that the output is produced by dpkg that was forked by apt. Then the source of dpkg shows that the annoying soutput is only issued when isatty(1) is true. This is only the case when the fork uses pty instead pipe. Back to apt, there is a undocumented configuration variable that allows to use pipe instead pty which then solve the problem:

woeful sable
#

actually its not even apt install <packages>

#

apt -f install

#

cuz dpkg leaves the packages broken since it cant resolve deps on its own

austere talon
#
DEBIAN_FRONTEND=noninteractive apt-get -yq install
woeful sable
#

-f

#

!

cunning canyon
#

@austere talon it still explod when open nitro profile in friend list lookWhatTheyTookFromUs

austere talon
#

why

#

same error?

cunning canyon
#

yes same that react thing

austere talon
#

FFFFFF

#

maybe u cant use hooks there for some reason

#

idk

#

react is kinda abitch

woeful sable
#

do I PR that or u fix it @austere talon

austere talon
#

u

limber skiff
#

we may actually not have to convert the default stickers

woeful sable
#

omw to opening the 10th pr related to aur package

limber skiff
#

@austere talon did #v move?

austere talon
#

its up

#

above

#

try moving it @limber skiff

limber skiff
#

tried

austere talon
#

no

rustic nova
austere talon
#

nono

#

i already fixed

#

false alarm sorry :3

rustic nova
#

phew

austere talon
#

i forgot i tested some stuff related to the plugin in quickcss

#

so i had old styles conflicting

#

idk

rustic nova
#

oooh

#

hehe

cunning canyon
#

@austere talon the ugly code before pylix's pr works very well and no crash lol magic

woeful sable
#

i will explode

charred monolithBOT
austere talon
#

what if it still broken @woeful sable

charred monolithBOT
woeful sable
#

i will cry

charred monolithBOT
#
[Vencord/Desktop] New tag created: v0\.1\.6
woeful sable
#

@austere talon

austere talon
#

bad

#

vscode soon

woeful sable
#

wtf

austere talon
#

it's been complaining about these for ages

#

but it works on my machine

#

ohh i think cause that code is never ran

#

like it only is loaded when u open context menu

#

wait no

#

mmmm

#

idk wh it wouldn't work

cunning canyon
austere talon
#

idk what that mean

#

oh i see

#

ig MenheraBuffer

charred monolithBOT
woeful sable
#

u didnt even question the mirror i picked

austere talon
#

wha

woeful sable
#

maybe git config user.name and user.email is necessary ?? @austere talon

austere talon
#

oh yeah probably

woeful sable
#

which do i use

austere talon
#

VencordBot

#

aur@vencord.dev

woeful sable
#

Unsupported Match attribute \tIdentitiesOnly
/home/runner/.ssh/config line 1: Bad Match condition
/home/runner/.ssh/config: terminating, 1 bad configuration options

#

true

#

gonna make all my test repo's commit dates be 1970 january 1

#

guhhh why doesnt it work

#

are github actions runners blacklisted from the aur lol

austere talon
#

do u ever just write a regex and it works first try

woeful sable
#

i give up u can yoink the scripts

woeful sable
#

i will simply run a webhook listener on ur vps

limber skiff
#

the ones I did today were first try

woeful sable
austere talon
cunning canyon
#

i love blbbbsabsbbllopppso feature

austere talon
#

funnee

woeful sable
#

whag happen to 0.1.6

austere talon
#

gon

woeful sable
#

I made an epic systemd timer

charred monolithBOT
woeful sable
#

@austere talon my script works

#

you love

#
#!/bin/sh

set -e

LATEST=$(curl -sSL https://api.github.com/repos/Vencord/Desktop/tags |
    jq '.[0].name' -r |
    tr -d 'v')
CURRENT=$(rg '(?<=pkgver=).*' PKGBUILD -o -P)

(
    echo "$CURRENT"
    echo "$LATEST"
) | sort -VC

sed -i "s/^pkgver=.*$/pkgver=$LATEST/" PKGBUILD

updpkgsums
makepkg --printsrcinfo >.SRCINFO

git commit -a -m "Bump version to $LATEST" --no-gpg-sign
git push
#

this runs daily

woeful sable
#

( 'v')

#

@austere talon do you love

#

least verbose systemd unit

# cat ~/.config/systemd/user/vencord-bin.timer 
[Unit]
Description=Bump vencord-desktop-bin AUR package
Wants=network-online.target

[Timer]
OnCalendar=daily
Persistent=true

[Install]
WantedBy=default.target

# cat ~/.config/systemd/user/vencord-bin.service 
[Unit]
Description=Bump vencord-desktop-bin AUR package

[Service]
Type=oneshot
WorkingDirectory=/home/dzshn/Documents/git/aur/vencord-desktop-bin
ExecStart=/home/dzshn/Documents/git/aur/vencord-desktop-bin/bump.sh
#

Wants=network-online.target so cool tho

austere talon
#

true

charred monolithBOT
austere talon
#

it would just loop

woeful sable
#

real fix

austere talon
#
#!/bin/sh

while ! ping -q -c 1 -W 1 archlinux.org >/dev/null
do
  if [ $((WAIT_FOR_NETWORK_TRIES += 1)) -gt 100 ]
  then
    exit 1
  fi
  sleep 5
done```
#

rate

woeful sable
#

you will ping 1.1.1.1 every 10 ms

austere talon
grave mangoBOT
austere talon
cunning canyon
#

actually before useAwaiter pr

brazen phoenix
#

probably because react hooks but it works on my machine WorksOnMyMachine

#

where does it crash

cunning canyon
#

crash when dm and open profile from friend list

#

if user havent been loaded it crash

#

nitro user

brazen phoenix
#

ah yeah i can repro

#

i think i know why

cunning canyon
austere talon
#

with very cryptic react error

brazen phoenix
#

ah nevermind then

#

hmm can't reproduce with latest change

cunning canyon
brazen phoenix
cunning canyon
#

yeah

brazen phoenix
brazen phoenix
cunning canyon
brazen phoenix
#

yep doesn't crash

cunning canyon
#

mine still crash lol

brazen phoenix
#

nothing was logged what

#

is it a react crash

cunning canyon
#

yes, before that fix if open dm with nitro user result same error crash

austere talon
#

that's so weird

#

seems like infinite loop

#

actually no

#

that would freeze not restart

#

but that's really strange that shouldn't happen

austere talon
limber skiff
#

I fixed

#
    patches: [
        {
            find: ".bannerSrc,",
            replacement: {
                match: /(\i)\.bannerSrc,/,
                replace: "$self.useBannerHook($1),"
            }
        }
    ],

    useBannerHook(props: any) {
        const { displayProfile, user } = props;

        const [bg] = useAwaiter(() => {
            return (displayProfile?.banner && settings.store.nitroFirst) || userBg[user.id] === null
                ? Promise.resolve(null)
                : fetch(USRBG + user.id + ".txt")
                    .then(res => {
                        if (res.ok) return res.text().then(text => (userBg[user.id] = text));
                        else return (userBg[user.id] = null);
                    });
        }, { fallbackValue: null, deps: [displayProfile] });

        return bg;
    },
#

@cunning canyon here you go

cunning canyon
limber skiff
#

oh

#

lmao

#

that simplifies it

brazen phoenix
austere talon
#

it does

#

like I said it shouldn't crash like that

#

that means something is very wrong

limber skiff
#

way cleaner

#

ok there

#

useAwaiter isn't that bad after all

cunning canyon
#

thank you

limber skiff
#

no prob

charred monolithBOT
woeful sable
#

WebviewCord

austere talon
limber skiff
#

I realized after I made the review

austere talon
#

someone told me to make that plugin so I immediately speedran making it for the funnies

limber skiff
#

lmao

austere talon
#

I made it in like half an hour

#

with the majority of that time being my brain damage

#

I way overcomplicated it

limber skiff
#

happens to me too

austere talon
#

I tried to like extract their click callback for sending greets then realised it doesn't take parameters so I decided it was a good idea to patch the code and eval it then realised now you lose the closure so everything refers to undefined variables

#

then eventually I went to the intuitive logical solution I have now

limber skiff
#

I lost my brain trying to understand what you said

#

it's okay though no need to over explain it lol

austere talon
#

I just copy pasted the context menu code from Spotify plugin lmao

limber skiff
#

I'm gonna cry cuz I think I will have to re make this component from scratch

#

ugly discord changed it

#

(Only you can see this channel)

#

lies

austere talon
# limber skiff I lost my brain trying to understand what you said

basically their code has a function that submits the greet and stuff that they use as onClick listeners

I wanted to use that for my own greets. but then I realised that function directly refers to local variables so you can't send other stickers than the one discord picked.

Then I decided it was a good solution to just replace the hardcoded variables in this function to my own and eval it. but obviously you lose the closure so all the other variables the function refers to won't exist

#

hope that made more sense

#

I matched their entire use Callback() initially, it's a pretty big function

limber skiff
#

oh I see

#

makes way more sense now

#

greeting is funny

#

you can greet messages that arent welcome ones

#

if you manually send the request

austere talon
#

really?

limber skiff
#

yeah

#

oh

#

and it doesnt have rate limits

#

pretty sure

#

I dont really remember but I made a bot spam it

austere talon
#

you can send any of the welcome stickers in a normal message in reply to welcome messages without nitro, that's how it initially used to work. that doesn't have a ratelimit