#👾-core-development

1 messages · Page 175 of 1

austere talon
#

no Promise.all

limber skiff
#

??

austere talon
#

cause only 1

#

ig

limber skiff
#

ok that is shit.

austere talon
#

oh wait

limber skiff
#

it doesn't load a chunk

#

it just does a require

austere talon
#

ig Promise.all is loading dependencies

limber skiff
#

yes

austere talon
#

thats funny

#

so basically its a lazy require

#

the module is already loaded

limber skiff
#

modify the regex in the second argument of the thing

#

let me see what you can do

austere talon
#

no see

#

this chunk isnt lazy loaded xd

#

we dont need an extract anymore

limber skiff
#

but it's a lazy require

#

you need to require it

#

maybe not test it

odd heath
#

Are you gonna migrate it or can I make a pr (im bored and have nothing to do)

austere talon
#

yeah true we do need to require it

#

but not import

austere talon
#

i dont care about reviewdb anymore

limber skiff
#

you can prob do this let me show you

austere talon
#

i mean

#

i can do it myself

crude hearth
charred monolithBOT
austere talon
#

just also match Promise.resolve()

#

and then we dont need to wreq.e at all

limber skiff
#

extractAndLoadChunks(["openAvatarDecorationModal:", /Promise\.resolve(\(\))\.then\(\i\.bind\(\i,"(.+?)"\)\)/])

austere talon
#

oh i was gonna edit the api

limber skiff
#

nah

#

you just need to make sure the first group is not empty string

#

and the second is the entry point

#

so instead of empty string I match ()

#

does it work?

#

oh I forgot a thing

#

fixed

austere talon
#

i fixed the api itself

limber skiff
#

okay

charred monolithBOT
austere talon
#

guh why does decor fetch 3 morbillion users

charred monolithBOT
austere talon
#

does this look good @limber skiff

#

it works

charred monolithBOT
crude hearth
median rapids
#

fake outage to get people to upgrade

austere talon
#

LMAO

#

why do i keep mixing up reviewdb

crude hearth
#

You will die

austere talon
#

first i mixed it up with PronounDB

#

now with decor

median rapids
#

the everything plugin

austere talon
crude hearth
#

Ven every db plugin is NOT reviewdb

median rapids
#

discor was supposed to do it for api v6/7

#

(they forgor)

austere talon
#

do u think cyn is mad cause 99% of pronoundb requests still use old api

median rapids
#

probs

austere talon
#

is that why there's an "outage" with it

limber skiff
#

dont remove the regex from the lazy

#

the default one

austere talon
#

why

limber skiff
#

it's used by the reporter

austere talon
#

oh right

#

well i mean

#

if it is undefined we know

#

i dont like the duplication of it

limber skiff
#

also does that actually work well

austere talon
#

it works for decor

limber skiff
#

because the first group now only happens sometimes

mortal fractal
limber skiff
#

idk how the regex engine handles it

#

but if it does work edit the description

austere talon
#

if it doesnt take that path

limber skiff
#

makes sense

austere talon
#

do you want me to explicitly check for if its undefined or not?

limber skiff
#

nono

austere talon
#

this should have same behaviour as old thing

#

if its empty string

#

is that a possible case

limber skiff
#

oh sure

austere talon
#

actually nah its not possible lol

#

like this will always at least contain at least one

charred monolithBOT
limber skiff
#

yes but

#

it's for the case that someone made a custom regex for it

#

not the default one haha

austere talon
#

ohhh

#

i think its probably fine like this?

limber skiff
#

you are gonna have to pick those commits

#

cuz it's the wrong branch

austere talon
#

yaa

#

ik

limber skiff
limber skiff
charred monolithBOT
limber skiff
#

alsoo I'm not sure but maybe there is a case where only 1 chunk is loaded

#

so it uses wreq.e
then directly

#

just a guess honestly

austere talon
#

i ran reporter

limber skiff
#

run the porter again

#

o

austere talon
#

i did alr

limber skiff
#

msiddkjddjs

austere talon
#

its going slow

frail skyBOT
#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

austere talon
#

nice

frail skyBOT
#
Bad Patches

RoleColorEverywhere (had no effect):
ID: 805009
Match: /renderName\(\).{0,100}speaking:.{50,100}jsx.{5,10}{/

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

limber skiff
#

we need to somehow cache chromium install

#

it's the only thing making it slow

odd heath
#

guh why did pronoundb decide to change the way they send pronouns

#

horror

median rapids
charred monolithBOT
charred monolithBOT
rugged spire
#

sorry about that

#

yes this is reasonable\

#

what isn't reasonable is what I got in DMs at 3am

charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
livid heath
#

my defense contains no more no less than a screenshot of amia

charred monolithBOT
jagged cloak
#

ohh ic

#

originally i was like whytf is this a plugin

charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
austere talon
#

oop i didnt mean to remove that patch

charred monolithBOT
crude hearth
#

force push again

charred monolithBOT
austere talon
#

btw does anyone else have this issue where if you use the debugger, it fucks up the cursor? like it always stays default cursor and doesnt turn into pointer when you hover links

#

the only fix i found was to restart discord but its so annoyiong

odd heath
#

I have that even when not using the debugger iirc (I got used to it)

#

I can check if it's still there

#

I just blamed wayland for it

prime dew
charred monolithBOT
magic agate
#

i havent had that issue and im not using wayland, still waiting on the explicit sync stuff to percolate thru the whole ecosystem

median rapids
#

why ru gatekeeping utility plugins when plugins like banger and oneko exist lmao

austere talon
#

oneko is silly
banger wouldn't be accepted today

shell shuttle
#

i dont think banger even works

#

orat least for me it deosnt work

spark pivot
#

cant you do it with css

charred monolithBOT
shy veldt
median rapids
#

lmao

spark pivot
shell shuttle
shy veldt
shell shuttle
shy veldt
#

true

turbid hatch
#

kind of like how ping commands are technically useless but are helpful in working out delays in bots

charred monolithBOT
topaz thistle
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
#

Well, I guess it's true lul, but it can be said about any feature request basically.
If I would go this way tho I think:

  • Probably will need to consider lots of things with managing how updates work and recompile everything from scratch with each incoming update
  • It's much more actions than opening edit for plugin inside client

I am suggesting this mostly for a reason that this is possible in BetterDiscord and I've done that for my plugins so that extra buttons will fit my discord's...

charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
austere talon
#

right I need to add ghwp back

glass jasper
median rapids
#

nah

jagged cloak
#

nah gotta star it 500 more times

#

while im here this is a crime and will be rectified immediately

glass jasper
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
#

is cross-plugin behavior like that even allowed?

Plugins should be naturally compatible with each other (that's why patches are written in a specific way, to preserve functionality), and ideally we shouldn't be adding checks to see if other plugins are enabled. If it's absolutely necessary, then so be it, but please prefer finding a solution where both can work at once without special handling.

charred monolithBOT
charred monolithBOT
charred monolithBOT
#

Discord Account

No response

What happens when the bug or crash occurs?

always

What is the expected behaviour?

it literally doesnt work.

How do you recreate this bug or crash?

turn the plugin on

Errors

No response

Request Agreement

  • [X] I am using Discord Stable or tried on Stable and this bug happens there as well
  • [X] I have read the requirements for opening an issue above
rugged spire
#

what

lime stone
#

i think they forgot to update.

charred monolithBOT
gritty iris
odd heath
#

yeah

#

the patch is brokey

#

gonna fix

gritty iris
#

these are the 3 I noticed had broken patches but could also just be my client
nomosaic
pictureinpicture
messagelogger

rugged spire
#

you will have people exploding in #support about messagelogger if that is true

gritty iris
gritty iris
#

ill double check them

rugged spire
gritty iris
#

renders the attachments as deleted and such

odd heath
gritty iris
#

donno then ill reinstall my stuff

gritty iris
odd heath
#

hm

#

idk

#

but they dont on canary at least

gritty iris
#

I think they were grayed out before

odd heath
#

duh how do i not remember that

gritty iris
#

but I could be wrong

odd heath
#

same

gritty iris
#

PiP I couldn't tell you because I don't use it

odd heath
gritty iris
#

neat

odd heath
#

all i know is not patch broke for message logger and pip

gritty iris
#

it turns gray because of a patch

odd heath
#

yeah but the patch itself isnt broken

#

something else is broken about it

gritty iris
#

it says the find

odd heath
#

why does it not show up in my console then lmao

#

wtf

gritty iris
#

I think only matches show up

#

could be wrong

odd heath
#

i think they show when the find breaks but no clue

#

at least its sorted out

gritty iris
#

its broken

#

just did a patch test

#

ill check pip

#

same with pip

#

no find matches where found

odd heath
#

ic

#

also im too dumb for nomosaic venniecozycat

#

pip is an easy fix i think

#

@gritty iris which find is broken for messagelogger?

gritty iris
odd heath
#

ah

#

same thing broke both

#

LOL

gritty iris
#

?

odd heath
#

they renamed sstuff to "MosaicItem"

gritty iris
#

I see

odd heath
#

that happened to pip and I think to message logger too

rugged spire
#

HOLY SHIT

#

I JUST HAD A SUDDEN REALISATION

#

I just came across somewhere I need to patch

odd heath
#

hm

#

even when i fix the find and patch for message logger the images arent greyed out

charred monolithBOT
odd heath
#

bweh i have no idea why it isnt working it patches just fine

#

got it

charred monolithBOT
charred monolithBOT
#

as started previously the only way would be to take the code of og creator (which we eval from their script) make our own fork of it and modify it (which I don't know if they will be ok with).

  • we don't need to go through all that hastle as this is a very very minor performance improvement that is not worth the hastle
charred monolithBOT
frail skyBOT
#
Bad Patches

NoMosaic (had no effect):
ID: 310043
Match: /null!==\(\i=\i\.get\(\i\)\)&&void 0!==\i\?\i:"INVALID"/

RoleColorEverywhere (had no effect):
ID: 805009
Match: /renderName\(\).{0,100}speaking:.{50,100}jsx.{5,10}{/

MessageLogger (found no module):
ID: -
Match: .removeAttachmentHoverButton

NoMosaic (found no module):
ID: -
Match: .messageAttachment,

PictureInPicture (found no module):
ID: -
Match: .nonMediaAttachment]

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

NoMosaic (had no effect):
ID: 310043
Match: /null!==\(\i=\i\.get\(\i\)\)&&void 0!==\i\?\i:"INVALID"/

RoleColorEverywhere (had no effect):
ID: 805009
Match: /renderName\(\).{0,100}speaking:.{50,100}jsx.{5,10}{/

MessageLogger (found no module):
ID: -
Match: .removeAttachmentHoverButton

NoMosaic (found no module):
ID: -
Match: .messageAttachment,

PictureInPicture (found no module):
ID: -
Match: .nonMediaAttachment]

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

glass jasper
odd heath
#

most of them have prs

#

.messageAttachment is gonna be .messageMosaicItem or .messageItem i assume

charred monolithBOT
frail skyBOT
#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

odd heath
austere talon
#

thanks

charred monolithBOT
#

I recommend making the search value for the nekoSpeed replace more robust, as it seems the author of oneko.js occasionally makes changes to the script.
Also, I believe that, as @Sqaaakoi previously mentioned, the extra chained then() methods are unnecessary, since the replace() method of String does not return a Promise object.

glass jasper
#

wasn’t ryan banned why they giving there input on pr’s

lime stone
#

as long as they're not harrassing people on github i think it's fine

glass jasper
#

far enough, just crazy to me. You get banned from a server and then go up in the github and still give your input

#

not mention how they was shittalking my pr in my DMs

charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
spark pivot
median rapids
spark pivot
#

i've actually wanted this for a while

median rapids
spark pivot
#

i thought i'd be more complicated but discord actually stores that you are typing so i just removed the check

median rapids
#

well yea u still get the event

spark pivot
#

true

median rapids
#

filtering it in the backend makes no sense

spark pivot
#

it's almost the first birthday of my first ever merged pr

median rapids
#

2 more days..

#

i will throw party

spark pivot
#

this was before i was even in this server lol

sterile oak
spark pivot
#

they're not being "reviewed" lol

#

they are sitting in the pile waiting to be found

sterile oak
#

lmao, I hope I don't wait that long

charred monolithBOT
frail skyBOT
#
Bad Patches

None

Bad Webpack Finds

findByProps("profileColors")
findByCode(","--profile-gradient-primary-color"")

Bad Starts

None

Discord Errors

None

#
Bad Patches

None

Bad Webpack Finds

findByProps("profileColors")
findByCode(","--profile-gradient-primary-color"")

Bad Starts

None

Discord Errors

None

austere talon
#

can someone fix this

#

it causes ugly error in profile

#

mm whats the first one

#

cant find

#

its gone

charred monolithBOT
austere talon
#

wait thats not right

#

well someone else can fix it lol

#

gonn sleep

#

they also changed the apis

#

so it will always use dark theme which makes icons white on white theme

cunning canyon
austere talon
#

btw idk about CustomRPC

#

the class it was using is gone and profile activity doesn't use any similar class

#

it looks fine without it

#

well anyway i already released browser extension so showconnections is gonna have broken theme for now xd

#

shrug

cunning canyon
austere talon
#

oh

#

mmm

#

well need some other class then

#

or we could just apply the styles ourselves

charred monolithBOT
#

yep we already discussed about this in the past

my basic idea was to allow plugins to define white-/blacklists with a function similar to defineSettings:

const lists = defineLists({
	userWhitelist: {
		type: "user",
		name: "Users to log messages from"
	}
})

const isUsedWhitelisted = lists.userWhitelist.includes(someId);

this would then automatically add a context menu and settings ui for you and ![image](https://private-user-images...

charred monolithBOT
charred monolithBOT
crude hearth
#

Merge my pr

odd heath
#

Never

charred monolithBOT
crude hearth
#

Selfbot

charred monolithBOT
rugged spire
#

mee6 SKULL_SKELETON

lime stone
#

i love paying to change server prefix

rugged spire
#

SKULL_SKELETON lmfao

lime stone
#

can't even disable message based commands for free

charred monolithBOT
lime stone
# charred monolith

to use slash commands you'd have to load them and find the id by name i think

rugged spire
#

it shouldn't be too hard

lime stone
#

but maybe i'm wrong snailcat
in any case it would still be hardcoded for a specific bot, and if it was changed to be configurable it wouldn't work for bots without slash commands

rugged spire
#

what bots exist that do this

#

fuck

#

Trolled me when i remember there are bots that do this with a control panel channel and button interactions

#

good luck

lime stone
austere talon
#

installer rewrite in rust soon

rugged spire
#

just curious: how many of those are paid bots

lime stone
#

? none lol

rugged spire
#

i swear i remember some of those at least looking like they try to hide how to invite them

#

anyway

lime stone
#

or were you asking about which bots have configurable command names

rugged spire
#

nope

lime stone
#

so you did mean bots which don't yet support slash commands?

#

there are loads of them

rugged spire
#

not that either

#

anyway

topaz spoke
charred monolithBOT
#

yeah this is way too niche, sorry

especiiiially not mee6 i want nothing to do with that spawn of hell in the mod

(also for future reference, usage of their name in the plugin name or description would fall under fair use, as long as you don't make it seem like you're officially endorsed by mee6. "CommandsForMee6" would be fine, something like "Mee6Pro" probably wouldn't)

lime stone
#

i think it would be fine if you had a plugin which just had blank textboxes to put the command name

austere talon
rugged spire
#

@austere talon thank you for saying The Thing that I am too kind to say

lime stone
charred monolithBOT
rugged spire
#

i mean there was nothing stopping me from replying "||fuck mee6 lmao piece of shit bot husk nft grifter bullshit bot||"

lime stone
#

can't bots do this already

rugged spire
#

not for channels

#

users, yes

#

messages, yes

lime stone
#

ah

rugged spire
#

vee will see my comment i am about to post and immediately mark as spam because i am yapping about theoretical ideas and shit again

topaz spoke
#

native channel commands would be nice

topaz spoke
rugged spire
#

i should make a plugin to add slash commands to rename channels

#

use case: stupid fucking admin abusing admin perms while laughing too hard in vc reasons

lime stone
#

make a plugin to make built-in commands useable with prefixes blobcatcozy

lime stone
#

kinda

rugged spire
#

i could probably make this by modifying a regex

lime stone
#

i thought it would be funny to make a plugin which makes slash commands less terrible but it's impossible probably

rugged spire
#

i could try

#

OH

#

would anyone want the option to set defaults for command arguments?

charred monolithBOT
#

now if you made this more generic to work for any bot, that could possibly be considered

like being able to add custom command shortcuts to various context menus

potential idea for this could be a mod bot that allows you to quickly lock/unlock a channel

however i had this as an idea before (but with internal slash commands), where it would just overwrite the channel permissions directly, instead of using a mod bot (which would be... too overcomplicated?)

yes i am yapping again

topaz spoke
rugged spire
#

yapping above

topaz spoke
#

or maybe presets

rugged spire
topaz spoke
#

for slash commands

rugged spire
#

like

#

aliases?

#

FUCK

topaz spoke
#

like a template

lime stone
#

wdym

rugged spire
lime stone
#

optional commands

rugged spire
#

nop

#

i mean

topaz spoke
lime stone
#

**optional options

rugged spire
#

as user configurable

#

on the client

lime stone
#

the bot should make it configurable

topaz spoke
#

like VSCode snippets

rugged spire
lime stone
#

self-trolleyer

rugged spire
#

yes

#

i will trolley myself

#

btw

#

i will confess

#

made it

#

and just forgot about it

#

last night

#

Just want to confirm, Vencloud does NOT do any checking of what you upload to it?

#

I looked at the source

lime stone
#

this shows it does check

rugged spire
#

nop

#

this is client side

#

I mean on the server

lime stone
#

why should it

rugged spire
#

idk lmao

lime stone
#

you could upload bee movie script in any case

#

i assume there's a size limit though

rugged spire
#

there is

#

vee has explicitly told me there is a size limit before

austere talon
#

@cunning canyon any luck with the customrpc / ShowConns stuff? or did u give up

#

fellas

rugged spire
#

i love my screen being all messagelogger red deleted messages

lime stone
#

i wonder where slash commands permissions are retrieved from venniethink

#

sorry

cunning canyon
rugged spire
lime stone
#

i thought showconnections was already fixed blobcatcozy

rugged spire
#

It is

lime stone
#

..?

#

what is this then

austere talon
#

theme code is broken, it always uses dark theme (aka white) icons

#

they changed how the function works

#

i only fixed the find, not the usage

lime stone
#

riight

charred monolithBOT
#

plugin would be better if it wasn't designed for one specific bot (that is very much widely hated)

This was exactly my thought, but the plugin settings seemed too limited for that (i.e. only single-line textbox). Maybe a JSON format with presets for popular bots and a web UI to generate them would be a good idea - I'm open for any suggestions.

also use slash commands instead

For some reason they didn't work, maybe because I used the wrong message type.

charred monolithBOT
rugged spire
#

i will make quick themes

still wasp
rugged spire
lime stone
#

tbh

#

what's the point with user apps

still wasp
#

Shit i forgot those exist bruhsk

lime stone
#

they're gonna be non-ephemeral in all servers at some point i believe

#

discord has been doing experiments

still wasp
#

Esmbot vencord port that applies magik to every image you send

lime stone
#

somebody figured out a life hack which got themselves banned

#

(that life hack was actually an exploit for spamming)

lime stone
#

it's funny it lets you do multiline which still isn't supported with slash commands

#

this is a
test ¯_(ツ)_/¯

rugged spire
#

lmfao

lime stone
topaz spoke
#

this is a\n line break ¯_(ツ)_/¯

turbid hatch
#

the size limit isnt enforced on the client

#

that would be stupid

grave mangoBOT
rugged spire
#

is that actually the limit

turbid hatch
#

no its an example

#

the limit in production is different

rugged spire
#

is it higher than that

turbid hatch
#

im not going to disclose that

rugged spire
#

okay but can you answer this

turbid hatch
#

and anyway, there's no point checking what people upload to it because it's arbitrary data anyway, we cant check it and that would be an invasion of privacy

#

if you brick your own cloud data, thats your fault

rugged spire
#

am I able to fit a couple themes in that size

turbid hatch
#

if your themes arent ludicrously large, but you shouldnt really

#

there's a reason why theme links exist

rugged spire
#

how about splitting quickCSS off into it's own fake files

turbid hatch
#

regular quickcss doesnt hit the limit in almost all cases

rugged spire
#

surely that shouldn't fill up the cloud storage

turbid hatch
#

so

rugged spire
#

a little bit of overhead is fine

#

(for metadata)

turbid hatch
#

oh

#

huh

#

i thought that limit was changed

#

nvm it is 32mb

#

i thought i raised or lowered it because someone abused it for something

#

but no you have 32mb you can put in cloud storage

#

so go nuts i suppose, just dont cause memory leaks by doing that lol

rugged spire
#

32MiB is probably almost too much

turbid hatch
#

oh most certainly

rugged spire
#

or in other words

#

I am worrying about something I don't need to worry about

turbid hatch
#

it's the size of a few optimized executable files

#

so if you manage to hit that limit

#

i would be

#

concerned

#

and would most likely be bonking you off of the service for abuse lol

rugged spire
#

and if users install hundreds of themes into their client with this thing I am building

  1. you should not be doing it like that, this is for people who want quick css but better
  2. congratulations you win nothing
turbid hatch
#

mhm

rugged spire
#

i will kill vee for giving me brain rot

#
getSnippetList() {
    // is there any point of this being its own thing?
    return VencordNative.cssSnippets.getRawData();
},
#

here

#

husk this bullshit

lime stone
#

OH WAIT

rugged spire
#

nop

#

this is bullshit i wrote 5 minutes ago

#

that calls the thing just above it

charred monolithBOT
crude hearth
#

I still have a video uploaded in my vencloud blobcatcozy

crude hearth
austere talon
#

i will ban you

#

from using it

crude hearth
#

I might need that video

#

sometime

mortal fractal
#

mp4

austere talon
#

I waited 5 minutes already

#

average discord moment

crude hearth
#

it probably got stuck

austere talon
#

holy shit it finally started

crude hearth
#

wait a bit more

rugged spire
#

is this the "i must test vencord on windows official client" system

austere talon
#

windows so fucking awful

#

idk how i ever used this in the past

#

i was on it for like 10 mins and alr got cancer

odd heath
#

THAT IS SO REAL

#

tbh windows is still better than ubuntu trolley

mortal fractal
charred monolithBOT
charred monolithBOT
quaint sapphire
#

I'll send it here bc it doesn't really fit in #🏥-vencord-support-🏥 anymore


I wrote this monstrosity

#!/usr/bin/env bash

if ! command -v discord &> /dev/null
then
    echo "Discord is not installed."
    exit 1
fi

SCRIPT_LOCATION="$(realpath "$(which discord)")"
SCRIPT="$(cat "$SCRIPT_LOCATION")"
ASAR_FILE="$(echo "$SCRIPT" | grep 'app\.asar' -B 1 -A 2 | sed ':a;N;$!ba;s/\\\n/ /g' | awk '{ print $3 }')"

if ! test -f "$ASAR_FILE"; then
    # Failed to detect app.asar file
    echo "Fatal error, unable to find app.asar"
    exit 2
fi

NEW_SCRIPT=$(cat <<EOF
import "/home/arjix/Documents/repos/Vencord/dist/patcher.js";
import "$ASAR_FILE/app_bootstrap/index.js";
EOF
)

NEW_SCRIPT_LOCATION="${TMPDIR:-${TEMP:-${TMP:-/tmp}}}/.vencord.launcher.mjs"
echo "$NEW_SCRIPT" > "$NEW_SCRIPT_LOCATION";

SCRIPT=$(echo "$SCRIPT" | sed "s#$ASAR_FILE#$NEW_SCRIPT_LOCATION#")

AUTO_UPDATE="true"
if ! command -v git &> /dev/null
then
    # git is not installed, therefore we cannot auto-update vencord
    AUTO_UPDATE="false"
fi

if ! test -f /home/arjix/Documents/repos/Vencord/package.json; then
    # Vencord is not properly cloned, or missing.
    AUTO_UPDATE="false"
fi

# Forcibly disable for now
AUTO_UPDATE=false
if [[ "$AUTO_UPDATE" == "true" ]]
then
    pushd "/home/arjix/Documents/repos/Vencord" > /dev/null || exit 1
    git fetch

    if [[ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]]
    then
        git pull > /dev/null
        sudo -u arjix pnpm i
        sudo -u arjix pnpm build
    fi

    popd > /dev/null|| exit 1
fi

eval "$SCRIPT"
charred monolithBOT
quaint sapphire
#

but no, god said "fuck you in particular"

austere talon
#

bro

#

there are 6 different patches for settings category

#

only one of them broke: the one that's the default option

#

meanie discord

quaint sapphire
#

oh the patches to set where the vencord category appears?

austere talon
#

yes

quaint sapphire
#

oof

charred monolithBOT
rugged spire
#

is this just a coping mechanism for upstream discord

quaint sapphire
#

It also has updating functionality bc why not

#

But sadly it doesn't work

#

Because of the electron version(?)

#

Too tired for now, will try again tomorrow

austere talon
#

like i said unpackaged electron wont work

#

aka no discord-arch-electron

#

theres 0 reason to still be using that package

quaint sapphire
#

The normal discord package on arch is annoying

#

Whenever there is an update it wants me to update the package, but when I try it does not fucking do it, maybe the mirrors I am using do not have the new version within 2 days of the update

#

So I turned to smth I knew did not ask for package updates

austere talon
#

become vesktopchad

quaint sapphire
#

Meh, I prefer normal discord NGL

I've used vesktop a lot on my work laptop though

charred monolithBOT
austere talon
#

@cunning canyon i fixed xd

charred monolithBOT
austere talon
#

kinda amazing

charred monolithBOT
frail skyBOT
#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

austere talon
charred monolithBOT
limber skiff
#

google in shambles rn

#

having to review another update

austere talon
#

LMAOO

#

3 updates in 1w

#

i think they hate me now

#

they probably have some good diff program that can ignore variable name changes

limber skiff
#

I really hope they review using commit changes

#

because then it's so easy

median rapids
#

why does vencor have to be bundled with the extension

austere talon
#

well they dont ask for source code lol

limber skiff
#

WHAT

austere talon
limber skiff
#

wtf

austere talon
#

you cant have remote code

median rapids
#

how is tampermonkey allowed

limber skiff
#

how they review the bundled code

austere talon
#

i mean if they study it a bit they will find source code

limber skiff
#

are they crazy

austere talon
#

but yeah they dont ask for source

austere talon
#

user adds remote code

median rapids
#

make it so user adds vencor

austere talon
#

horro

median rapids
#

(pastes github link)

limber skiff
#

because if they have commit changes it's like a 1 scroll to see if there is a thing breaking a rule

median rapids
#

and just have a convenient default

#

of your repo

#

‼️

austere talon
#

like i could just build different code

limber skiff
#

well yeah

austere talon
#

but yeah google doesnt ask for anything

limber skiff
#

but poor then having to review those

austere talon
#

meanwhile firefox asks for full source code, build steps and even asked me to give them discord credentials for testing

limber skiff
#

imagine how many updates daily on extension

austere talon
austere talon
#

funniest thing is firefox has a cli tool to auto publish
but their cli tool doesnt publish source code

#

so i always had to manually upload source

limber skiff
#

horror

median rapids
#

man

austere talon
#

oh and

median rapids
#

i love half-baked developer tools

dapper tiger
#

Hi

austere talon
#

the reviewers are retarded like they flagged electron code thats not even bundled for firefox

limber skiff
#

we need a way to bypass chrome webstore updates

#

hide remote code execution

#

muahahahaa

austere talon
limber skiff
#

and then just eval vencord

austere talon
#

they flagged the electron code for removing csp

#

UWAAAAAH NOT ALLOWED 🥺

#

actually so funny

median rapids
#

bro 😭😭

grave mangoBOT
austere talon
#

yeah man im bundling electron into the firefox addon blobcatcozy

limber skiff
#

me when importing from electron

#

in browser

median rapids
#

just mangle the source so its too complicated for them

austere talon
#

so yeah i just started deleting the native files before submitting

but then they asked me for discord login credentials blobcatcozy

#

that is when i took down the extension

median rapids
#

you will give firefox your token

limber skiff
#

what else do they want

median rapids
#

also no way they want you to provide a free account lmao

limber skiff
#

a theme to test quick css

austere talon
#

idk what theyre thinking

lime stone
#

"please upload your dna for verification purposes"

austere talon
#

and then asking me for my account and more garbage

median rapids
charred monolithBOT
austere talon
wary dew
austere talon
#

lmao no rush u got all the time in the world

median rapids
#

what's the point of having 3 functions for that

wary dew
median rapids
#

typo bleh

limber skiff
#

workflow is failing in your pr

median rapids
#

yeah cuz typo

sterile oak
#

the addPreSendListener doesn't work anymore, is it just me?

while testing those two snippets

Vencord.Api.MessageEvents.addPreSendListener((_, ctx) => {
    let res;
    try {
        res = eval(ctx.content);
        if (res) res = res.toString();
    } catch (e) {
        return { cancel: true };
    }
    ctx.content = !res || res.length == 0 ? "no output" : res;
});
let e = document.getElementsByClassName("textArea_a86690 textAreaSlate__8578d slateContainer__1d1fd")[0];
Vencord.Api.MessageEvents.addPreSendListener((_, ctx) => {
    let { x, y, width } = e.getBoundingClientRect();
    Game.collectCookie({ clientX: (x + width + 60), clientY: y - 10 });
});
charred monolithBOT
spark pivot
charred monolithBOT
charred monolithBOT
crude hearth
#

You dont know how to use

#

Also you use 11 blobcatcozy

charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
charred monolithBOT
long stream
#

i wonder if it would be a good idea to show a message box for when the settings patch fails and there's an update available

austere talon
#

how would that be different from the existing update popup

austere talon
#

ye

long stream
#

it doesnt work xd

#

if you click on it it just shows you a blank page

austere talon
#

oh right cause it relies on the settings patch

#

the horror

long stream
#

which is why i suggested a fallback message box

austere talon
#

there's no good way to detect whether a patch worked or not

#

especially not the settings one

#

cause it patches lazy loaded stuff

long stream
#

not the greatest idea but i guess we could just assume that the worst happened if a core plugin like settings has a broken patch?

#

thoo that might become an annoyance on canary

charred monolithBOT
austere talon
#

we would have to make a rest api or smth

long stream
#

o i misunderstood my bad

austere talon
#

then uses that to disable plugins or smth

charred monolithBOT
austere talon
#

so it doesn't rely on settings

long stream
#

true

austere talon
#

it should be really easy to do

#

just slightly refractor the updater component to render in a modal

#

it's still possible that modal api breaks but it's unlikely that both modal and settings code break

long stream
#

inb4 discord pushes a change to canary that specifically breaks the modal code

real flower
#

ugh

#

time to unbreak it

long stream
#

it hasnt even been a day and discord is already trying to break the new patch

wary dew
turbid hatch
#

306158896630988801

#

@real flower how did you hsve your name

#

kaitlyn?

austere talon
#

but ill just push it with some later commit

turbid hatch
#

ill put it in dev

real flower
austere talon
turbid hatch
#

main?

austere talon
#

nah

turbid hatch
#

leave it?

turbid hatch
#

alr

#

i wont touch anymire

austere talon
#

its not relevant to have its own commit so it should just be tucked in with some other commit

charred monolithBOT
austere talon
#

google been approving these updates blazingly fast

turbid hatch
#

just like trust

#

rust

#

anyway yah i can have a look at the remote plugin disabling thing

#

with opt out of course

#

it'll be under the cloud section

#

i should get a new badge for myself

wary dew
turbid hatch
#

cloud guy

#

lmfao

turbid hatch
#

modal

charred monolithBOT
charred monolithBOT
charred monolithBOT
limber skiff
#

i knew it hah

subtle leaf
charred monolithBOT
frail skyBOT
#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

#
Bad Patches

None

Bad Webpack Finds

None

Bad Starts

None

Discord Errors

None

jagged reef
charred monolithBOT
turbid hatch
#

i hate people who do things just for a cool and shiny badge

#

especially when they clearly dont know how said badge works or is vendored

verbal pumice
#

(p sure you cant reopen issues closed by collaborators)

odd heath
#

(i think so too yeah)

lime stone
#

you can't

#

🤓

#

nerd emoji

glass jasper
austere talon
#

cant repro

odd heath
#

I love when people add themselves to contributors/devs for one patch change kannasip

austere talon
#

i dont even understand that pr

#

does nothing

long stream
austere talon
#

nop

crude hearth
long stream
#

then i might just have a borked install

crude hearth
#

the heck is that

austere talon
#

well i tried on vesktop canary

crude hearth
#

why would you put that

austere talon
#

i dont have normal discord canary

crude hearth
#

to make regex more hungry?

long stream
#

it probably wont change anything buut it might be worth a try

austere talon
#

idk if it has it

crude hearth
#

monkey patch on bencord when

#

actually I think there was one

#

webpack patch is monkey patch at least, even though its hand crafted

austere talon
#

no offense 😂 we have lives

#

oh i alr have canary installed lol

crude hearth
austere talon
#

why does canary tar.gz use stable icon

#

i think youre just crazy @long stream

long stream
#

mean 😭

austere talon
#

what do i set this to

#

inb4 windows only

#

are u on windows

long stream
#

ye

#

omg wait i just realized why its broken

austere talon
#

whys that

long stream
#

im so sorry I COMPLETELY FORGOT I ENABLED IT

#

😭

austere talon
#

oh yop

#

with it on its borked

long stream
#

it entirely removes the activity category

#

and moves everything that was there to a new tab at the top called "games"

austere talon
#

oh god theyre all the way up

long stream
charred monolithBOT
mortal fractal
dusk blaze
#

yeah when half of commits are "add me to devs" it means you're doing it for the contributor badge husk

odd heath
#

like come on go to plugin requests and make a plugin

#

theres your free badge (speaking of experience there)

charred monolithBOT
tepid knoll
charred monolithBOT
#

uhm, why close the pr when people are having issues with vencord settings not showing when below activity is choosed

because this pr does absolutely nothing.

settings were already fixed via https://github.com/Vendicated/Vencord/commit/89c82e2cd173b26b0eee938022afad5684e174cd

this pr just makes the regex longer, it doesn't even change anything. There is exactly one match anyway and the outcome is exactly the same

austere talon
#

😭

#

m,ean

odd heath
#

:3

#

I should rename on gh too