#π§©-plugin-development
1 messages Β· Page 42 of 1
thank you so much
Lmao
what?
nothing i was just linking to this in the other channel
in a modal TextInput how can i make hitting the enter key do something?
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 } }} />
Thank you so much π
onchange mayhaps
From my experience it does fire on enter on normal text inputs
oninput is used for continuous
it fires on every single change in the textinput?
like for every letter typed
Oh it does? Nvm then :D
i think that was a question
yeah this here worked ^^
On normal html inputs it fires when the value has been changed and you click enter afaik
that might be true
But that may not be applicable here
it aint
Onkeyup is def better here though
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
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?
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
hmm do you know any plugins that use it?
so i can take a look?
WhoReacted seems to be a good example, you can do a quick ctrl+shift+f for RestAPI in vencord's code
oh hey i see
it was jsut an example anyways π
but now that i look at it how does the addReaction function work?
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)
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
.. no I don't?
what's it called
interesting
it's called UrbanDictionary
anyway how do you make commands in a plugin
#1032200195582197831 pins
tells u how to start writing plugins
u can check how the commands work in the source code of the plugin ur talking about
how can I find it?
is there any way to check if a user has streamer mode enabled?
i mean there has to be
current user, sure
other user, no
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
tysm
yw
i made that actually i can send it your way if you want it?
ThIs Is An ExAmPlE
there is literally a command for it in MoreCommands lmao
no idea sorry, I've messed around very little with webrtc specifically
not risky but extremely hard 
also sorry for airing your pings, I've been rlly busy :/
Can you make a custom tab like these with just a plugin?
are there any plugins i can look at?
**index.ts: **Lines 40-49
const customSettingsSections = (
Vencord.Plugins.plugins.Settings as any as { customSections: ((ID: Record<string, unknown>) => any)[] }
).customSections;
customSettingsSections.push(() => ({
section: "Vesktop",
label: "Vesktop Settings",
element: SettingsUi,
className: "vc-vesktop-settings"
}));
this is how vesktop adds the vesktop section
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

what?
_ _
i fucked around found out
yes i have no idea what u mean by that π
i tried renaming the label in here to something else, same as section
i then put it into my userplugins folder, built, and the section was completely removed
funniest shit i ever did
no way i just overcomplicated something for the past 2 hours when its as simple as this
Invert some if statements and you good
Also you donβt need else if you have return
make ur variable names a little shorter this isnt java
lmao
yeah dw i changed it, but when i was confused i renamed the variable so it said exactly what it is so i could understand it better
hi
w sleep schedule
frrrr
hiiii
relationship store? what, are we gonna be able to buy friends with a plugin?
aw man, you dont know how bad i need to buy bitches
that's impossible to read ;-;
why not
const all = notifyFor.includes(channelId);
const friend = settings.store.receiveServerNotificationsFromFriends && RelationshipStore.isFriend(message.author.id);
if (!(all || friend))
return;
(even that seems kind of convoluted though but i can't think of anything better)
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
yes use variables please
hey how does one load a custom plugin into the client?
Check the pins in #1032200195582197831
thanks, it appears I was just blind lol
they should add this to the stdlib
https://github.com/eagely/adventofcode/blob/main/src/main/kotlin/utils/grid/Grid.kt
https://collabvm.org/wiki/Electron @dull magnet
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 ...
slow and memleaks
its anarchy tech wikipedia
https://collabvm.org/wiki/Damn_Small_Linux imma go download DSL
wth dillo browser real
made by a fan of xnopyt
anarchy wikipedia is when you put subjective opinion with 0 substance of relevance
yes thats that
this is deranged
did studio write this
this sounds like studio retardation
studio is rust fan
he can not write that
but this text is very true
edit wiki to say people should use crystal
or or π₯Ί π π
somebody should make a language where 0 << x does something
so i dont have to do ~(1 << x)
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?
Considering it prints through filter, startup: False and not just through filter, I assume the code above is not what's actually running
oh yeah sorry. i tried to make it look simpler, forgot about that print from the picture. deleted unnecessary lines from the script
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')
i dont see a meme channel so this will have to do
everything is chrome in the future
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
the only part about this that's wrong is if you have too many tabs open in one instance opening another to distribute the load to helps - the 1100 tabs I had on my desktop in a single instance didn't get along too well with chromium
I know I will be chased after for what I'm about to say but
I liked legacy edge
like, a lot
Eh, nothing wrong with having bad taste
There's no a better crossplatform framework alternative
me and the boys literally were born in 2005
pascal binaries can be compiled for literally every platform from the last 40 years and use a fraction of the resources...
c++ and imgui + some other libraries can also achieve the same thing but with way better performance if it is needed
also godot lmao
i use bing
nah jk
opera gx?
chromium based its pretty decent these days
more spying than i like but that's pretty much every browser now
π
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
you could say very similar things about vscode
naww electron >> other gui shiz π€‘
this statement is not conflicting with vim > everything else so i agree with it
i use vim btw
vim.... vim.... i hate it deep from my heart
vim doesnt have a madoka theme
it's over.
infinite power
code discord in assembly using vim in linux
assembly is too high level
where's your god now?
arch on wsl is cursed
absolutely
ive never seen a wsl that isnt ubuntu
same
running arch, 5.15 kernel. lol
procceds to use tauri
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
01101110 01100001 01101000 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00100000 01101001 01110011 00100000 01110100 01101111 01101111 00100000 01101000 01101001 01100111 01101000 00100000 01101100 01100101 01110110 01100101 01101100
ah yes because your cut off is in early 2023 you cant apply the rules from advent of code 2022
01110100 01110010 01110101 01100101 00100000 01110100 01110010 01110101 01100101
it's a punched card !!
why did u punch it
.
no one will accept it anymore even though its good because they are obsessed with js
punch **** πππ
developing with html / js is simply superior
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
shh dont feed the elitists
it runs on everything from the last 40 years with a single codebase and no local dependencies...
Lazarus is a professional open-source cross platform IDE powered by Free Pascal
you try and run a basic js app on anything over 20 years old and it just crawls
no but I get angry when software is 200x more bloated than it needs to be for literally no reason
the reason is Its Convenient
pascal is convenient too 
you don't even have to know how to code, we have visual app builders
nvm yeah 80yo mindset
so only old people are allowed to want fast apps that don't waste millions of cycles doing nothing?
the future is doomed π
theres a reason no one is microoptimising every single thing down to the core
here's your problem: you're using 20 years old hardware
because its more than fast enough
clearly not if you're complaining about people not using your dead boomer lang for "performance"
... I'm going to choose not to be rage bated rn
shoo
have you ever made a decently sized gui app in pascal @thorn drift
no but i tried and I was the problem
if you've never actually made anything then u kinda have no right to talk im ngl
the GUI is really easy I have no clue how to write logic
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
its like using a visual website builder but you can make a whole app ui that way
The easy part yeah
now try making reactive ui
@dull magnet this will be html in 2050 btw https://github.com/nicopap/cuicui_layout
true
it actually isn't the worst thing ever but they should have used crablang 
what
its rust with 100% less rust
it is rust?
oh my god
whats the problem now
this shit dont even got docs
then what is the difference
sorry im losing braincells
don't need em anyways 
do you have any idea of how long the process of merging a pr is in rust
fuck you MEAN no testing
at least 1
so to be clear here, they merge stuff like maybe twice a year
rust got something merged 6 minutes ago
man if only you could make stable releases
and the master branch isn't what you're using anyway π ^
and have things be tested in unstable versions
fellas is it bad to merge prs
Very bad
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

vencord is so stable no prs ever get merged
i think having consistency in what you are working with over a long time after testing a release is worth something.
have you ever used rust or are you just talking to talk
i don't like rust because i said so - I'm bored 
its new and shiny ofc he wont like it
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
zig is cool and its newer
Being half a year out of date is not a benefit, I don't understand why you seem to think it is
have you ever used zig either
no i only use pascal 
zig is cool cuz it hasnt had drama yet
no i like the benchmark scores
zig looks like rust at home
Recorded live on twitch, GET IN
https://twitch.tv/ThePrimeagen
the original: https://thephd.dev/i-am-no-longer-speaking-at-rustconf-2023
MY MAIN YT CHANNEL: Has well edited engineering videos
https://youtube.com/ThePrimeagen
Discord
https://discord.gg/ThePrimeagen
Have something for me to read or react to?: https://www.reddit.com/r/ThePr...
Recorded live on twitch, GET IN
https://twitch.tv/ThePrimeagen
READ THE ARTICLE YOURSELF: https://zackoverflow.dev/writing/unsafe-rust-vs-zig/
MY MAIN YT CHANNEL: Has well edited engineering videos
https://youtube.com/ThePrimeagen
Discord
https://discord.gg/ThePrimeagen
:npc:
oh boy its the netflix guy
see u recognise this person i have no idea who they are
zig is NOT safer
please
- either learn some of the languages you're shilling and try making full programs / guis
- or quit yapping
yes it is you're just mad
there's undefined behaviour everywhere
zig is glorified c
rust is very unsafe because i was using it once and suddenly 3 crabs started poking my butt
not cool
That's a feature, not a bug
yuo're supposed to pet the cab
Crustaceans aren't bugs, that's basic biology
π«³ π¦
aabiy
food
WTF
is it yummy?
yeah
i will pinch out every piece of your body out and grind them
are you a crab 
i had shrimp chips recently
Chronologically or alphabetically?
noy the shimp,,,.
can i say a hot take
lets have it
it seemed pretty neat
coldest take
hold on imma cook up a really hot take
u burnt all ur takes already
99% of "web3" can be done without blockchain
get his ass off the kitchen
at least i don't think 640k of ram is enough for all of time
writing ui code in code is cancer
coldest take ever btw federation has existed for ages
but there are ui freamworks that let you design stuff with designer
like qt, winforms, WPF
html 
imgui has 2 main graphical designers but the output isn't pretty
100mb memoryu
also this is false
writing ui in html / jsx is a breeze
amazing
you are insane
maud::html!
i wonder if someone could make a gui with lisp - i google
@dull magnet
manti when he realises html is just xml
they have 
android xml views dont need chromium instance tho
you literally write pascal how the fuck are you surprised at lisp
I dont hate html css completely
because lisp is an actual old person lang and i respect those people
its NOT
Android ui is a billion times worse than jsx
nop
Performance, don't know don't care. But writing it? Paaaain
the year is almost 2024
java STILL cannot have abstract static methods
sirs ?
What would that even mean
still waiting for WASM to take over and end my pain
wasm kinda sucks as is
Which class would you call them on
i have to use it for an assignment
you need js glue code
forgot u dont know anything u say
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
how would that even work
that makes no sense
how even lmao
android might have one of the best ui kits in the world tbh
Well, the core idea is sound
If you have a language with actual generics
I dont get how people are so fan of jsx
html css better

DEATH
components are a good way to organise code and jsx allows you to have them in the same place
I bet ven also prefers kotlin c*mpose
vee would make a react native app
true
I, too, love editing 14 different files when I want to add another button
???????????
tbh it's kinda better than android dev
told you
androd studio so bad
gradle so bad
hop on flutter
NOT FLUTTER
flutter better
flutter was terrible but i actually do like it now
i will make android discord client in bevy
performance wise
it will run at 2400 fps
@dull magnet make react native really native when
it will compile into machine code instead of h*rmes
it is native
for me it's apache cordova 
it uses native components
and will have worse performance
android machine code is java
why is Qt not as portable as the web?
what's a platform you want to run it on that it doesn't run on?
web has truly won at this point. it's pretty much what the JVM bros were envisioning for 20 years
doesnt it work on all popular platforms
web runs everywhere and all code you write is guaranteed to be portable
lots of native libraries are os specific or even architecture specific
that's why abstractions exist
you have to write different implementations for different systems
the abstraction is javascript

that's runtime abstraction so it sucks
javascript isnt really the abstraction
well maybe it is but at the behind of scenes billion functions are written for each platform
claiming qt is as portable is web is just delusional
there's nothing more portable than web
the abstraction are the web apis
it isnt but its portable enough probably
if it runs on macos windows and linux
enough for me idk
^
also noone uses direct web apps on mobile
not really but you wouldn't use web either
wrong
you would
i use several pwas
https://doc.qt.io/qt-6/android.html hm it can
Provides information about Android support in Qt.
actually I think steam link app on quest was qt
you are the exception then
Broke: I will write for web to be portable
Woke: I will write for UWP to be portable
in an alternate timeline scheme lisp wouldve been the language of the web
You're all missing the point of web apps, that you can try them out without installing shit
truly a horrible timeline we live in
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%
sexpressions in your browser
also any web app already sucks on mobile so 
performance on mobile for me is even more important than on desktop
as nobody makes good phones anymore since the S5
web performance will always be good on mobile unless you're really silly
I won't argue with data as I don't have any data myself
but I am heavily biased as I never met anyone using PWAs voluntarily
now you have
.. no?
same I prefer pwas where available
YEEEES
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
it will work better
honestly depends on the company
why
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
web bad. black box binary native app good
because if it's easy or not doesn't matter anymore, you aren't building the thing, your programmers are
that is a valid point
Also significantly easier to mod js than x86
Which corporations probably don't see as a benefit but
but the native program should be open sourced as well
then it's not an issue :p
not profitable they dont care
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)
Yeah that sure is a thing that would definitely happen
lol
it was a tongue in cheek
ok it served its purpose it can go die now
wait i forgot updates are a thing that apps need sometimes
didn't the telegram clients start as unofficial then became official
billion dollar company cant make a native app
I think that's the case with Android, but desktop was made in house I'm pretty sure
is gonna impact their profit?
yes
I mean not developing a native app is free and developing one costs money so
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
well yea but those companies are making billions of dollars
developing a native app isnt that hard
And they'd like to keep doing that
That's what capitalism is about
just look at telegram also
c++ qt app
pretty decent ui
cross platform
is it really hard to do that
It's harder than not doing that
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
thats prioritizing money over user experience
I'm saying corporations care about money
I personally dont want another discord
Telegram is a company and a commercial project
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
how does telegram even make money ?
weren't they funded by the russian state at some point
maybe premium
also lets be honest this has nothing to do with corporates
they have a "Nitro" equivalent, other than that idk
you are just lazy to develop any nativeapps
and want to go easy way and ship 300mb electron to everyone
being lazy is fine by me
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
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
they don't
manti loves im making blazingly fast game
good
"Native" on linux isn't even a thing
On some DEs qt is native, on others gtk
its funded by its ceo, a billionaire, throwing his money at it
Though that's about ux, not perf
π
(its actually all debug symbols dont kill me)
compile for release alhamdulillh
my cpu is so old
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
it takes half an hour to compile without incremental build
eitherway I doubt its really that hard to create a crossplatform qt app
that's like calling smaller stores bad cause amazon sells cheaper than them

i heard capitalism
look at telegram codebase
different implementation for each platform
that's lots of effort to develop and test
its actually tax avoidance
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
literally take vencord installer as an example
is this really extreme effort
it doesn't run on some older systems
Most probably don't know what electron is
yes
on crossplatform at most you need consider file paths, permissions and several other stuff
not like you are gonna write rendering engine
i dont use windows why do i need to test and implement smth for it
that was some weird thing tho
written in golang with imgui on CGO
vencord installer crystal rewrite when
lewi did web rewrite of vencord installer
will probably finish and merge soon
webview library
btw dont you need to write platform specific stuff on vencord installer eitherway
since discord paths
still in go so we don't have to rewrite the logic
yes ofc
also I dont really mind webview on programs as long as its not something critical
it usually uses system webview, doesnt take much space and I only use once a year
but for discord 
btw can crystal compile for windows or did they not do that yet
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)
true i hate it
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 ...
the worst part is memory usage doesn't go away even if ui is closed lol
One would expect a gaming platform to try to not eat valuable resources
always have been but now everything is a react component on top of it
i think it was cef before
it still is
it wasnt
they removed some of the older stuff for friends, settings etc and put everything as web
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)
old big picture was also web though wasn't it
are we talking about the same react
im pretty sure it was web, i don't remember how i reached that conclusion though
maybe @silver cave knows
library is native
aaaagamer
steam is just chilling for me
idk
Also hate this multiprocess bullshit
Makes it impossible to know how much ram it actually uses
opens calculator
blame cef probably
time to ask chatgpt to write me a simple html frontend
valve earns hundreds of thausands of dollars every day while being private company and they make a terrible CEF implementation
it's pretty small
also new in game ui is still buggy 
idk why it uses that much for you
1GB ISNT SUPPOSED TO BE SMALL
you mean overlay ?
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
guess what
epic games is webview too
webview on top of unreal engine
now it destroys both cpu gpu and memory

this happens to me too
but I have a laptop I cant disable igpu
does it have both i and dedicated
yes
yea idk how that even happens that reddit post is from 1yr ago
i mean unlucky with the steam bug
yea
it still has not been fixed
@silver cave wake up
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
theres code from 2010 still on it lel
some parts arent updated in ages
yop
lol so it's just cut down web
wrong
js with a custom rendering engine and custom css engine
valve went through the trouble of writing all that
so still same terribleness
uses xml instead of html as well
yeah
csgo uses it cs2 might use it
we need to get rid of javascript
@potent fox what if i told you you can write web ui in xml
mantika on his quest to eradicate javascript
will it have javascript
if you want
yop
but not necessarily
I dont
okay so only xml is that right
there isnt really any difference between xml and html right
Minor syntactic things like optional close tags etc
https://brython.info/ you are free to kneel
Brython
there is
however
xhtml
is just xml html
@dull magnet
jsx to html compiler when
you will explode
xhtml
STOP BRINGING DUMB STUFF
WHAT IS THAT

this is just html but with terrible standart urls
okay this is good
iq requirement went from 10 to 20
I think this should be a thing in html too
xhtml is funny because for the most part if you have any errors you get GIANT RED ERROR BOX
otherwise it becomes a bit confusing
The purpose of JsonML is to provide a compact format for transporting XML-based data via JSON. JsonML can help when building UI in Ajax applications and can easily be used to bind behaviors to DOM elements for implementing techniques such as Progressive Enhancement.
["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"
]
]
]
oh my god
whoever thought this
horrible
deserves to disappear
whattHeFUCK
we need ProtoBufMarkupLanguage
yop
they use protobuf for like half the stuff in the steam ui
Isn't that what gets passed to react's CreateElement
valve loves jspb
similar
actually yeah same structure
pretty much
but it's at least done by a compiler
https://haml.info/ @silver cave
A Template Engine for Ruby on Rails
if html is good why people are making crappy rip offs
haml is funny
nobody deserves this
wow that is deranged
WRONG ONE
Much better than html
LOL
I think they put the wrong image
No that's the right one
looks very good
I will be honest this looks awful too
and for some reason these guys added react integration
you love this horror @potent fox https://github.com/superseriousbusiness/gotosocial/blob/main/web/template/status.tmpl
ON HOLIDAY UNTIL 2nd JAN 2023! https://github.com/superseriousbusiness/gotosocial/issues/2477 Happy new year! Fast, fun, ActivityPub server, powered by Go. - superseriousbusiness/gotosocial
which means they thought someone was gonna use it with react
WTH is this
bash html
maybe html isnt so bad
golang templates
@dull magnet I believe you
you can create the worrst html ripoff
make perlml
html with perl syntax
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
I dodsed (I did not)
bfml
funny that you mention it, we probably getting ddos'd again
thank you kind stranger
idk
i have to finish the java shit that deadlines in like 2 hours i do not have time to check lol
i stored 36tb of mantikas artworks in your database
@silver cave can you go and switch it to the static json caddyfile again
I'll check it soon
true
do you use one json database
no
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
how does sqlite even cause problems
DONT USE MONGODB
sqlite isn't really optimised for large applications
it's mostly for low traffic services and offline use
postgresql, mariadb and similar are much more production ready
SQUEALITE
but tbh i doubt decky gets that many requests that sqlite bottlenecks

this
our whole database can fit in a 35kb json
we're using sqlalchemy maybe thats a problem who knows
I learned mongoDB for an internship and never craved SQL more in my life more
<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)
person replied to your shout on person's profile.
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
Redis in the right project is >>>
@dull magnet dont forget
oh shit I forgot about this
Why?
I won't forget
They barely changed the layout though. I'd say the changes that were made were worth it for the media, links, and files pages
I doubt its that
I just sent because funny
see the only way to make discord a better platform is to fuck up their servers with data requests. clearly
true
it actually is where that came from
also it wont do anything
except delay data exports for people who actually want them
love
I've seen that image months before the new ui became a thing
how does the profile thing work in this thirdparty plugin? i looked into it and just couldnt figure it out #1032200195582197831 message
for reference this is what i mean by profile thing https://github.com/Syncxv/vc-timezones/assets/47534062/1e2e876e-0797-4bd8-84c0-bc19c1e29835
How what works? How it's put there? The tooltip? How it knows the user's time?
how to put it there?
Oh hey i got it
yeah it was because when i was doing it i forgot the patch π€¦ββοΈ
Without patches things tend to not happen very much
yeah ive found out by now
the amount of times i forget to include the patch is insane
You can sometimes make useful plugins without patches, but it's uncommon
@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
what if every line of the code had comments explaining what each individual line did
LMAOOO
i stopped doing advent of code midway through this year's cause i was tired of grids
it was getting repetitive
Thereβs a line about that in the rules
well where do you draw the line between ai and ```kotlin
val g = simpleDirectedWeightedGraphOf(input.rl()) { a, b -> a.value.code in 0..b.value.code+1 }
return BFSShortestPath(graph, graph['S'], graph['E'])!!.length
timezonedb has been superseded
has it actually been a year since timezonedb
I opened that pr in 2022
ven is SCARED of this
I think they're just waiting for you to ask for review a few more times
By what?
This is still something I want, but not enough to use as a third party plugin
its in vencordplus 
gonna make vencordminus which is vencord but just the πΏ plugin
That's the important part
vencorddivided
its that but half the time it just doesnt work
@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())()
}
}

kotlin runs on all of the devices
kotlin ruined a whole generation
kotlin deserves EoS
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)
look at how openInApp does it https://github.com/Vendicated/Vencord/blob/7e395fc6968aced5d45fae55db646def1d555c49/src/plugins/openInApp/native.ts
veri smort
thank 
how do i install this actually
anyway to have MoreUserTags to correspond to role color?
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.
there isn't really a documentation or anything afaik but u can get started by reading the page in pins in #1032200195582197831
put it in user plugins
you know its a real shame that this thing isnt in the actual repo yet
its a real real shame
thanks
can someone merge please π’
https://github.com/Vendicated/Vencord/pull/1783
if you open the vc chat it'll do that
@potent fox can your windows look like this
yes
need to lots of customization though
aint no way ur doing that in less than 10 hours
same on linux
2 hour setting up WM
8 hour troubleshooting why system is not booting
false
me when my gdm theme didnt have the gear icon to switch wm
was I banned from #πΎ-core-development because I'm dumb or smth
oh hi @opaque musk lol
oh hi lol
nevermind just read the topic
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
@dull magnet https://cassette-lang.com/ you love, looks crystal inspired somewhat
lisp like
idk
but
thankfully its not (((((((((((((((((((((((()((((((((((((((()))))(
i like the syntax
the block syntax is popular within functional languages
so it's more elixir inspired to me
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
/run
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
/run
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
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');
});```
@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
google translate is the worst translating service ever created


