#🧩-plugin-development

1 messages Β· Page 42 of 1

sly whale
#

thank you so much

tribal helm
#

Lmao

dull magnet
#

what?

vivid shoal
#

nothing i was just linking to this in the other channel

frigid bay
turbid spruce
#

in a modal TextInput how can i make hitting the enter key do something?

viral roost
#

pretty sure there isnt a dedicated way to do that and you need to add an onKeyUp for it
as in jsx <TextInput onKeyUp={e => { if (e.key === "Enter") { // whatever } }} />

stiff cargo
#

onchange mayhaps

viral roost
#

thats only for text changes

#

doesnt fire on enter

stiff cargo
#

From my experience it does fire on enter on normal text inputs

#

oninput is used for continuous

turbid spruce
#

like for every letter typed

stiff cargo
frigid bay
turbid spruce
#

not really

#

im expressing confusion

stiff cargo
#

On normal html inputs it fires when the value has been changed and you click enter afaik

turbid spruce
#

that might be true

stiff cargo
#

But that may not be applicable here

turbid spruce
#

it aint

stiff cargo
#

Onkeyup is def better here though

viral roost
#

its likely true cause textinput uses the input element but yeah it fires on every text change and theres no way to know if it fired from an enter press or not

turbid spruce
#

does vencord have builtin support for the discord rest api or something similar? like if i wanted to add a quick react button that just reacts with a preset emoji?

viral roost
#

import { RestAPI } from "@webpack/common", there might be a better dedicated function for what you're trying to do but sometimes it might not be worth it to look for it

turbid spruce
#

so i can take a look?

viral roost
#

WhoReacted seems to be a good example, you can do a quick ctrl+shift+f for RestAPI in vencord's code

turbid spruce
#

oh hey i see

dull magnet
#

don't use raw restapi

#

use the addReaction function

turbid spruce
turbid spruce
mystic sable
#

Would this theoretically be a way to simplify macos installation of vencord if I have it run (psuedocode):

some code to determine the latest edition of vesktop, probably through either educated fuzzing or simply checking a file that can be modified through vesktop update client) 
git clone vesktop/1.X.X/vesktop.app
 basically there's this command that gives an exception to the file needing to be signed or anonymous so that here
idk that's it```
#

i mean tbf this would be super easy to run on my own machine but as macOS advanced user install it would be an interesting thing

#

i'd have to run some testing before full automation as i imagine (vesktop says "hey u should probs update bro" and gives u option to just run script and all it needs is for you to put in ur password when prompted)

low veldt
#

right so y'all know how there's a vencord plugin for urban dictionary

#

yeah is there a plugin with a command to convert your text to AlTeRnAtInG cAsE

#

if not, how can I make one

frigid bay
#

what's it called

low veldt
#

it shows you

frigid bay
#

interesting

low veldt
#

the urban dictionary definition

#

it's a plugin

frigid bay
#

what's the plugin called

#

more commands?

low veldt
#

anyway how do you make commands in a plugin

frigid bay
#

tells u how to start writing plugins

#

u can check how the commands work in the source code of the plugin ur talking about

frigid bay
#

github

#

vencord github

fathom carbon
#

is there any way to check if a user has streamer mode enabled?

frigid bay
#

i mean there has to be

glass oracle
#

current user, sure
other user, no

fathom carbon
#

how do i check if the current user has it enabled?

#

i dug around with devtools but can't find anything that seems to correspond

glass oracle
#

Vencord.Webpack.findStore("StreamerModeStore").enabled

#

took me 3 minutes

fathom carbon
#

tysm

glass oracle
#

yw

turbid spruce
#

ThIs Is An ExAmPlE

gusty maple
#

there is literally a command for it in MoreCommands lmao

clear parcel
#

no idea sorry, I've messed around very little with webrtc specifically

#

not risky but extremely hard bleh

#

also sorry for airing your pings, I've been rlly busy :/

turbid spruce
#

Can you make a custom tab like these with just a plugin?

turbid spruce
proud parrotBOT
dull magnet
#

this is how vesktop adds the vesktop section

jagged matrix
#

if i rename the labels and add it as a plugin would it replace the label names

#

time to fuck around and find out

#

thats

#

thats absolutely

#

fucking funny

#

it removes the section completely

dull magnet
#

what?

jagged matrix
#

i fucked around found out

dull magnet
jagged matrix
#

i then put it into my userplugins folder, built, and the section was completely removed

#

funniest shit i ever did

trail talon
#

no way i just overcomplicated something for the past 2 hours when its as simple as this

jagged briar
#

Invert some if statements and you good

#

Also you don’t need else if you have return

dull magnet
#

make ur variable names a little shorter this isnt java

trail talon
green vessel
#

hi

trail talon
#

w sleep schedule

green vessel
#

yuh

#

5:38am here

#

imma get some breakfast in 20min

trail talon
#

frrrr

green vessel
#

hiiii

jagged matrix
jagged briar
#

Store short for storage

#

So you just take them out of storage

#

No need to buy them

jagged matrix
#

aw man, you dont know how bad i need to buy bitches

jagged briar
#

Exactly

#

You dont have to buy them

#

You just take them from storage

jagged matrix
#

no

#

i NEED to buy them

#

i dont have any in storage

jagged briar
#

Oh lol

#

Gl

pure temple
#

alternatively,

if (!(notifyFor.includes(channelId)
    || (settings.store.receiveServerNotificationsFromFriends
        && RelationshipStore.isFriend(message.author.id))))
    return;
#

using variables at least means you can separate stuff in a clearer way without creating a pyramid

trail talon
#

Alr thats fair

#

Thank you

stuck herald
#

yes use variables please

spiral knoll
#

hey how does one load a custom plugin into the client?

junior cove
spiral knoll
#

thanks, it appears I was just blind lol

exotic valve
potent fox
#
CollabVM Wiki

What retards who refuse to learn an actual GUI framework use so they can write their apps in HTML. It's a bloated piece of shit with gigantic binaries (we're talking 60mb for a web installer that pulls the actual binaries from the internet), and is slow and memleaks into high hell.
Instead, you should learn a real fucking GUI framework (such as ...

austere mauve
#

wtf is this website

#

on many levels wrong

dull magnet
#

slow and memleaks

potent fox
#

its anarchy tech wikipedia

#
CollabVM Wiki

Damn Small Linux (DSL) β€” this is a silly but small distro made by a fan of Knoppix, it's one of those where you can't install an application using the terminal, but install all applications using the "mydsl" repository. After all, it was replaced by TinyCore Linux

#

wth dillo browser real

austere mauve
dull magnet
dull magnet
#

this sounds like studio retardation

potent fox
#

he can not write that

#

but this text is very true

dull magnet
#

edit wiki to say people should use crystal

potent fox
#

I would but it seems that they made wiki read only elved

#

this year or smthn

exotic valve
#

or or πŸ₯Ί πŸ‘‰ πŸ‘ˆ

dull magnet
#

i hate kotlin bitwise so much

#

u just gave me great paib

minor jolt
exotic valve
#

so i dont have to do ~(1 << x)

zenith drift
#

discord.py
anyone has any idea whats causing this shit to happen?
how the script works: i have a database that is changing multiple times in a second, and i have a message in a channel that i have to refresh when the database changes. I only want to edit the message when the new message is different from the old (bc otherwise i would get rate limited).

print(1, old_message)
print(2, new_message)
if str(self.last_sent) != str(self.node_board) and (self.time_edit+3) < time.time():
  print('through filter')
  message.channel.id = 1190011637084#####
  message.id = 1190067321402822658
  await message.edit(content = new_message)
  old_message = new_message
  print('edited')
  message_sent_time = time.time()
else:
  print('same')

Problem: when this script runs it makes some weird loop between await message.edit(content = new_message) and print('edited') . Most of the time it edits the message four times in the split of a second (attached picture)

#

it seems illegal

#

bc its not doing print('through filter')

#

but it's doing print('edited')

#

like how?

vast karma
#

Considering it prints through filter, startup: False and not just through filter, I assume the code above is not what's actually running

dull magnet
#

ya it can't be

#

make sure you saved your file

zenith drift
#

there is something with how fast im executing it

#

if there is a 1 second cooldown on the script like this: if str(self.last_sent) != str(self.node_board) and (self.time_edit) < time.time()

#

the loop will occur less

#

but it still happens sometimes, which causes a rate limit again

#

this is the actual script rn:

await self.reload()
print(1, self.last_sent)
print(2, self.item_board)
if str(self.last_sent) != str(self.item_board) and (self.time_edit) < time.time() or self.startup == True:
    self.time_edit = time.time()
    print('through filter, startup: ', self.startup)
    self.startup = False
    message.channel.id = 1190011637084725349
    message.id = 1190096676191485983
    text = '\n'.join(f"-{item} | " + self.item_board[item] for item in self.item_board)
    embed = discord.Embed(
        title="items",
        description=text,
        color=discord.Color.random(),
        timestamp=datetime.datetime.now())
    embed.set_footer(
        text="12-15 seconds between item refresh"
    )
    await message.edit(embed = embed)
    self.last_sent = self.item_board
    print('edited')
else:
    print('same')
thorn drift
#

i dont see a meme channel so this will have to do

steady knot
#

everything is chrome in the future

thorn drift
#

i refuse - i started using firefox in 2005 😎

#

we dont talk about the years I used IE and chrome πŸ’€

#

chromium isnt that bad but google is pretty evil these days

thorn drift
rocky jackal
#

I liked legacy edge

#

like, a lot

vast karma
#

Eh, nothing wrong with having bad taste

opaque crest
opaque crest
thorn drift
#

c++ and imgui + some other libraries can also achieve the same thing but with way better performance if it is needed

thorn drift
green vessel
#

nah jk

thorn drift
#

its better than it used to be

#

but not a browser sorry

green vessel
thorn drift
#

chromium based its pretty decent these days

#

more spying than i like but that's pretty much every browser now

#

πŸ’€

opaque crest
# thorn drift pascal binaries can be compiled for literally every platform from the last 40 ye...

that means that people should learn and write code in pascal, right?

is there a transpiler or something similar to make things easier/acceptable to people who code in TS nowadays, for example?

i will not judge pascal because i have never written a single line of code in this lang, but common people will immediactly reject the idea of change entire ecosystem and other things to adopt a new lang

exotic valve
vernal grove
exotic valve
vernal grove
#

yk whats better

#

making discord/vs code on assembly

opaque crest
#

i use vim btw

vernal grove
#

vim.... vim.... i hate it deep from my heart

opaque crest
#

vim doesnt have a madoka theme

it's over.

vernal grove
#

yo vim user

#

i got a challenge for you

exotic valve
vernal grove
exotic valve
#

assembly is too high level

opaque crest
vernal grove
#

heh

#

wsl

exotic valve
#

arch on wsl is cursed

opaque crest
#

absolutely

exotic valve
#

ive never seen a wsl that isnt ubuntu

vernal grove
#

same

stuck herald
trail talon
trail talon
# exotic valve assembly is too high level

01110010 01100101 01100001 01101100 00100000 01101001 01101101 01100001 01100111 01101001 01101110 01100101 00100000 01101110 01101111 01110100 00100000 01110101 01110011 01101001 01101110 01100111 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00100000 01110100 01101111 00100000 01100011 01101111 01100100 01100101

exotic valve
opaque crest
exotic valve
#

ah yes because your cut off is in early 2023 you cant apply the rules from advent of code 2022

trail talon
stuck herald
#

is that fortran card ?

opaque crest
#

it's a punched card !!

frigid bay
#

why did u punch it

paper wraith
#

.

thorn drift
opaque crest
frigid bay
#

yeah why did u punch it

#

what did the card do to u bro..

dull magnet
vast karma
#

Html/css is nice

#

Js sucks

dull magnet
#

also no way you named pascal as an alternative

#

the alternatives are smth like qt, gtk, winforms, etc

#

none of these are remotely as portable as web

#

and imguis are not proper alternatives. they're mostly good for games

#

making a major ui in an imgui is painful

austere mauve
thorn drift
#

you try and run a basic js app on anything over 20 years old and it just crawls

austere mauve
#

are you 80 years old

#

by any chance

thorn drift
#

no but I get angry when software is 200x more bloated than it needs to be for literally no reason

austere mauve
#

the reason is Its Convenient

thorn drift
#

pascal is convenient too 4kinconvenience

#

you don't even have to know how to code, we have visual app builders

austere mauve
#

nvm yeah 80yo mindset

thorn drift
#

so only old people are allowed to want fast apps that don't waste millions of cycles doing nothing?

austere mauve
#

yea

#

actually

thorn drift
#

the future is doomed πŸ’€

austere mauve
#

theres a reason no one is microoptimising every single thing down to the core

dull magnet
thorn drift
#

because its more than fast enough

dull magnet
#

clearly not if you're complaining about people not using your dead boomer lang for "performance"

thorn drift
#

... I'm going to choose not to be rage bated rn

austere mauve
#

shoo

dull magnet
#

have you ever made a decently sized gui app in pascal @thorn drift

thorn drift
dull magnet
#

if you've never actually made anything then u kinda have no right to talk im ngl

thorn drift
#

the GUI is really easy I have no clue how to write logic

dull magnet
#

i made vencord installer with dear imgui (go bindings) and i hated every second of it

#

it's a pain

#

html / css is way way nicer to use for developers

thorn drift
vast karma
#

The easy part yeah

austere mauve
dull magnet
#

true

thorn drift
austere mauve
#

what

thorn drift
#

its rust with 100% less rust

austere mauve
#

it is rust?

thorn drift
austere mauve
#

oh my god

thorn drift
#

whats the problem now

austere mauve
#

this shit dont even got docs

thorn drift
#

you just use the rust docs lmao what

#

its LITERALLY rust

austere mauve
#

then what is the difference

thorn drift
#

the project leaders aren't clowns

#

also they test stuff more before merging

austere mauve
#

sorry im losing braincells

thorn drift
#

don't need em anyways SmileW

austere mauve
#

do you have any idea of how long the process of merging a pr is in rust

#

fuck you MEAN no testing

thorn drift
#

so to be clear here, they merge stuff like maybe twice a year

#

rust got something merged 6 minutes ago

dull magnet
#

now you're just yapping

#

frequency of merges has nothing to do with stability

austere mauve
#

man if only you could make stable releases

dull magnet
#

and the master branch isn't what you're using anyway 😭 ^

austere mauve
#

and have things be tested in unstable versions

slow charm
#

fellas is it bad to merge prs

gusty maple
#

Very bad

dull magnet
#

if you think the fork of some random guy is more stable and tested than rust that's literally overseen by a large collective of maintainers and users you're delusional

slow charm
#

vencord is so stable no prs ever get merged

thorn drift
slow charm
#

have you ever used rust or are you just talking to talk

thorn drift
#

i don't like rust because i said so - I'm bored 3Heading

austere mauve
#

its new and shiny ofc he wont like it

uncut lantern
#

is there a way to remove every possible thing from the service worker? i removed it and its still cached

#

anyways to uh remove it

thorn drift
vast karma
#

Being half a year out of date is not a benefit, I don't understand why you seem to think it is

slow charm
#

have you ever used zig either

thorn drift
dull magnet
#

zig is cool cause random techfluencer said so

#

im so clever guys

austere mauve
#

zig is cool cuz it hasnt had drama yet

thorn drift
dull magnet
#

zig looks like rust at home

thorn drift
#

oh boy its the netflix guy

austere mauve
#

see u recognise this person i have no idea who they are

thorn drift
#

not a big fan

#

its funny when he rants about microservices for 30 minutes though

austere mauve
#

zig is NOT safer

dull magnet
dull magnet
austere mauve
#

there's undefined behaviour everywhere

slow charm
#

zig is glorified c

dull magnet
#

rust is very unsafe because i was using it once and suddenly 3 crabs started poking my butt

#

not cool

vast karma
#

That's a feature, not a bug

austere mauve
#

yuo're supposed to pet the cab

vast karma
#

Crustaceans aren't bugs, that's basic biology

austere mauve
#

🫳 πŸ¦€

slow charm
#

aabiy

thorn drift
dull magnet
#

im eating crab chips rn

#

thoughts

#

@austere mauve

austere mauve
#

WTF

thorn drift
#

is it yummy?

dull magnet
#

yeah

austere mauve
#

i will pinch out every piece of your body out and grind them

thorn drift
#

are you a crab Crab

slow charm
#

i had shrimp chips recently

vast karma
austere mauve
uncut lantern
#

can i say a hot take

thorn drift
#

lets have it

uncut lantern
#

crystal is a good lang

#

for everything

thorn drift
#

it seemed pretty neat

dull magnet
#

coldest take

thorn drift
#

hold on imma cook up a really hot take

austere mauve
#

u burnt all ur takes already

thorn drift
#

99% of "web3" can be done without blockchain

austere mauve
#

get his ass off the kitchen

thorn drift
#

at least i don't think 640k of ram is enough for all of time

potent fox
austere mauve
potent fox
#

but there are ui freamworks that let you design stuff with designer

#

like qt, winforms, WPF

dull magnet
#

html blobcatcozy

thorn drift
#

imgui has 2 main graphical designers but the output isn't pretty

potent fox
#

100mb memoryu

dull magnet
#

writing ui in html / jsx is a breeze

#

amazing

potent fox
#

you are insane

austere mauve
#

maud::html!

potent fox
#

I also hated every second of writing ui in aliucord

#

but xml is blobcatcozy

thorn drift
#

i wonder if someone could make a gui with lisp - i google

potent fox
#

@dull magnet

austere mauve
#

duh

#

racket lisp

dull magnet
potent fox
austere mauve
#

you literally write pascal how the fuck are you surprised at lisp

potent fox
#

I dont hate html css completely

thorn drift
potent fox
#

I HAAAATE THE ECOSYSTEM

#

CHROMIUM INSTANCES

#

BINARIES

#

DIEEEE

austere mauve
#

its NOT

vast karma
#

Android ui is a billion times worse than jsx

potent fox
#

nop

vast karma
#

Performance, don't know don't care. But writing it? Paaaain

minor jolt
#

the year is almost 2024
java STILL cannot have abstract static methods
sirs ?

austere mauve
#

kotlin

#

probably

thorn drift
#

still waiting for WASM to take over and end my pain

austere mauve
#

wasm kinda sucks as is

vast karma
#

Which class would you call them on

minor jolt
austere mauve
#

you need js glue code

austere mauve
#

forgot u dont know anything u say

minor jolt
# vast karma Which class would you call them on

have abstract class
want to define a class method (eg like an overloaded "constructor" that returns an instance)
want to override said class method in the class that extends the abstract class
want to use abstract class as a generic somewhere else
closest thing to this is method hiding, but it's kind of counter-intuitive

dull magnet
#

that makes no sense

potent fox
#

android might have one of the best ui kits in the world tbh

vast karma
potent fox
#

I dont get how people are so fan of jsx

dull magnet
potent fox
austere mauve
#

components are a good way to organise code and jsx allows you to have them in the same place

potent fox
#

I bet ven also prefers kotlin c*mpose

austere mauve
#

vee would make a react native app

potent fox
#

true

dull magnet
vast karma
dull magnet
austere mauve
#

told you

dull magnet
#

androd studio so bad
gradle so bad

slow charm
#

hop on flutter

dull magnet
#

but i would not touch react native

#

malware

potent fox
#

NOT FLUTTER

dull magnet
#

flutter better

slow charm
#

flutter was terrible but i actually do like it now

austere mauve
#

i will make android discord client in bevy

slow charm
#

performance wise

austere mauve
#

it will run at 2400 fps

potent fox
#

@dull magnet make react native really native when

#

it will compile into machine code instead of h*rmes

dull magnet
#

it is native

minor jolt
#

for me it's apache cordova GigaChad

dull magnet
#

it uses native components

potent fox
#

and will have worse performance

austere mauve
#

android machine code is java

runic talon
dull magnet
#

what is that question

#

because it isn't

runic talon
#

what's a platform you want to run it on that it doesn't run on?

potent fox
#

is qt not portable

#

I mean sure it wont work on web browser but other than that

minor jolt
#

web has truly won at this point. it's pretty much what the JVM bros were envisioning for 20 years

potent fox
#

doesnt it work on all popular platforms

dull magnet
#

web runs everywhere and all code you write is guaranteed to be portable

#

lots of native libraries are os specific or even architecture specific

runic talon
#

that's why abstractions exist

dull magnet
#

you have to write different implementations for different systems

#

the abstraction is javascript

potent fox
#

you are soooo lazy

#

arent there some abstraction libraries

#

wonder

runic talon
#

that's runtime abstraction so it sucks

potent fox
#

javascript isnt really the abstraction

austere mauve
#

also compiling qt for windows is not sane

#

if you want a standalone app

potent fox
#

well maybe it is but at the behind of scenes billion functions are written for each platform

dull magnet
#

claiming qt is as portable is web is just delusional

#

there's nothing more portable than web

austere mauve
#

the abstraction are the web apis

potent fox
#

if it runs on macos windows and linux

#

enough for me idk

runic talon
#

^

potent fox
#

also noone uses direct web apps on mobile

runic talon
#

you won't run the same shit on Android anyways

#

yeah

dull magnet
#

can u use qt on androd and ios

#

without it sucking

runic talon
#

not really but you wouldn't use web either

dull magnet
#

you would

#

i use several pwas

potent fox
#

actually I think steam link app on quest was qt

runic talon
#

you are the exception then

minor jolt
#

Broke: I will write for web to be portable
Woke: I will write for UWP to be portable

austere mauve
#

in an alternate timeline scheme lisp wouldve been the language of the web

vast karma
#

You're all missing the point of web apps, that you can try them out without installing shit

austere mauve
#

truly a horrible timeline we live in

dull magnet
# runic talon you are the exception then

According to BuiltWith, PWA is used by over 22,000 customers' websites as of January 2023. According to Smashing Ideas, businesses that transition to PWAs often experience a notable boost in engagement, ranging from a minimum of 20% to as high as 250%

slow charm
#

sexpressions in your browser

austere mauve
#

real

#

unironically much better bc compiling things to a lisp is muuuuuuch easier

potent fox
austere mauve
#

tc39 would be GONE

#

DEAD

#

i am the anti-tc39

runic talon
#

performance on mobile for me is even more important than on desktop

#

as nobody makes good phones anymore since the S5

austere mauve
#

web performance will always be good on mobile unless you're really silly

runic talon
#

but I am heavily biased as I never met anyone using PWAs voluntarily

dull magnet
#

now you have

minor jolt
#

same I prefer pwas where available

potent fox
#

YEEEES

runic talon
#

my stance on this topic is, if you like web because it's simple to use then use it

#

but if you are a multi million dollar company then you should spend some bucks on making the damn thing lean

#

and as a user, I will always pick a native program over a web one, because I know it will work better

floral plaza
#

it will work better
honestly depends on the company

runic talon
#

I mean sure, it's not a rule

#

but it's mostly true from my experience

dull magnet
#

you do realise if it wasnt for electron/cef there likely wouldn't be official linux clients for a lot of programs

#

discord, spotify, etc

minor jolt
#

web bad. black box binary native app good

runic talon
# dull magnet why

because if it's easy or not doesn't matter anymore, you aren't building the thing, your programmers are

vast karma
#

Also significantly easier to mod js than x86

minor jolt
#

^

#

beat me to it

vast karma
#

Which corporations probably don't see as a benefit but

runic talon
#

then it's not an issue :p

austere mauve
#

not profitable they dont care

runic talon
#

Telegram does that, it's a proprietary service, but they have open source clients anyways

#

their clients are also damn good (compared to Discord, yuck)

vast karma
minor jolt
#

lol

runic talon
exotic valve
#

wait i forgot updates are a thing that apps need sometimes

potent fox
#

but thats also funny

dull magnet
potent fox
#

billion dollar company cant make a native app

dull magnet
#

it's not that they can't

#

it's that it's not profitable

potent fox
#

are you sure

#

just developing one native app

runic talon
potent fox
#

is gonna impact their profit?

dull magnet
#

yes

potent fox
#

fake

#

they dont need 500 developers for şinux client

minor jolt
#

I mean not developing a native app is free and developing one costs money so

dull magnet
#

work on one codebase that works everywhere vs work on multiple different codebases

#

the speed at which you can push out features becomes much slower, you need to hire more developers, etc

potent fox
#

developing a native app isnt that hard

vast karma
#

That's what capitalism is about

potent fox
#

just look at telegram also

#

c++ qt app

#

pretty decent ui

#

cross platform

#

is it really hard to do that

vast karma
#

It's harder than not doing that

minor jolt
#

It's hard to maintain probably, developing a commercial app is not the same as throwing something together in Qt for GitHub, it needs planning, timelines, QA etc. Needs to keep up with internal API changes, needs loads of testing due to the diversity of ecosystems that it can run on etc I guess

potent fox
vast karma
#

Exactly

#

You get it

potent fox
#

and you are defending that

#

you dont care about ux

vast karma
#

I'm saying corporations care about money

potent fox
#

I personally dont want another discord

runic talon
#

they just so happen to also make the client open source

#

it's definitely a smaller company than Discord is, but they are a company

minor jolt
#

how does telegram even make money ?

#

weren't they funded by the russian state at some point

potent fox
#

maybe premium

potent fox
runic talon
#

they have a "Nitro" equivalent, other than that idk

potent fox
#

you are just lazy to develop any nativeapps

#

and want to go easy way and ship 300mb electron to everyone

runic talon
#

being lazy is fine by me

minor jolt
#

idk man it's always comfy in webland

#

native scary

runic talon
#

for a personal project it's up to you what you choose

#

and nobody can tell you otherwise

#

I might not use your project because I don't like running yet another instance of Chrome, but that's okay

#

I'm just not the target audience and that's all

minor jolt
#

imo the biggest hurdle is testing and compatibility with so many different platforms. like people develop native for iOS because it's nice and straightforward

#

but developing native for windows/linux eh

#

especially linux

dull magnet
austere mauve
#

manti loves im making blazingly fast game

potent fox
vast karma
#

"Native" on linux isn't even a thing
On some DEs qt is native, on others gtk

dull magnet
#

its funded by its ceo, a billionaire, throwing his money at it

vast karma
#

Though that's about ux, not perf

austere mauve
#

πŸš€

potent fox
#

telegram is insane

#

2gb upload size for everyone

austere mauve
#

(its actually all debug symbols dont kill me)

potent fox
#

compile for release alhamdulillh

dull magnet
#

its ceo has too much money

austere mauve
#

my cpu is so old

dull magnet
#

telegram is the perfect example of a company throwing their money away and making no profit

#

so tbh comparing other companies to it isn't really a fair comparison

austere mauve
#

it takes half an hour to compile without incremental build

potent fox
#

eitherway I doubt its really that hard to create a crossplatform qt app

dull magnet
slender osprey
dull magnet
#

different implementation for each platform

#

that's lots of effort to develop and test

austere mauve
dull magnet
#

and makes it easy to introduce small bugs or uninconsistencys that are more annoying than electron app

#

i think 99% of users don't even care that it's electron

but they would care about inconsistencies

potent fox
dull magnet
#

literally take vencord installer as an example

potent fox
#

is this really extreme effort

dull magnet
vast karma
#

Most probably don't know what electron is

austere mauve
#

yes

potent fox
#

on crossplatform at most you need consider file paths, permissions and several other stuff

#

not like you are gonna write rendering engine

austere mauve
#

i dont use windows why do i need to test and implement smth for it

potent fox
#

written in golang with imgui on CGO

minor jolt
#

vencord installer crystal rewrite when

dull magnet
#

lewi did web rewrite of vencord installer

#

will probably finish and merge soon

#

webview library

potent fox
#

btw dont you need to write platform specific stuff on vencord installer eitherway

#

since discord paths

dull magnet
#

still in go so we don't have to rewrite the logic

potent fox
#

also I dont really mind webview on programs as long as its not something critical

austere mauve
potent fox
#

it usually uses system webview, doesnt take much space and I only use once a year

#

but for discord fear

minor jolt
#

btw can crystal compile for windows or did they not do that yet

potent fox
#

guh I hate how steam went full webview route

#

now it can use up to 1-1.5 gigs of memory

#

(its sitting on 900mb while I am not doing anything)

austere mauve
#

true i hate it

minor jolt
#
The Crystal Programming Language

With the release of Crystal 1.9, the compiler and the standard library have made a big step towards tier 1 support for x64 Windows with the MSVC toolchain. While an official Windows release isn’t ready yet, only few outstanding issues remain and we expect them to be resolved in the following months. This post is a brief overview of what 1.9 has ...

austere mauve
#

the worst part is memory usage doesn't go away even if ui is closed lol

vast karma
#

One would expect a gaming platform to try to not eat valuable resources

minor jolt
austere mauve
#

i think it was cef before

minor jolt
#

it still is

austere mauve
#

huh

#

what changed

minor jolt
#

they removed some of the older stuff for friends, settings etc and put everything as web

potent fox
#

library and friends were react

#

now they made entire ui react

#

also in game ui

#

(it now runs like shit and displays the ingame timer wrong all the time)

minor jolt
#

old big picture was also web though wasn't it

potent fox
#

not sure

#

might be vgui

austere mauve
#

are we talking about the same react

minor jolt
#

im pretty sure it was web, i don't remember how i reached that conclusion though

#

maybe @silver cave knows

austere mauve
#

library is native

potent fox
#

aaaagamer

minor jolt
#

steam is just chilling for me

potent fox
minor jolt
#

idk

vast karma
#

Makes it impossible to know how much ram it actually uses

minor jolt
#

opens calculator

#

blame cef probably

#

time to ask chatgpt to write me a simple html frontend

potent fox
#

valve earns hundreds of thausands of dollars every day while being private company and they make a terrible CEF implementation

dull magnet
#

the steam app is good though

#

wdym

potent fox
#

app is good

#

resource usage isnt

dull magnet
#

it's pretty small

potent fox
#

also new in game ui is still buggy trolldayruined

minor jolt
#

idk why it uses that much for you

dull magnet
#

do you prefer epic games launcher

potent fox
minor jolt
#

you mean overlay ?

dull magnet
#

why would it use 1gb

#

insane

#

mine uses nothing noob

minor jolt
#

overlay is kind of buggy nowadays actually, also they still have that horrible bug if you have integrated graphics enabled along with dedicated where it takes like 1 minute to open if you open it from taskbar or icon

potent fox
#

epic games is webview too

#

webview on top of unreal engine

#

now it destroys both cpu gpu and memory

minor jolt
potent fox
#

but I have a laptop I cant disable igpu

minor jolt
#

does it have both i and dedicated

potent fox
#

yes

minor jolt
#

lmao

#

it's over

potent fox
#

but dont have mux siwtch

#

screen comes from igpu

minor jolt
#

oh

#

actually unlucky

potent fox
#

not really unlucky

#

its how it is in most laptops

minor jolt
#

yea idk how that even happens that reddit post is from 1yr ago

#

i mean unlucky with the steam bug

potent fox
#

yea

minor jolt
#

it still has not been fixed

potent fox
#

@silver cave wake up

minor jolt
#

i only found out about it because i wanted to use moondeck to stream to my deck from sunshine and the launcher would think the stream has died since it took too long to start

#

and the dev told me to disable ig

#

fun fact if i disable it in device manager i can still use my motherboard hdmi out to drive a second monitor but it's just kind of sluggish since no acceleration

#

so i can still use it for discord etc

#

sometimes if i reboot the second monitor will get stuck on the mobo logo and i have to enable-disable it again in dev manager to refresh

uncut lantern
#

some parts arent updated in ages

dull magnet
#

Keep Linux open and free

#

because oracle is known for being pro freedom and openness

potent fox
#

yop

silver cave
#

panorama

minor jolt
#

lol so it's just cut down web

potent fox
#

helo

silver cave
#

js with a custom rendering engine and custom css engine

minor jolt
#

valve went through the trouble of writing all that

potent fox
silver cave
#

uses xml instead of html as well

silver cave
#

csgo uses it cs2 might use it

potent fox
#

we need to get rid of javascript

dull magnet
#

@potent fox what if i told you you can write web ui in xml

silver cave
#

mantika on his quest to eradicate javascript

potent fox
dull magnet
#

if you want

dull magnet
#

but not necessarily

potent fox
dull magnet
#

okay so only xml is that right

potent fox
#

WAIT

#

NO

dull magnet
#

create a new xml file and name it index.html and get started

potent fox
#

there isnt really any difference between xml and html right

minor jolt
#

<script type="application/c"> with JIT compiler

#

btw

vast karma
minor jolt
silver cave
#

however

#

xhtml

#

is just xml html

#

@dull magnet

viral roost
#

jsx to html compiler when

silver cave
potent fox
#

so yes

silver cave
#

xhtml

potent fox
#

STOP BRINGING DUMB STUFF

#

WHAT IS THAT

#

this is just html but with terrible standart urls

vast karma
#

Yep

#

There's a reason it's dead

potent fox
#

okay this is good

#

iq requirement went from 10 to 20

#

I think this should be a thing in html too

silver cave
#

xhtml is funny because for the most part if you have any errors you get GIANT RED ERROR BOX

potent fox
#

otherwise it becomes a bit confusing

minor jolt
#
silver cave
#

NO

#

MARIOS

#

NO

potent fox
#
["table",
{
"class" : "MyTable",
"style" : "background-color:yellow"
},
["tr",
["td",
{
"class" : "MyTD",
"style" : "border:1px solid black"
},
"#550758"
],
["td",
{
"class" : "MyTD",
"style" : "background-color:red"
},
"Example text here"
]
],
["tr",
["td",
{
"class" : "MyTD",
"style" : "border:1px solid black"
},
"#993101"
],
["td",
{
"class" : "MyTD",
"style" : "background-color:green"
},
"127624015"
]
],
["tr",
["td",
{
"class" : "MyTD",
"style" : "border:1px solid black"
},
"#E33D87"
],
["td",
{
"class" : "MyTD",
"style" : "background-color:blue"
},
"\u00A0",
["span",
{ "style" : "background-color:maroon" },
"\u00A9"
],
"\u00A0"
]
]
]
silver cave
#

oh my god

potent fox
#

whoever thought this

silver cave
#

horrible

potent fox
#

deserves to disappear

potent fox
#

we need ProtoBufMarkupLanguage

silver cave
#

NO

#

WORSE

#

valve would use

#

they love protobuf

potent fox
#

yop

silver cave
#

they use protobuf for like half the stuff in the steam ui

vast karma
silver cave
#

valve loves jspb

silver cave
#

actually yeah same structure

#

pretty much

#

but it's at least done by a compiler

potent fox
#

if html is good why people are making crappy rip offs

silver cave
#

haml is funny

potent fox
#

nobody deserves this

silver cave
#

unfortunately rails

#

so it's deranged

#

look at pug

potent fox
#

pug?

minor jolt
#

wow that is deranged

silver cave
#

WRONG ONE

vast karma
potent fox
#

hm

#

python for html

#

needs more ":" tho

silver cave
#

LOL

minor jolt
#

i would unironically write this

potent fox
#

I think they put the wrong image

vast karma
#

No that's the right one

dull magnet
potent fox
#

and for some reason these guys added react integration

dull magnet
potent fox
#

which means they thought someone was gonna use it with react

potent fox
#

bash html

#

maybe html isnt so bad

silver cave
potent fox
#

@dull magnet I believe you

#

you can create the worrst html ripoff

#

make perlml

#

html with perl syntax

dull magnet
#

htmlsp

minor jolt
#

i like how the decky store preview page is Vue but the admin panel is react (a lot of their functionality overlaps)

#

btw @silver cave it's down again lol

potent fox
#

I dodsed (I did not)

vast karma
minor jolt
#

funny that you mention it, we probably getting ddos'd again

dull magnet
#

i ddosed it

potent fox
#

wholesome

minor jolt
#

thank you kind stranger

silver cave
#

database explode?

minor jolt
#

idk

#

i have to finish the java shit that deadlines in like 2 hours i do not have time to check lol

dull magnet
minor jolt
#

@silver cave can you go and switch it to the static json caddyfile again

silver cave
#

I'll check it soon

potent fox
silver cave
#

we use sqlite

#

we have a backup of the /plugins json incase the server explodes

#

which we can just serve with caddy to keep clients working

potent fox
minor jolt
#

ddos

#

we should migrate to mongodb

dull magnet
#

DONT USE MONGODB

dull magnet
#

it's mostly for low traffic services and offline use

#

postgresql, mariadb and similar are much more production ready

exotic valve
dull magnet
#

but tbh i doubt decky gets that many requests that sqlite bottlenecks

supple shore
minor jolt
#

our whole database can fit in a 35kb json

#

we're using sqlalchemy maybe thats a problem who knows

cedar marsh
#

I learned mongoDB for an internship and never craved SQL more in my life more

dull magnet
#
<div class="inbox-notifications__item-description">
                
            
            
            
            
            
            
            

            
                
                
            
                
                
            
                
                
            
                
                
            
                
                
            
                
                
            
                
                
            
                
                
            
                
                
            
                
                
            
                
                
                    
                        <strong>person</strong> replied to your shout on <strong>person</strong>'s profile.
                    
                
            
        
            </div>
#

lastfm html so sane

#

(im scraping lastfm)

oblique lark
#

person replied to your shout on person's profile.

minor jolt
#

I remember back in 2018 I ran web discord in chromium on lubuntu on a Pentium 4 with 1gb of ram

#

I wonder if its possible in current year or discord has gotten too heavy

#

does chromium even get 32bit releases still

trail talon
stuck falcon
#

Is building a TOTP authenticator a good way to learn basic cryptography stuff?

potent fox
#

@dull magnet dont forget

plucky dove
cedar marsh
#

Why?

viral roost
#

shitty "protest" aganist the new mobile layout

#

people who do it are fucking dumb

dull magnet
junior cove
#

They barely changed the layout though. I'd say the changes that were made were worth it for the media, links, and files pages

potent fox
#

I just sent because funny

oblique lark
#

see the only way to make discord a better platform is to fuck up their servers with data requests. clearly

potent fox
#

true

austere mauve
#

also it wont do anything

#

except delay data exports for people who actually want them

potent fox
plucky dove
#

we share a braincell

frigid bay
turbid spruce
vast karma
#

How what works? How it's put there? The tooltip? How it knows the user's time?

turbid spruce
#

Oh hey i got it

#

yeah it was because when i was doing it i forgot the patch πŸ€¦β€β™‚οΈ

vast karma
#

Without patches things tend to not happen very much

turbid spruce
#

yeah ive found out by now

#

the amount of times i forget to include the patch is insane

vast karma
#

You can sometimes make useful plugins without patches, but it's uncommon

exotic valve
#

@dull magnet if i fully write and train an ai on advent of code by myself and use it to get #1 is it cheating

vestal quartz
#

what if every line of the code had comments explaining what each individual line did

exotic valve
jagged briar
#

it was getting repetitive

stiff cargo
exotic valve
potent fox
#

One another year has passed

#

But timezonedb plugin still hast got merged

amber mantle
#

timezonedb has been superseded

viral roost
#

has it actually been a year since timezonedb

potent fox
#

ven is SCARED of this

junior cove
#

I think they're just waiting for you to ask for review a few more times

potent fox
#

only 70mb/s

#

never cat 250mb file

cedar marsh
cedar marsh
potent fox
#

its in vencordplus blobcatcozy

viral roost
#

gonna make vencordminus which is vencord but just the πŸ—Ώ plugin

vast karma
#

That's the important part

green vessel
#

real coding

stuck jolt
#

its that but half the time it just doesnt work

dull magnet
#

@potent fox

function p(k) {
    return new Proxy({}, {
        get: (o, r) => {
            if (r === "valueOf") return () => k;
            return Object.hasOwn(o, r) || typeof r !== "string" ? o[r] : p(k + r);
        }
    })    
}

module.exports = function run(func) {
    with (new Proxy(globalThis, {
        has: () => true,
        get: (_, key) => key === "func" ? func : (Object.hasOwn(globalThis, key) || typeof key !== "string" ? globalThis[key] : p(key))
    })) {
        eval(func.toString())()
    }    
}

stray imp
potent fox
#

But funny concept trolley

exotic valve
#

kotlin runs on all of the devices

opaque crest
#

kotlin ruined a whole generation

steep vapor
#

kotlin deserves EoS

steady finch
#

Hi :3
is there a way to make native HTTP calls inside a vencord plugin ?
i might need it to make requests that are blocked by CORS (not my server so can't change allow them there)

floral plaza
silk falcon
#

how do i install this actually

nocturne raptor
#

anyway to have MoreUserTags to correspond to role color?

mental orchid
#

No idea what would be the correct channel for this question,
so I'm just gonna ask here: Is there a beginners guide on how to create a Vencord plugin?
To my understanding it's possible for pretty much anyone to do so, but I don't know how.

frigid bay
#

there isn't really a documentation or anything afaik but u can get started by reading the page in pins in #1032200195582197831

dry patio
#

you know its a real shame that this thing isnt in the actual repo yet

#

its a real real shame

silk falcon
faint siren
opaque musk
#

if you open the vc chat it'll do that

exotic valve
#

@potent fox can your windows look like this

potent fox
#

need to lots of customization though

exotic valve
potent fox
#

2 hour setting up WM

#

8 hour troubleshooting why system is not booting

dull magnet
#

false

exotic valve
runic talon
#

oh hi @opaque musk lol

opaque musk
#

oh hi lol

runic talon
minor jolt
#

not sure where to ask since this channel is the only one I use but is there some way to make discord not open the on screen keyboard on touchscreen

#

from my understanding it probably happens since the message box gets focus when you open a channel probably

#

can I somehow make it not do that

remote kestrel
dull magnet
#

lisp like

remote kestrel
#

idk

#

but

#

thankfully its not (((((((((((((((((((((((()((((((((((((((()))))(

#

i like the syntax

vague echo
#

the block syntax is popular within functional languages

#

so it's more elixir inspired to me

valid geyser
#

I wonder why there is not a perfect sending messages translate plugin, which will work with openAI/deepL. For example in the settings you select the output language (english), language type (chill, formal etc) and stuff like that.
If plugin is turned on, each message you SEND is:

  • [if your message is not written in english] translated to english -> then send
  • [if your message is written in english] checking the vocabulary, grammar etc -> then send

anyone ever considered this type of plugin? especially deepL is an amazing translate tool and it would be really helpful

shadow ruin
#

/run

worldly oxideBOT
#

Update: Discord changed their client to prevent sending messages
that are preceeded by a slash (/)
To run code you can use "./run" or " /run" until further notice

Here are my supported languages:
awk, bash, basic, basic.net, befunge93, bqn, brachylog, brainfuck, c, c++, cjam, clojure, cobol, coffeescript, cow, crystal, csharp, csharp.net, d, dart, dash, dragon, elixir, emacs, emojicode, erlang, file, forte, forth, fortran, freebasic, fsharp.net, fsi, go, golfscript, groovy, haskell, husk, iverilog, japt, java, javascript, jelly, julia, kotlin, lisp, llvm_ir, lolcode, lua, matl, nasm, nasm64, nim, ocaml, octave, osabie, paradoc, pascal, perl, php, ponylang, powershell, prolog, pure, pyth, python, python2, racket, raku, retina, rockstar, rscript, ruby, rust, samarium, scala, smalltalk, sqlite3, swift, typescript, vlang, vyxal, yeethon, zig

You can run code like this:
./run <language>
command line parameters (optional) - 1 per line
```
your code
```
standard input (optional)

Provided by the Engineer Man Discord Server - visit:
β€’ https://emkc.org/run to get it in your own server
β€’ https://discord.gg/engineerman for more info

shadow ruin
#

/run

worldly oxideBOT
#

Update: Discord changed their client to prevent sending messages
that are preceeded by a slash (/)
To run code you can use "./run" or " /run" until further notice

Here are my supported languages:
awk, bash, basic, basic.net, befunge93, bqn, brachylog, brainfuck, c, c++, cjam, clojure, cobol, coffeescript, cow, crystal, csharp, csharp.net, d, dart, dash, dragon, elixir, emacs, emojicode, erlang, file, forte, forth, fortran, freebasic, fsharp.net, fsi, go, golfscript, groovy, haskell, husk, iverilog, japt, java, javascript, jelly, julia, kotlin, lisp, llvm_ir, lolcode, lua, matl, nasm, nasm64, nim, ocaml, octave, osabie, paradoc, pascal, perl, php, ponylang, powershell, prolog, pure, pyth, python, python2, racket, raku, retina, rockstar, rscript, ruby, rust, samarium, scala, smalltalk, sqlite3, swift, typescript, vlang, vyxal, yeethon, zig

You can run code like this:
./run <language>
command line parameters (optional) - 1 per line
```
your code
```
standard input (optional)

Provided by the Engineer Man Discord Server - visit:
β€’ https://emkc.org/run to get it in your own server
β€’ https://discord.gg/engineerman for more info

shadow ruin
#

guh

#

/guh

const { exec } = require('child_process');

const javaCode = `
    public class Guh {
        public static void main(String[] args) {
            System.out.println("Hello from Java!");
        }
    }
`;
const fs = require('fs');
fs.writeFileSync('HelloJava.java', javaCode);
const javaCommand = 'javac HelloJava.java && java HelloJava';

exec(javaCommand, (error, stdout, stderr) => {
    if (error) {
        console.error(`Error: ${error.message}`);
        return;
    }
    if (stderr) {
        console.error(`stderr: ${stderr}`);
        return;
    }
    console.log(`Java Output: ${stdout}`);
    fs.unlinkSync('HelloJava.java');
});```
#

rty68tgkjhkjy

#

/run

const { exec } = require('child_process');

const javaCode = `
    public class Guh {
        public static void main(String[] args) {
            System.out.println("Hello from Java!");
        }
    }
`;
const fs = require('fs');
fs.writeFileSync('HelloJava.java', javaCode);
const javaCommand = 'javac HelloJava.java && java HelloJava';

exec(javaCommand, (error, stdout, stderr) => {
    if (error) {
        console.error(`Error: ${error.message}`);
        return;
    }
    if (stderr) {
        console.error(`stderr: ${stderr}`);
        return;
    }
    console.log(`Java Output: ${stdout}`);
    fs.unlinkSync('HelloJava.java');
});```
worldly oxideBOT
#

@shadow ruin I only received js(18.15.0) error output

Error: Command failed: javac HelloJava.java && java HelloJava
/bin/sh: 1: javac: not found

minor jolt
valid geyser