#development
1 messages · Page 274 of 1
@radiant kraken autocomplete finished! Now I need to do the permissions too and a new version will come out. After this I'll optimize the Mutex stuff.
does discord tell you if a command was inputted from the mobile version of the app vs desktop vs web?
I dont think so?
maybe from user info
cause iirc you used to be able to get their platform via user info
they could change each message/command
wym
like change their platform
one message from the desktop app, next from the mobile app
Okay
Whats the issue
If you are able to still get their platform from userinfo, then thats likely how you can tell
otherwise I dont think they give that info
i want to know if they sent a message from the mobile app because discord blocks premium buttons on mobile
try checking what I said
they do???
it's just a normal discord channel. it's a response to a slash command showing premium buttons
idk what you mean by premium buttons
ah yea those
idk if premium is even in mobile rn
iirc it's still just easier to direct people offsite
#development message
it just shows this ^
yea because the discord mobile clight doesnt have the experiment / feature iirc
Doesnt look like you can get their platform
i want my code to check if it's mobile and if it is just give a link instead of the buttons
You cant
yeah, that's what it's looking like to me too
bit like how you still cant provide premium through discord if you're in the EU either :^)
soooooooo
W
Maybe you need to reverse the order with get being first and set second or some kind of self reference issue when initializing?
in the docs its set and get
just realized
get wont be available at that stage
sooo
Yea..
I am noticing a problem though
The state isn't updated except for in localStorage
localStorage it gets set to false correctly
but when grabbing it, its still the default value

In C# custom get/sets use an extra field for self reference private string _fieldName that way it can be accessed with initially
https://discord.mx/v/AOMMSv1jN0.mp4
I tried to cook something up, that'll be a hard effect to do

jesus
You got farther than I did
but you also have more knowledge than me
i only ever mess with frontend and i still know so little lmao
but i like my key
that's about it
straight divs
and css
The secret message has been revealed
GO TOUCH GRASS
need to know how to make commands vote only
I’d be interested to see the code behind this
I also didn’t think I’d spark some kind of competition 
Ur the second person to attempt my idea
Oh?
i thought you coded this from scratch with trig 💀
I forget matter is a thing
Thank you for showing me this
In the future I’ll spruce up my current implementation
sheeesh never knew it was that easy
I mean
To do it the way I really want, Sayuri is right
It would be a lot more complicated
^-^
But baby steps yk
oh nah i have things to do 💀
What takiyo has showed me is a big step in the right direction
how's the progress
90% of the way done with the website
cuz i wont be surprised yk
waoo
you're goat with trig
doubt
lies
💀
she would see at the code and still consider you extremely smart
Much rather use react + react router
I mean I will be using ssr eventually
Just rn it’s all client components
But sometimes they are rendered on the sever
for what?
So hydration issues occur
ah
Opps
i see i see
In the future ima have a gallery that pulls images from cloudflare r2
oh, you keep it turned on even after her birthday?
Im also going to implement next auth
Yep
yeah i'm sure it's not just a one time thing
It’s simply a gift that keeps on giving
the website will be used throughout their relationship
whoaaa i seee, interesting idea
Every year I’ll add more features

Next year ima make a game
ooooo poggies
Hopefully I see it
now i gotta find the girl
oh sorry 😭 i mean like... for me making ideas like you, the step 1 is find girl
Lmao
me
I came up with this idea so fucking late
I’m shocked I’ve gotten this far in 2 days
good job
Granted it’s not the hardest thing
But I hate web dev and have never had the motivation to work on something for hours at a time
OH I HAVE AN IDEA
Not since I started programming at least
but it's secret 🤫
I wanted to incorporate stats for messages on discord
But that’s impossible without using self bot

need to know how to make commands vote only
cuz u always steal my ideas
Who
😭 😭
takiyo

What’s the idea btw
lmao
YOU ARE GONNA STEAL IT
u gonna leak it to takiyo
i dont want for him to remember

😭
dm
Ok
Macro code looks so cursed
OH MY GOD FINALLY IT WORKS
you have to consider the time of texting smh
i have the right to throw 503s when you ask me a computationally intensive task at 3am in the morning
damn chad 
@radiant kraken I also updated the repo, permission based commands and autocompletion are now possible with rustcord :^)

gonna have to build it and publish on pypi now. What did you work on so far (so we are on the same line yk)
i am currently still working on refactoring many things
i've created several helper macros to help get rid of repetitive code! like this:
ic, gonna have to take a look on your fork 😅
Very nice! 


will look into it later!
do that 👍
api.rs is now much cleaner to look at 
I can see in uhd now 😮
hahahahaha
So for the optimisation, should I do it now or wait till you've refactored? 😅
maybe after my refactors
Okay, huge thanks 🙏

@compact condor i can make the pull request now if you want
so you can work on the optimization as soon as possible
I still have to do some work and study for 3 exams next week, gonna have time again in a couple hours or tmrw so dw 🥲
oh alrighty
i've seen that your project still use setup.py, why not use pyproject.toml?
setup.py is no longer supported by Python 3.11
i've learned it with setup.py tbh
oh damn, gonna have to switch to pyproject.toml then, thanks for bringing this up 🙏
i'll do it for you, don't worry!

alright!
I know lol I was just memeing
next time ima do 418s
Are you a teapot
yes
@radiant kraken I would have some spare time now
i've merged my fork with your changes
so far i think i'm done with my refactors
but i haven't tested it tho

np, gonna do that then 🤝
just give me some minutes to clone your repo and trying to understand the changes you made 😅
oh uh uh i can explain some of the changes i've made!
do u mind if i create the pull request now?
go ahead 
ay ay captain
You know how csgo case openings look right?
yeah
I am trying to create a similar effect
Any idea on where to start?
The animation should be rather straightforward
I just am not sure how I would keep track of what it lands on, or how to tell its position or whatever
smth like this?
YES
@radiant kraken hmmm... 
Traceback (most recent call last):
File "/home/runner/workspace/examples/autocomplete_permissions_bot.py", line 9, in <module>
from rustcord import Client, Intents
File "/home/runner/workspace/rustcord/__init__.py", line 8, in <module>
from .client import Client, Intents
File "/home/runner/workspace/rustcord/client.py", line 17, in <module>
from .models import (
File "/home/runner/workspace/rustcord/models.py", line 123, in <module>
class DiscordModel:
ValueError: '_rust_type' in __slots__ conflicts with class variable```
this is exactly what I mean
ooo, oke, i'll try finding it out. it's from this website https://convars.com/case/en
gonna take a look at this error
Thank you 
I have an idea on how it'd work but it doesn't seem like im correct

My idea is just an array of randomized elements, that you cycle through changing the first position to the last until x amount of time passes and you land on some random one
but that doesn't sound like it'd translate well visually
try again with the latest commit
oh kekw, it's just a long x overflow with this transition transition: 10s cubic-bezier(0, 0.11, 0.33, 1);, then you tweak the margin. the site animates margin left from 500px to -5594px

but
then let the animation flow
how do you tell what you land on
or do you choose prior
and animate to it
I assume you already know what you land on, you just have to make it visually look like its choosing
okay gonna do that
just run git pull lol
so, basically it's not "random". you still got list of items. like let's say on the overflow, there are 7 items. you shuffle your items there, and the thing that lands always at index 5. you just shuffle your list
yeah that works too

interesting
I found this
oh, that's a bit different from this
See programatically I just can't imagine how this works
I see the margin changing
let me make you the example real quick, 10 mins
but it does not really explain how it can grab what it lands on.

im so dumb I swear
nuh uh!
everything except the autocomplete_permissions_bot.py work 
Traceback (most recent call last):
File "/home/runner/workspace/examples/autocomplete_permissions_bot.py", line 55, in <module>
@client.command(
^^^^^^^^^^^^^^^
File "/home/runner/workspace/rustcord/client.py", line 487, in decorator
self._autocomplete_handlers = {}
^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Client' object has no attribute '_autocomplete_handlers'```
looks like null didn't add a prop
try again
what do you mean? 😭
i just forgot to add _autocomplete_handlers to __slots__

yeah saw that too when looking into it 
the thing with __slots__ is that you risk AttributeErrors if you forgot to add a property name to it
but in return, you save a lot of memory on your object

Gonna keep this in mind thx 
hold on, i'm writing my changes hahaha
But it works seemlessly now tyvm, gonna start to optimise everything now, again huge thanks I hope I learn from your refactorisation 
Hai! The following pull request applies the following changes:
Python:
Use pyproject.toml instead of setup.py as the latter is no longer supported by Python 3.11.
Add slots property to every c...

please read them, thank you!
Howwwwww
wait
I did, thanks for the detailed infos of your changes 

feel free to ask questions if you have any!
actually, sorry it's not overflow. just a long div
I def will do that 
and yes you can still animate like the codepen you sent with just margin, just need some adjusting to the code and transitions
tho the cons with margin is, either you need static width, or do math to calculate the width when you want to fit to the screen on the parent
good luck 
Thank you
does the rust portions work?
just making sure
while (currentIndex != 0) {
let randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex--;
[array[currentIndex], array[randomIndex]] = [array[randomIndex], array[currentIndex]];
}
Can you explain how this works?
Mainly the last part
I never seen array assignment like this
oh, that's just shuffling array i got from random stackoverflow kekw, you can use any method for shuffling
Well yea I know
I was just wondering how it actually works 😭
I've never seen array assignment like that
didn't know you could do that

as of now I didn't come across any errors so everything is fine 
poggies! nice!!

basically, this code is swapping current iteration to any random index
I get that
but how is it mutating the array
it doesn't do any assignment to the array variable
or the array passed in I should say
immutable types such as int, str, tuple can't be changed using a function, because it copies the whole data to new memory.
mutable types like array, list etc can be changed within a function, because it passes a reference to the original object
they're called call by value (1st) and call by reference (2nd)
int and strings can be mutable if you use let 
Right but I mean
how is [array[currentIndex], array[randomIndex]] = [array[randomIndex], array[currentIndex]]; assignment of the array passed in

there's just no way for them to be a reference
which means that they can't be modified remotely
oh, yeah right in js
thats like “we change the value of current index with random, then random index with current”
Found a funny effect 
sorry if i dont get your question or what
What I mean is
how is that mutating the passed in array
normally you'd do something like array = newArray or array[index] = newValue
but I dont really see much of that here
though looking at it again
It makes sense
It's saying at this index and this index, change it to the value at this index and this index
yeah, thats just the shorthand of
temp = array[currentVal]
array[currentVal] = array[random]
array[random] = temp
I guess it is just a way to do 2 operations in 1 go
right
instead of
array[currentIndex] = array[randomIndex]
array[randomIndex] = array[currentIndex]
```?
That's neat though
I never seen that shorthand
eh, no that wont work
sorry,
temp = array[currentIndex]
array[currentIndex] = array[randomIndex]
array[randomIndex] = temp
ye
My fault
This is interesting though
I basically copied your code 1:1 with the exception of making it work for react by using useEffect
and the button translates with it


how do you translate it to react? (share the elements only)
I mean its basically what you have just in a useEffect hook
useEffect(() => {
const scroller = document.getElementById("scroller")!;
const roll = document.getElementById("roll")!;
const info = document.getElementById("info")!;
let items: Array<string> = [];
const getItems = () => {
items = [...randomWords];
shuffle(items)
setItems(items)
}
getItems();
roll.onclick = () => {
getItems();
scroller.style.transition = "none";
scroller.style.margin = '0px';
setTimeout(() => {
scroller.style.transition = '2s cubic-bezier(0,0.11,0.33,1)';
scroller.style.marginLeft = '-7300px';
}, 100);
info.textContent = `You will land on ${items[items.length - 4]}`
}
function setItems(items: Array<string>) {
scroller.innerHTML = "";
for (const text of items) {
const div = document.createElement("div");
div.className = "item";
div.style.width = "200px";
div.style.height = "150px";
div.style.flexShrink = "0";
div.style.backgroundColor = "white";
div.textContent = text;
scroller.appendChild(div);
}
scroller.style.width = `${items.length * 200}px`;
}
function shuffle(array: Array<string>) {
let currentIndex = array.length;
while (currentIndex != 0) {
let randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex--;
[array[currentIndex], array[randomIndex]] = [array[randomIndex], array[currentIndex]];
}
}
}, []);
<>
<div className={'overflow-hidden flex flex-col items-center justify-center w-full h-full'}>
<div className={'flex gap-2'} id="scroller"></div>
<div className={'flex flex-row gap-2'}>
<Button id={"roll"}>Roll</Button>
<span id={'info'}></span>
</div>
</div>
</>
And literally this is it
Button also shows so far away its off screen
So idk what I did wrong

interesting
Welcome to css nightmares 🙂 where flex boxes and wrapping don't make sense unless you use specific options 🙂
I hate my life rn

and now I found another issue with my state

oh my god I fixed it
🙏
state issue I mean
still have not fixed that wonky ass css
I mean
I kind of kind it fixed
Make your website in Unity2D and use the wasm it builds to run your website instead
@pearl trail
🙏
due to your help, I am not one big step closer to what I want to do
T pose spinning character behind some UI
Thank you so much

<3
I am noticing something
If the list of whats available to be selected is small then the effect in its current state doesn't work
do I modify the margin left?
I assume so because it decides how far the scrolling is
but then that begs the question, how far do I control it, and it also seems less like it's looping
yep right. you can play with the value by keep modifying it until you find it’s enough. you can set the transition to like 1s for faster development, then increase it later when you’re done.
there must be a way to calculate it but meh i just play around with the value
can’t do anything much because im already in 🛌 kekw
I can proudly say I am ie6 compatible now https://index.mcjars.app
Code actually makes sense too
this just makes it easier to scrape every jar 
hey guys i finally found an auto watcher, namely tsc --watcher lmao.
Though, i removed my outputDir tsconfig variable as i just want the compiled js files in the same directory as the ts files.
Though this gives big problems like:
Cannot write file '.../Handlers/chartHandler.js' because it would overwrite input file.
any way to get that fixed?
i just want the ts and js to be exactly in the same folder as they are compiled in.
where is https 😠
how dare you not support cryptographically broken and insecure SSL connections
@dire agate sometimes, full will not do full™️
wrong person 😭
oh wait sorry 😭
nah dw use userids next time <@{USERID}>
noted™️
Im the only Aaron allowed here
Will slim aaron pls stand up
@pearl trail Strange situation
Everything below it conforms fine
but those 2 cards simply don't
the full width?
I don't see anything different between the 2 and the others
Should be taking up the full width of the parent yes
And all the divs below it have the same class properties on the parent's divs
as you can see
is the screen's width below md or above md? you got md:w-3/4 there
but they function fine even when adjusting the screen's width
the screen is still below it at this point afaik
md >= 768px
if you want the width to be full when it's below md, and 3/4 above md, do w-full md:w-3/4
that should work

God im stupid
nah, you're learning. everyone is stupid at the first time ^-^
-# hope this does not insult anyone

Dumb dumb want gum gum
i got ignored 💔
💔 😭
Im not quite sure I understand your problem
yo how does one acquire the 'Bot Developer role'?
oh i already got the role mb tf
maybe show some more information like console screenshot?
oh no i just gave it to you 
oh alr ty 🙏
cant have shit in 25 💔
I've finally optimized the code on rustcord, runs way smoother now :D
damnit
File "/home/runner/workspace/main.py", line 1, in <module>
from rustcord import Client, Intents
File "/home/runner/workspace/.pythonlibs/lib/python3.11/site-packages/rustcord/__init__.py", line 33, in <module>
from .errors import DiscordError, GatewayError, HTTPError
File "/home/runner/workspace/.pythonlibs/lib/python3.11/site-packages/rustcord/errors.py", line 58
)
^
SyntaxError: f-string expression part cannot include a backslash```

Oh gee sounds like the opportunity of a lifetime!
@clear plinth I think I ping a mod
I think it would be better to open a ticket on the #staff-tickets channel and link all of his messages from all channels there
i thought it's topgg at first
Yea, same
it does appear we use a similar colour palette
imo, the ux for "save all changes" is kinda bad. it's far from content where user is clicking and seeing
-# im no experienced ux/ui designer, so that's just what i feel
also having a dashboard button on the dashboard. doesn't seem right or at least make it the accent color
Fair claim, completely true. when sharing it elsewhere, people said it looked like an afterthought
should i be worried for aria-label 🙁
Yes
making your site work with screen readers is important
😦 this is going to be tough. thank you for the information
You don't HAVE to, but as woo said it is essential if you want to allow accessibility
This is the type of stuff AI should be doing.
AI powered screen readers will be wild
I think there is libraries that make achieving accessibility easier
noted
Why is top gg bot offline
[2025-04-06T18:18:20.524Z] [INFO] Request to POST /v1 completed with status code 404 in 3ms
const express = require("express")
const router = express.Router()
router.post('/v1', upload.single("file"), async (req, res) => {
if (!global.db) {
return res.status(500).json({ error: "Database not initialized yet" });
}
if (!req.body.username || !req.file) {
return res.status(400).json({ error: 'Username or file not provided' });
}
const headers = {
authorization: req.headers["authorization"]
};
if (!headers.authorization) {
return res.status(400).json({ error: "Missing authorization header" });
}
try {
} catch (err) {
});
} finally {
}
})
module.exports = router
app.use('/v1', routes.r2.uploadAvatar)
anyone know why router.post wouldn't work for this?
i removed like 90% of the code in the try catch area just so it wouldn't flood the chat
This bot is no longer useful since the server list was removed
Are you using the desktop postman app? Otherwise it doesn't support requests to localhost
i am but it was working with local requests when i wasn't using router
economy module logs picked up emad testing my bot haha
have you actually connected your router to anything?
wdym
module.exports = router where is your router export used
wait wdym?
you're doing POST /v1/v1
remove either one of them
ooh
oh right im blind 2x
Yay fully working (except for the weird times)

W congrats
hows your lock thing going?
valid
what are you working on
Drag key onto lock and poof redirect
valid
aw im sorry :(
Me neither
I'm using it for the first time to predict 5 day rolling volatility for stocks
This is insanely good of a prediction
For reference, it trained on days 0-400, then 400-500 is a complete prediction
It's surprisingly easy
It's more about understanding which model is best applied in which circumstances
This is portainer?
Alternative to Portainer
whats the alternative?
Got most of the docker features working and planning to add a bunch more developer related features 
that looks quite nice. By discord integration what does that entail
Discord login atm but i plan to add Discord notifications, status messages and other related things.
Things like vps server status and game server status and docker container status
don’t forget us when you’ve turned this project into a multimillion dollar business that gets bought out by amazon
You can technically add Discord notifications and status messages yourself using the API though too
love that idea
Hi everyone! 👋 I’d love to connect with other developers whose bots use welcome messages to drive engagement. We’ve relied on welcome DMs for a while, but lately we’ve seen declining conversion—even as outreach volume goes up.
Curious if anyone else has noticed this trend or found ways to keep welcome messages effective at scale. Happy to swap notes!
DM welcomes are the worst way to greet people unless you want to be blocked by more than half of them
What is a better way in your perspective?
well, either send the messages in a specific channel or dont send at all
imagine if every server you joined a bot sent u a message in DMs, sometimes 2 or more bots
this is why I blocked dyno
are you by any chance referring to this bot?
if you are, then i was about to look what that bot was at first but the constant dms annoyed me
unsolicited dms are the worst way you can drive engagement
that is wild
Forgot to thank you about this yesterday, thank you so much
not only the dms but dm'ing things like this, there are people like me who are not in a bad position to seek help
especially from a discord bot (im being brutally honest here so you can see how users think this as, don't mind) so you might want to loosen that up a little bit and just give a brief intro of what your bot is capable of, it is a good initiative but as i said, things like this would just piss off audience like me @wary carbon
and sending out dms more than once if you did not recieve a response from the first one, might want to see how you want to handle that too
haha no worries ^-^
I am noticing SSR with normal react + react router looks complex as fuck
and very hard to follow
💀
I wonder why people still seemingly opt to use react and react router over nextjs
SSR is kind of a pain in the ass to begin with anyways
I mean true
I kind of want to not use nextjs though
I still want the SSR capabilities
but nextjs just seems to be more trouble than its worth
I've ran into a few libs that I want to use that don't work for whatever reason, because of how nextjs is
but they work fine with just plain old react and react router
- vite ofc
since vite makes everything easier
Anyone know what SWC is? Is it some other kind of bundler
oh
I guess its some kind of compiler

vite looks easy for ssr
tho you need to proxy it to your main server if you’re using another backend server
How's that framework?
did you work with it before?
I've worked with it before
but i've always had bad experiences
dk if its a me issue
but I run into a lot of issues
It's a front-end framework that runs on top of React right?
It has routing, middleware, databases, and etc out of the box?
routing yes, database ofc no
So I'd implement my own?
yeah(?) its like express and react combined. you still need to build that kind of thing by yourself
tho i havent really used the server, just need it for ssr
Well there are frameworks like Laravel that lets you choose your database solution, like SQLite and PostgreSQL
And it can also work with React
Though since Next.js is a bit more minimal I guess it makes sense
i usually see people use prisma with it
but it varies
Laravel is what i'd consider a full stack framework
It lets you easily integrate frontend and backend rather well
nextjs is frontend first
God that reminds me that i really hate those mental health support bots like that if that is even one or some really weird AI chat bot
I remember when I was younger I wanted to make one
then realized it was pointless cause i aint no therapist
It's one thing if its from a licensed therapist
lmao my lecturer cooked me because of me suggesting that idea for a competition
lmao
and my friend who used to design an app with “using ai for mental health tracking blsbla” actually interviewed a real therapist, and 💀 they got cooked too. the therapist said ai can’t replace this job (yet)
so yeah
there are a lot of factors
Of course not
its not advanced yet to understand emotions
so how can it tell you how you feel or should feel
yeah
me n my friend used a bot
that makes use of modals
i can see it, he can't
has he somehow disabled modals?
instead of showing the modal it shows this greyed out response
@shell tundra advertisement
@solemn latch
like there is supposed to be a drop down there?
or you run a command and it shows the modal?
very strange
apparently, obs picks modals up as a streamable using this ui
making the modals appear on obs view but not on discord itself
Well I’m more comfortable with MySQL

I do not understand this SSR with react + react router + vite
😭
I dont understand how the actual SSR part functions
You know what SSR fundamentally is though, right?
Or is that the part you’re confused on
At a fundamental level it is the html being pre-hydrated / pre-rendered on the server then being sent to the client
its supposed to improve load times for clients and improve SEO
Yeah, it’s turning the templating language into actual HTML using the data it requires, then sending it to the client for the client to render it
I just don't understand how what I just wrote
is SSR
💀
Also I am seemingly losing the benefits of vite
I'm thinking of learning something other than nextjs
I don't know how the other stuff works
I want to create a monorepo with Prisma
One app would be a Discord bot, the other a Next.js site
I, for the love of god, cannot figure out how to set the monorepo up qua Prisma and generating it
For context, I have Dockerfiles for every app, and am planning to deploy this monorepo as a compose file
I could either do the funny and copy the prisma folder and sync it in both
Or I could go the complicated route and have it in the monorepo root
you can also just use git repo refrencing
using Git submodules
Wouldn't that be syncing but more complicated
Yea nah this shit is confusing
gl on figuring it out

\
I plan on angular for some reason
oh really?
@real rose
@sharp geyser
why u 2 ping each others?
They suffer from a severe case of circular dependency
The app icon isn't populating for my bot on the website. any suggestions?
gonna be doing it like this I guess
👀 I am back, asking about postgres stuff again.
What do you all use for database migrations?
As in, an ORM type migration? Or as in copying data from one db to another instance
yeah ORM
Personally I love EF Core for ORMs
Super easy to use, concrete and consistent typing, straightforward API to use with LINQ
C# only though afaik
🔥
0.5s
prisma/drizzle for js
GORM for go
Prisma scares me.
I'll look at drizzle
why does prisma scare you?
Got stuck with something in Prisma for awhile. Turns out it was a bug in Prisma.
This was years ago so I'm sure it's fixed now, but I moved away from it pretty quickly.
Hello guyz plz help me
fair
not when you try to use where clauses with joins
it can be single digit ms slower even with a local db
Heloo
at that point just use raw queries
yea
we have to use raw queries with timescale anyway
1.2 billion rows makes prisma literally cry
lol
I am sure that'd make anyone cry
not just prisma
💀
@solemn latch ^^^
@silver skiff no ads please
Understood
prisma is just sequelize no?
no
HELL YEAH EF CORE MENTIONED
Goated framework
I hate implicit entity tracking though
People at my work never add AsNoTracking to their queries and it always creates the most difficult to track bugs
I've literally never used ef core at all kek
Raw SQL or a different framework?
Yea just different libs i might try out postgresql though
does look like it
W Python code
Hey guys what would the proper HTTP code be for missing data in the body?
Like, a POST request had insufficient data?
I’d probably just go with a 400 Bad Request
yeah
Thank you
does this look like a good login page?
Is it a template or custom?
custom
Looks nice
Looks pretty good, just felt like I’ve seen it somewhere
probably every modern website
Typical blured background div
Its not uncommon of a style
i semi based the sites style off of https://linear.app/
it follows core concepts of the site e.g the navbar was inspired by linear
You should style the check box and make it fit in, it's a small thing but
i'll do that now actually
also any specific reason for no placeholders for the inputs?
sites still under heavy development
better?
Make it orange like the button
Or red whatever that is
Oh wait that’s confirmation nvm
No one cares about that
i wonder if i can make this custom
Indeed
bc that style looks so outta place
no i mean like the Message
You can iirc
But it’s wonky
Even form libraries just use their own html and css
And places it on top of the element iirc
hmm ima try something
Or they give the error message back to you so you can use it how ever you want
i'm also gonna add a strong password system
Wym by strong
i scraped that idea
this is all my system does rn
user when they get an invalid email error and just typed their email’s first character:
?
ik how to do that
its just give em time to type their email instead of giving error too early
well its not that really important but..
¯_(ツ)_/¯
just a meme i found on internet
wanna see something insane?
no ive seen something more
the login EJS file is 1,100 lines purely bc of CSS
i never moved the CSS to its own file
idfk why
You should
i'm gonna soon
plus i could prob move all the JS too
NOT THE ERROR AGAIN
i hate this
express has it on static:
app.use(express.static(path.join(__dirname, "private")))
<link href="/private/css/login.css" type="text/css" rel="stylesheet">
fixed :}
Hiii
debounce is your friend 
that also works, mine personally only show the error when user typed at least 5 chars. but ofc still not allow to submit if it’s less than 5
Keep in mind that all of your validation on your frontend is not to be trusted. Validation should happen on the backend as well
I'll run backend validation later tonight
How can I use sharp to stretch an image into 1024x1024
I've tried .resize(1024, 1024) and .resize(1024, 1024, { fit: "fill" })
Both just crop
wait im schizo
ignroe
monorepo struggles
I have multiple projects with the same name in the same workspace
truly never goes wrong
growing 🔥
What "requests" are you tracking?
any http request to https://mcjars.app/api
MCJars is a Minecraft Server Jar Website which allows you to download versions or reverse lookup for your favourite projects easily.
Ah gotcha
don't worry, I can make that grow for ya!

traffic about to jump 3m req/min
+1000 in 1 min
I mean
thankfully cf caches a ton
(10TB cached last 30 days)
(my us load balancers only have 1TB
)
that'll be 15TB once waffle help you
20PB, right?
😱
AI training data 
Nice little embed builder for my welcome plugin. anything to fix/add here?
Looks nice
thanks!
we cant add more than 100 slash cmds then what to do ?
Maybe use subcommands and subcommand groups
Apr 10 10:09:12 VPRO python[59248]: Failed to load extension moderation.py: Extension 'cogs.moderation' raised an error: CommandLimitReached: maximum number of slash commands exceeded 100 globally
theres things like that?? can u send me docs link plssss
thnx mate
Yes sub commands are amazing 🙂
converted everything feels so much better knowing I can make more cmds lol
Ye and it's all uniform under a single command
Anyone here know if discord monetization allows you to have a user and server subscription entitlement? Or is it one or the other?
I know it used to be one period… did that change?
Yeah that’s what I thought but the announcement for it on their website says you can offer both user and server subscriptions. And doesn’t say one subscription per app anymore.
Wait discord developers posted about it.
its still same type
Ye but multiple now.
so either multiple user or multiple server, not both
sorgy i had a stroke trying to phrase that LOL
That’s scuffed
What if I need separate options? My users can have £5 for access to user based ai commands. And servers pay for advanced server analytics and ai use on moderation etc.
honestly after they forced devs to use it i lowkey got so annoyed i stopped keeping up to date LMAO
i think you can choose which one to offer on platform and then the other can be off platform without violating tos
Ye they told me they would delete me app if I kept serving subscriptions for my bot outside of discord and didn’t have the exact same subscription and price on discord.
i honestly haven't seen a bot get taken down for it yet ngl
So half my commands only like 5 people can use because nobody can pay for premium anymore.
especially because its not universally offered
You think it’s just a vague threat?
I saw the email and just deleted the stripe product and disabled the purchase command 😂
i don't recommend poking the bear but . . probably. if they emailed you specifically then they noticed but if it was the general email about it changing then 
ie in canada it is not offered so at mimu we haven't had to list it
Idk lmao I saw an email and didn’t want to risk my standing on discord trust and safety.
But it’s forcing me to make my dashboard better and more functional so ye… I think it’s a good thing.
Cus incentivising.
fair enough. i dont feel its good for my users bc id have to raise the price on them to compensate for the fees discord takes
Pft I only need to cover their ai use cost
The discord payment will cover that and some.
A user paying £4.99 a month will only ever use £3 of ai
If that.
And if they try to go over that. The app just blocks it.
Especially when it’s like £0.05 per million tokens.
The rest of the cost gets spent on new toys for people to play with on the bot. Like I’m trying to work with the lyrics provider for Spotify so you can get the lyrics to the song you’re listening to.
@charred nest You were wrong
Is this clear when you purchase the premium?
those are unpublished
I’d imagine people could be pretty pissed if they found out that they didn’t have unlimited access when they thought they did
Yes. All ai costs and limits are listed clearly on the bot page and inside premium, or were when it was available.
Nice
Thats why I sell a top up.
@hard wraith
"youve used up your massive limit? ok heres more for you."
youc ant have both
Then how tf can I support server subscriptions if I cannot add them to discord?
Unless i increase user subscription to include a premium guild counter... like tier 2 user has 1 guild... tier 3 has 5 etc...
but im not entirely sure, this is what i remember from talking to staff eons ago when this policy first dropped
I wouldnt risk it...
I offer my prices in gbp as well... which is annoying as discord only supports usd
like my price is £5 (£4.99) but discord forces me to select $4.99, do i get flagged for the base price being in gbp on the website?
Wait so if you want to have subscriptions on your site you have to match them on discord?
That's stupid
so i have to somehow take my UK stripe account, make it ALWAYS equal the $4.99 price on a gbp product...
and people wonder why i turned off premium purchase a couple months ago.
yes, they have to be 1:1
offer the same, priced the same, etc
That's a greedy thing
i have some discord exclusive purchases I dont want to offer on my website
I can see why. Nobody uses discord subs
like your top up is in app, not on website.
this i think is fine
Oh its absolutely fine because discord get their cut lmao
its only IF you offer that same product on a third party site
yeppers
you cant have things exclusive to your payment platform, only exclusive on discord.
otherwise discord has to have the same products your bot platform has.
i barely make enough from my bot as it is and then paypal eats the fees also as it is
i dont want another hand in the pot tyvm
use stripe
paypal fees went up, stripe fees are still the same
but you can support paypal if you want
ill have to look and set one up, thank u guys
If ur a college student, stripe waives like the first 1k in fees
i can support both using kofi
paypal is way harder to work with than stripe
i just havent had the motivation to sign up ngl
https://docs.stripe.com/get-started here, try it.
its like super simple, its like the industry standard to use stripe on web apps now.
Still not the best dev experience, but its better than paypal.
I never used kofi but i see a lot of people using it. I thought it was like a tipping service like buymeacoffee?
Whats their % cut?
0
only payment processor fees
so paypal or stripe
i grab the kofi transaction id, automatically email them with it and update my db with it as a valid code until its used
so the 20p + 5% of stripe then
Kofi must be a stripe platform... so thats actually going to be inflated a little so kofi get a cut... and then use their cut to pay the stripe fees...
Kofi is still taking a cut.
ouh shit actually it looks like they updated their policy
5%
but if you have a membership w them its 0%
Ye that’s the minimum for a stripe platform which kofi is.
Which is in line with what stripe charges
Basically they are using stripe connect, the make your own platform tool, and those fees are just what stripe makes them charge.
Dang
Ok so is that 6% taken off then 15% of whats left? or is it 21% of the total cost taken first?
why couldnt they just give the total % fee and be transparent in line with the laws in the EU...
this is not compliant with payment fee transparency as its not clear the total deductions made.
No idea lol







