#development
1 messages · Page 289 of 1
To answer the question, yes theres a dot
@solemn latch
Any errors in your console?
All the errors in your console
Has anyone used playwright? I’m trying to find a source that teaches everything about it and how to do things securely
trying to understand how I can extract the dom effectively, what are the best practices
Yo guys does anyone know how to set status on discord bot like this ?
like the Do Not Disturb?
Na that message ( premium giveaway.........)
What library are you using
discord.py
aiohttp
RapidFuzz
python-dotenv
PyNaCl
python-Levenshtein
aiomysql
I have the same code
I am already using v2
See
Only thing i can think is the on_ready doesn't get called, or the self.loop.create_task is not properly calling rotate presence but im not well versed enough in python to assist
Only thing i could recommend is printing or logging inside the rotate presence to ensure it is getting called
No worries thanks for your time
CustomActivity my beloved
await bot.change_presence(activity=discord.CustomActivity(name="blah", emoji="🗿"))
or something like that
A Game activity, like in your code, is not a custom activity
Also don't create tasks like that, use the tasks extension -> https://discordpy.readthedocs.io/en/stable/ext/tasks/
🗿blah
@quartz kindle I found some discord black magic
please tell me how tf this works
cuz somehow it does
mfs managed to run doom in discord
Because the emoji and name are part of discord.CustomActivity, read the code carefully :)
The s/i/ part is a special feature previously in IRC that lets you replace your previous message text from some characters to another and it's editing a link with path metadata that shows the image
oh
dayum i didnt know discord had that
thts pretty cool77492
I guess u do need the s/i/ part
ah
doesnt sup%20port spaces it seems
try \s
\s
o with spaceo
hello how g
ah, well
it's weird that discord included this feature, it's the first time I'm even hearing about it
really
do you not know about discord s/e/x ?
post any imgur link and do s/e/x
tenor i mean
lmao
Broooooooooooooooooooooo love you
It took me 2 hours to do it but
I did it thanks
No problem 🫡
Bro I created a simple bot wanna test that out ?
Unfortunately I do not have the time, but there may be other people that do :D
Ya no worries mate
how do I test it?
do you have a server where it is already installed so I can test there?
Yup I do
Wait one min
Can you show the console? While it's online and when it goes offline
this is funny
i have this code inside async functions inside a callback from a drop menu class
Vscode doesnt recognize it
but it works
like .responde.edit_message doesnt see it
neither anything inside interaction .
but it works
XD
Welcome to python, a language that is not strongly typed
i never did it
i wanted to try and see if it COULD work
and when i saw nothing being called i was like
ok is not working
i run the bot and the battle system works all good with level up too
okay? XD
i was about to delete it but i tried just for "what if"
Bro in our bots top.gg profile how to check how many servers it has joined
U can see it through dev application website
Ya but I wanna see something like this
Server count
It's your responsibility to post your server count to top.gg via it's api
You can do it yourself or use one of the sdks (that typically come with an autoposter)
Ohh we can do it over self
Damn
Yeah
https://docs.top.gg/docs/API/bot#post-stats is the endpoint to post your stats, and on the left you will see a tab called Libraries there is likely one for the language you use
API resource for a bots or apps on a platform like Discord
Perfect
Thanks
I didn't know about top.gg api
be real with me chat, do you think my prettier formatting setup is weird?
using require in 2025 is weird
yes i know, but i dont wanna rewrite this bot to use import.
its based off a random template i made and i just used it to quick start it 🤣
hi i am sorry i am new to bot development, would anyone have any tips on how to get started?
generally I like this guide webpage. it's pretty in depth but beginner friendly! https://discordjs.guide/
thank you!! also im promise im working on the commission in the meantime haha i just need to be prepared incase botghost explodes yet again
lol no worries you have your own time 😂
You recommended me datalix so I'm just asking, but it's asking me to select a duration to keep the server. Can I extend it past this period without having to setup another server?
ofc
its a prepaid server
you can always extend by 15, 30, whatever days
if you let it expire, it gets deleted
thats it
Ok just making sure because it's uncommon to select a term straight up unless it's monthly/annually billing
guys is ur bot's votes alright?
lmao i ended up upgrading my vps 
guess hosting 2 cassandras on 8gb machine is bad
i should merge em
Yeah, why?
It resets each month, you can check in #commands your total and monthly votes using -botinfo <your bots id>
im so used to it that i still use it
some dude like 4 months ago walked up after playing with my bot and said
"automatic system is boring i want a battle system like pokemon"
and i said "im not changing my whole game just for an ugly version of pokemon"
IF HE COULD SEE THIS NOW
😭
ive been wasting days refactoring everything for the new system and this is the shit i read lmao
does anyone know any alt detection methods? I have a website where users can verify and im kinda checking the ip, but it looks like this isnt reliable since many genuine accs are being flagged as alts
I love how clean this looks
i'm gonna make the hp bar a lil longer
and don't you dare look at it from mobile haahahahahahahahah
I’m viewing the image from mobile, wdym
that's a screenshot
from desktop
this is from phone
all the padding is messed up and the borders gone
Oh yea I’m not surprised, I also knew the image was from desktop don’t worry 😭
How are you setting the layout for desktop?
i use inline - true false
Ahh so addFields
yes
Are you adding padding?
yes
but on phone no worky
only desktop
i pad for 3 integers
when players will have above 999 idk i'm gonna see
(hopefully never)
You could potentially have the name and value in the same section which would keep the opponents health and stats together since I noticed the mobile it’ll split up
yeah wel let's say
i left a big warning
"this bot is supported for desktop"
like i cba
I left my laptop at home (2.5h drive away), otherwise I’d offer to help with the layout
Can’t do any programming until at least Tuesday (if I’m home by then)
I’m also presuming you use shorthand like 1K if they have above 999?
Fair enough
It’s pretty easy to set up, can create a simple function you can use over and over again if you wanted
does anyone here use nginx inside docker container?
im always curious how it works,, is it 1 nginx container that'll handle the proxies from containers to the world,, or is it something else?
It's rather simple honestly
it's like running nginx normally
you just use the container hostnames in proxy_pass instead
with a docker network setup so it can see everything
oh, so then the whole docker only exposes 443 and 80, correct?
yea
i see, that looks awesome. thank you!!
anyone use TickerQ for scheduling in their bot?
tried to link the github but got denied 🙂
Do u guys know if my bot will lose verification if i change its name? Not top.gg verification i mean like the discord one
Heard Hangfire was more used in the .NET world for job scheduling and such
You cannot change a bot's name once it's been verified
Unless it's a legal copyright claim/DMCA
Which in that case you'll have to go through the support portal and provide the necessary documents
Ah damn
that used to be the case but most are using Quartz
but TickerQ is the newest
Newest doesn't mean better
I'd take the good old common things people use
They're battle tested and likely better
same, but my orinal question was Do u guys know if my bot will lose verification if i change its name? Not top.gg verification i mean like the discord one
I changed my application name once and it was smooth
wo/ loosing verification
Once your bot becomes verified, the name change process becomes much more restricted:
- Name changes (both application and bot username) are only permitted in specific circumstances
- A legal copyright claim or DMCA takedown notice from a company regarding your application's name is required
- This restriction exists to prevent verified bots from impersonating other popular applications through post-verification name changes
If it's for a legal reason, yes, it will likely have no issues as the Discord support takes care of it. And even for such cases, heard Discord isn't really cooperative..
In other cases, you cannot change the name
Hence
idk man
we managed to get the name of DBL Stats changed
we literally just said "We're changing branding/Itellectual Property and need to change the name from "DBL Statistics" to "TopStats"
and they did it within 30 minutes for us
Exceptions to rules ¯_(ツ)_/¯
Just like lots of things at Discord
They're the definition of mess
wondering if everyone who develops a bot, does the bot status change after setting it on startup?
im having this issue , wondering if it is a discord issue or the lib I use
It does change
is this a known issue?
How can it be a known issue if it works as intended?
I meant, it does change if you make the code change it
I did via support
but it doesn't work as intended....the status of my bot changes to something I didnt put there after like an hour of being online
Sounds like an issue on your end only
yeah now that I think about it , it might be happening on Recconect
that happens with discord.js
when it re-identifies after a reconnect if the session is invalid
your best bet it to just change the status on an interval every 10 minutes
which is what most people do
I think I can do that in the SessionResumed event
but I also have a Quartz job that runs every hour that updates the status
I thought it might be a Discord issue but in fact it is a dev issue
thanks
Im watching the console for my bot , looking for SessioneResumed to see how often this happens
If you're using an older version of discord.js that doesn't support the "new" (almost like a year at this point) gateway resume endpoints, then you will get asked by Discord to reconnect frequently
c# dev
Mine changes every hour? I think
At least for one of the bots, I don’t think I have it changing for Toastoku without double checking the code
I had mine set for an hour but wasnt soon enough
You can’t have it too fast else it’ll get rate limited from too many changes in a short time frame
changed it to 10 minutes
It’ll pick a random one from the list you gave it every time you boot the bot back up tho if you’re wondering on that
no list..set to 10 minutes
If you don’t have a list it picks from, how exactly are you telling the bot what to change between
Ah
Gateway has a ratelimit of sending 120 packets per minute so if changing your status is the only thing, go wild 
Also, this same concept happens with other libs not just discord.js
ahhh good to know
I do mine every 5min as I have a lot of statuses to cycle through
no issues?
This is the only thing to worry about
Oh I had like 50 statuses for each presence activity so I had like 200 total I think at one point for one of my bots
lol
I think I only have the one status for the one that’s in here though
My lib has guards against sending too many packets anyways so I'll never have issues except packets getting queued if I send too many in the timeframe
I have one status but now you gave me an idea haha
yeah I have rate limit checks for most things
Be quirky
you as a user should never have to worry about ratelimits
lib devs should handle them for you
they do
good
for most things
not so good
but thats on me...I loop through all guilds to send notifications
The handling for rate limits should be baked into the request handler
I think it is
I need to find that file with over 200 of them and see how crazy I actually went with some of mine
but I still do a check
send message is 5 per second per channel. There's a global ratelimit of 50 requests per second
good to know
This is one of the ones I went with when I shortened the list
like I said...it does
then why are you adding additional handling
im ocd
never trust others to do a job for you
even IF they do it
always bites you in the ass
I partly agree with the statement. The point of using libs is so that you can offload development time to others which is huge if you're a solo dev. Even if libs have issues, you report them
Ive been around the ring of writing discord libs, compat layers, etc and it SUCKS. I currently maintain https://github.com/DasWolke/CloudStorm and other libs and there's still a bit I gotta do
Modular discord gateway library for microservice oriented bots - DasWolke/CloudStorm
holy shit thats a name i haven't heard in a while
Yeah. Older lib but finally modernized it
the goat

yea
Bloated code editors
but i do like it tbh 
liked it too much idk how to setup project in languages i learnt using jetbrains
that's why i code with pen and paper
and feed the bits manually to my cpu
with a digital spoon
@solemn latch
Was just about to tag, beat me to it (:
@shell tundra didn’t delete the messages
bruh wtf, i spent > 6 hours wondering why my nginx container are not able to access host port, it turns out ufw also blocks any interface, not just public 💀
there's literally 0 mention about ufw/firewalls on forums and guides i read
thats cause normally ufw doesnt block docker lmao
What would bots like circle or dyno even be called
Bot companies?
Cause they make money off it
Legitimately just Software Companies
A bot is a usable piece of software
Cause I’m trying to figure out what I label my stuff as, software company or bot company 😭
Yes but the issue is
Software companies using another software company
To market there company
😭😭😭
People do that all the time?
No I know I’m saying
Calling people who make a bot a software company
I mean you get what I’m saying right
They make a discord bot and call themself a software combo
Company*
I mean https://topstats.gg/ wouldn't exist without top.gg and https://top.gg/ wouldnt exist without discord sooooooo
still software
So those are legit businesses
But I mean
If someone makes a bot
And sells it with a website
Are they a full on software company according to other company’s? Probably not
Rythm was a legend💔
still is
I thought it got shut down???
it got revived
yea
Bro trying to make a music bot
Is hard
Af
Without root access outside a container if your using pterodactyl especially
just dont make music bots
Music bots are prone to copyright issues
Just seems like a pain when you could open a YouTube tab
Are they seriously still trying to revive rythm
if you're serious about it you're not gonna run it in a container vm
you're gonna have to build an actual dedicated infrastructure
@quartz kindle Im giving up 🙏 (for now)
according to my amazing estimate the 1:100 wouldve taken about 7 years
Well yeah I know of it
because something broke
I was part of their beta
Yeah I know
I was part of the beta
but I didnt think it'd really succeed
They are putting in massive amounts of money, didn't think they'd ever see a return worth continuing
I left the beta like mid of last year
Damn
Guess it's going strong
Surprising considering they pay for the music themsleves which isn't cheap
but ig 15 million servers with all those users
they'd make a return of their investment rather quickly
well
pretty sure they took the "Oh you mean youtube was threatened enough to actually shut us down? bet"
and went and licenced shit themselves
Yeah
basically made spotify but discord bot
Exactly
Honestly had youtube or spotify just partnered with rythm both could of made a good chunk of change
Though luckily for rythm they didn't
Being independent is better
true
lmfaoooo
and how large would it be?
@queen needle Dev Update on EOTE
Player inventory and beginning stages of UI exist. UI is not fully functional but soon I plan on making it so.
One design feature I am still deciding on is save slots. I am not sure I want to allow multiple saves that people can start games on. If so that means i'd have to rework player data and tbh I don't really know if it's worth it.
More news is that with the addition of EchoesPlayer class, getting data inside ECS systems is much easier and manipulating said data is also a breeze. Also with ItemContainer I can spawn chests around the world and easily implement looting, since it'd work for NPC corpses as well.
Current state of UI yes ik it sucks
Yeah
UI design is not my forte
might get someone else to draw a mockup for me
in like figma or something
If I have that it should be easy to implement myself
I am shocked by how much i've gotten done as a solo developer already
Between my overnight shifts at work and hanging out with my girlfriend
I've gotten a lot done in 4 days
I am still not super happy with the codebase, but for my first time genuinely coding a game it's not the worst either
you can always go back and redo the codebase
Yeah
It's already chonky as is
and I am still not even 5% of the way there

46 files
in my src folder
that's including in subfolders
dude you CANNOT make this shit up
i wasted 2 hours trying to understand why sometimes my battle system damage wouldnt get logged/updated for the enemies
and even more weird it would happen ONLY to ONE kind of enemy
so i added print statements all over my function to debug the actual stats as so
and i swear the HP update were correct in here but in the embed were wrong?
(it must be the embed being passed somehow wrong?)
no bc they use the same dictonary to get the data
behold THAT ENEMY HAD A MOVE TO HEAL SO I DIDNT NOTICE UNTIL I READ THE ACTUAL MOVE
FFS
so i would deal 3 damage and he would heal 5 -> output would say 3 damage but his hp bar would be full
fuck my kappachungus life
thanks for reading
lmfao
I’m learning UE
debugging gonna be hell
that’s what i was thinking too, ufw default deny incoming could this be the root cause? i did this right after i bought the vps
possibly but from experience with ufw and docker
ufw has never blocked docker for me
hmmm that’s interesting
Indeed that is the case
My clothes are getting taken from my avatar and so are my shoes to
I am not getting in the rooms cos of a this
Normal development question I guess
What the actual....
🙂
How is the background theme made? Like CSS or something?
@zinc fable
You can use css to change it yeah, inspect element is handy to see classes you can use
I have a different font and part is coloured differently
does someone know how to migrate from .json to mongodb?
i have found out how to use, thanks
This may help with that
tysm!
You’re welcome
trait hell
pub trait BackupExt {
async fn restore(
&self,
server: &crate::server::Server,
progress: Arc<AtomicU64>,
total: Arc<AtomicU64>,
download_url: Option<String>,
) -> Result<(), anyhow::Error>;
async fn delete(&self, config: &Arc<crate::config::Config>) -> Result<(), anyhow::Error>;
}
pub trait BackupCreateExt {
async fn create(
server: &crate::server::Server,
uuid: uuid::Uuid,
progress: Arc<AtomicU64>,
total: Arc<AtomicU64>,
ignore: ignore::gitignore::Gitignore,
ignore_raw: String,
) -> Result<RawServerBackup, anyhow::Error>;
}
pub trait BackupFindExt {
async fn exists(
config: &Arc<crate::config::Config>,
uuid: uuid::Uuid,
) -> Result<bool, anyhow::Error>;
async fn find(
config: &Arc<crate::config::Config>,
uuid: uuid::Uuid,
) -> Result<Option<impl BackupExt>, anyhow::Error>;
}
pub trait BackupBrowseExt {
async fn open(backup: &Backup) -> Result<impl BackupBrowseExt, anyhow::Error>;
async fn read_dir(
&self,
path: impl AsRef<Path>,
per_page: Option<usize>,
page: usize,
is_ignored: impl Fn(&Path, bool) -> bool + Send + Sync + 'static,
) -> Result<(usize, Vec<DirectoryEntry>), anyhow::Error>;
async fn read_file(
&self,
path: impl AsRef<Path>,
) -> Result<impl AsyncRead + Unpin + Send, anyhow::Error>;
async fn read_files_archive(
&self,
path: impl AsRef<Path>,
file_paths: Vec<PathBuf>,
) -> Result<impl AsyncRead + Unpin + Send, anyhow::Error>;
async fn read_directory_archive(
&self,
path: impl AsRef<Path>,
) -> Result<impl AsyncRead + Unpin + Send, anyhow::Error>;
}```
god, what am i looking right now
when rust is rust (I think that's rust)
Yeah crate
That's rust
End me
fn impl trait pub 
Any other command to check
You could try doing -bots if Luca still works
-bots
Or actually idk the command
Used to be one to see what bots a person has
You can just go to https://top.gg/user/DiscordID
But it's was not my id
You have one bot on the site
https://top.gg/user/774455246222262272
Thanks you ❤️😁
hola
Hi
my brain has been killed https://github.com/pterodactyl-rs/wings/commit/61478930255781a2440de26bd3f6ecbef967cd12
@solemn latch
uhm
What happened to my message
@queen needle Update 3. Re-worked my UI library that I am making for ReactLua that is based on https://mantine.dev. Right now I only have theme customization supported as well as a basic text button with 3 variants. Ghost (top), Default (middle), and Outline (bottom)
Ooh I love that
It uses Material UI's color scheme as the default
holy cow react x roblox
Yeah, roblox ported it over and then some other group took over
is it more like react native or react?
React
oh wow
The api is pretty much 1:1
Your not has to be accepted first
bot*
not
it is accepted, listed on the site for over a week
Cause I can use JSX
import React from '@rbxts/react';
import { px } from '../composables/use-px';
import { Panel } from '../components/Panel';
import { TextButton } from '@rbxts/lumina';
export function MainMenu() {
return (
<Panel inset name='MainMenuGui'>
<frame Size={UDim2.fromScale(1, 1)}>
<textbox
AnchorPoint={new Vector2(0.5, 0)}
Position={UDim2.fromScale(0.5, 0.28)}
FontFace={Font.fromEnum(Enum.Font.Gotham)}
Text={'Echoes Of Eternal'}
TextSize={px(32)}
/>
<frame
AnchorPoint={new Vector2(0.5, 0)}
Position={UDim2.fromScale(0.5, 0.4)}
Size={UDim2.fromScale(0.25, 0.48)}
// BorderColor3={Color3.fromRGB(255, 255, 255)}
BorderSizePixel={0}
BackgroundTransparency={1}
>
<uilistlayout
Padding={new UDim(0, px(15))}
VerticalAlignment={'Center'}
FillDirection={'Vertical'}
HorizontalAlignment={'Center'}
/>
<TextButton variant='ghost' text='Continue' />
<TextButton text='New Game' />
<TextButton variant='outline' text='Settings' />
</frame>
</frame>
</Panel>
);
}
😭
@harsh nova hello mr, someone needs their role
only possible with roblox-ts
interesting, looks like svg but not xD
yeah im pointing to like insets, anchors positions
Ah yeah
inset is because the top part of roblox's ui is dominant to their own topbar
inset allows you to ignore it and have your UI take up the entire screen
If you've ever used Unity UI then AnchorPoint's make sense
Once you posted it, it needs to be accepted, it will be added to the queue for reviewers to test it all and you can check #mod-logs for your bots id to check if it’s been accepted or not
I do too

You dont unless you pay
I highly recommend hosting on a different service. Replit is not intended for 24/7 hosting without their premium tier, and even then I wouldn’t recommend using it as a hosting platform
Oracle has a free tier VPS that should work for small bots that don’t need super high performance
@pearl trail @queen needle tiny update. Added 4 new components
Container - Simply centers content on the screen horizontally/vertically
ImageButton - Similar to a TextButton (nothing too special about it)
TextLabel - Can be used as a normal label, or if you child it to an ImageButton it acts as a label for it.
ThemeSwitcher - Allows you to switch your theme locally.
Thanks
It needs credit card tho
Anyone has an suggestion uptimerobot aint working 😭
You will never find a truly free option that doesn't require you to use a credit card to make sure you are both
- A real person
- In case you go over free limits
Lol
So long as you can prove you are a student at a school they will typically accept you
and it has offers for free credits at places like digital ocean and shit
I egypt
Nah
While likely no one will respond, connections is also a good thing, while you should always host your own things so you have control over them, I personally have some friends that'll host certain apis or websites for me, because they have the space and we are good friends
Having connections can be a life saver for sure, before I changed hosts, a friend and I would often change who’s hosting depending on who could afford to pay it
Having friends is different than having connections
You can be friends with pretty much anyone that wants to be your friend, if you want to be theirs, while not every friend you have will be a programmer/have space to host/can afford to host extra stuff
Yes, until less than 2 weeks
Yes but you know. Its hard to have "connections" since I dont lie about age
Age isn’t a factor?
^^^ I have many developer friends who only host their own stuff, but also if something came up and they needed 2 months or so of hosting or someone else did we'd help them out
I’m confused? Age isn’t always a factor when it comes to having connections, you don’t need to be a certain age to have them so “I don’t lie about age” wouldn’t make much of a different here, also why did my age get brought into this?
I started programming around 11-12 and that is when I met these friends, age doesn't matter like noah is saying, same with connections
There’s one friend that I know would host something for me if I ever needed them to, and vice versa, I think besides my own stuff I’m only hosting one other thing for another person simply because I offered due to having space (I was also the one who wrote the code for it)
-# I’m honestly more curious why my age got brought into the conversation 😭
i host my websites on vercel, and then for anything non website I usually get a friend to host it(db or api) but like in exchange, I'll help them or do some stuff for them
Simple, you're old(I'm joking please don't hate me)
But yeah it's irrelevant it's odd it did lol
-# heyyyy I’m not that old, don’t worry no hate coming from me. Definitely odd though 😅
I mean I turn 19 this year so I can't speak much
Yes, I agree.
Honestly, buy a raspberry pi. Ask for it for your birthday, or some event if you’re in the financial situation to afford one. Host your own pet projects, it’s good experience and also you’re not limited by free hosting services
best advice^
They aren't too expensive, unless you bought one during Covid like I did
I think you can nab one for 50 or 60 bucks now
I got a pi 4 as a birthday gift when I was probably 12 or 13, 4gb ram and plenty of cpu to run basic apps
I’m 23 later this month, as for hosts though, I host my website and 2 of my own bots, and the one for a friend on the same host, it would have been around £9/$12 but that’s with a dedicated ip addon I have, the initial price without that addon is about £3/$4
I’m eventually planning to get myself a pi at some point
GitHub education also offers free digitalocean credits ($200 for one year)
But yeah if it’s difficult to prove your educational status then it’s hard to get them to manually approve you
Mine was for christmas, I only know the price Because my dad didn't know what it was so I had to find the exact link and send it and he bought it right there
Though if you have ANY form of ID, even something like a report card with a date on it, they’re pretty good about manually approving you
they can use your school email iirc, I believe I got it that way
Also, dedicated IP (if you’re doing it for something like a domain name) can be solved by running a cron script that pings cloudflare from your current IP and automatically updates your corresponding record
Free to set up as well, if that’s what you’re using it for
Highly recommend
It was for my main bot but my domain is linked up to the same project
I don’t actually use cloudflare at all for that either, so how would that have worked?
Oh sorry I didn’t mean cloudflare, some domain providers have that service
I believe I was using namecheap for that one
Fair enough (:
I think most providers support it
I’ve never used that site 
Eh I think $100 is overkill for pet projects
Still way cheaper than buying a vps tho
That’s Amazon for you
$50-60 is the perfect price point for entry level self hosting
Meh, you'd see your return eventually
Definitely wouldnt recommend right off the bat
But it'd be a next step
60 Dollars may be an meal for 5 days+ in Egypt
1 dollar = 50egp I think
Chicken =250egl
Egp*
The 2.5L Pepsi bottle less than a dollar
Love to see it
Looks awesome!
dang i see, is your game will be 3d or not? havent seen any game with light dark theme switcher before 
I mean he can correct me but I think the theme switcher is to show off the UI lib and it's features
If you're gonna pay that price, check out orange pi
I have an o pi 5 8 core 16GB of RAM
Had to buy the brick and a case separately, but it's doing wonders for my projects
not strong enough to run an MC server sadly but whatever
It only walks
quien tiene algun codigo de comandos de cacino?
looks clean, would be nice to see which primary tab you're on tho!
buy a used dell workspace 
Yeah it’ll be a 3D game and yeah no game really has a theme switcher which I think is severely undervalued
Ahaha yeah, you’re not wrong about that, showing off the ui lib and its features is part of it. I also think it’s an important feature to have. Not everyone loves a dark UI or a light UI
Giving developers the power to give their users the choice of both is good
Ahaha
I’m planning on working on using Roblox’s new DragDetectors
Sky’s the limit with that
Sliders, draggable grids
Anything really
LMAO
Oooh can't wait to hear all about it
So cool
Thats my simple health check web interface. Not customizing because, Its not the main idea. The main Idea is An Security bot.
an economy system with gambling
Nothing screams more secure than gambling your life away 

99% gamblers quit before they win big /j
or die trying
Fr
I will build mrbeast scam bot then (jk)
Security features of course :P
Depending on which features you add, make sure commands that need certain privileges on a server locked behind the correct privileges
It’s one of the easiest mistakes when you’re still learning don’t worry
Alright.
When you get used to them, it’ll become second nature
The biggest problem was database connection
Like I need database for scammers and then I get misconnection with some other functions.
Hopefully it works.
Yeah if you’re not familiar databases they can be tricky, it’s why most people recommend starting by saving data to JSON files initially as they’re pretty simple
Which database type are you using?
It wasn't json database for the boy
Bot*
SQL I think is the correct name
It's replit one not to lie
Found free host!!
Ads for hosting!!
Ahh, I don’t use sql so wouldn’t really be able to help there
I don’t pay for a database, just the host to keep mine online
10 coins per day with ads and I got to pay ten per week
Oh.. Interesting.
If the host works for you then good on you
I am think like it's good
Like after 8 hours ten free coins
Interesting like I might get the monthly soon
@unreal mist thanks for your help and chatting with me
You’re welcome
Bruh
I've asked this before, but if I create a system that verifies if a user is present in a specific server/guild, do I need to be worried about rate limits?
What scale are you operating at? I honestly need to do more research into throughput.
I use replit to be honest
What I'm referring to is how much are you hitting that specific endpoint to verify if a user is in a particular server?
Let me check
Oh shoot! I didn't mean for you to look too deeply into it 😅 – but I appreciate it!
No problem.
It says 3-5 I got anti raid that's why
You also better get anti raid
It detects mass joining users
Just to mention I might not understand question as I am not too much experted but working good
Maybe I didn't phrase my context correctly.
I'm building a system where users can "claim" tickets, but they will get bonus tickets if they're joined to the community server for the bot. So each time they go to claim their daily tickets, I will double it if they're in the community server.
Oh...
So I need to use some sort of Discord API to determine their presence in a server at "claim" time. I'm basically wondering if I should cache the members in my server or if I'm okay just one-off hitting the endpoint per each user that clicks the button.
I don't know about that sorry.
I think cache would be better.
Also ask expert
Cache would work, but requires more work.
well, it depend by how you check it, and when you check it
Because of throughput limits?
Lol I disagree
It's not true like it's joke
haha gotcha
I spam aushshsjs and it hurts
@long marsh but if you are trying hard it is
But not in all cases
How long have you been developing, Glitch? I'm not asking this to be derogatory, I'm just personally curious.
discord's rate limit?
It's ok.
1 year almost
I am 14 and starting to build cv.
That's why I may not be too much experienced
There's typically different types of limits, but I was curious if you meant the throughput in particular or by the total rate limit.
That's awesome! How much do you use AI to develop your applications?
I started developing when I was 12, so I feel you on that.
It's fine to use AI, but imo, only when you understand the concepts / flow of programs.
Yes of course
about to talk about the rate limit, that's why im asking how you check them,, i've never seen "throughput limit" on discord's limit.... i may not know that
Like program GTA 6 for me in json only 💀
tbh
I just maintain my own cache for this kind of stuff
aka just a basic hashed user id -> array of hashed server ids store
But Kali isn't
If I think about maintaining a cache, I'd need to first have a bot user listen for server joins / departures, then update a cache. Unless there's a better way
yeah, thats the main issue for an accurate cache
Exactly
in most cases you can just fetch and store for future use
but ofc will be less accurate
so it checks the mutual servers between user and the bot?
I am asking ai to make GTA 8 in JavaScript with no mistakes @long marsh
My current bot isn't even a gateway bot. I'd need to create yet another purposed bot for this one-off case of a cache. If I need to do it at scale, fine. But if I can get away with simply one-off hitting the Discord API ... I could probably get away with that for a while ... at least until the application hits a few thousand servers.
I agree
But I was gut checking with you all to see if there's some crazy small limit that I should be worried about.
ah, a webhook bot
i'm interested is there even endpoint for that 
If you may get possible raid, ddos etc... you need limit @long marsh .
Of coursem
I'll have application logic in front of it before it hits the discord api to verify.
Course.*
may i know what is that
Nope. I'll just need to verify is a player using the bot is in the community server for the bot. And I reward them for that.
Player clicks "claim" in whatever server they're in, it verifies that they're at least JOINED in my community server.
@long marsh I am adding an legal command to my security bot !nuke
It's connected to Iran's nucelar
: 💀
I'll have things in place before it attempts to hit the discord API:
- Check if the user has already claimed, don't hit Discord API
- Check if the user is using the bot in the community server, don't hit Discord API
- Finally, hit the Discord API to see if they're a member in the community server and award appropriately
This is an action that can only happen every 24 hours.
ohhh, so it's just checking if the user is in 1 server? the rate limit is like 1req/s per guild, 50req/s globally , so depend on your base
!nuke <country> <Rockets number>
Isn't 50 high?
depend
We can understand you so it’s alright (:
I saw the global rate limit. Definitely not worried about that one. 50 requests/second is plenty even AT scale lol. My game has tops 10 - 15 concurrent players at any time. And for my use case, I'll only need to hit the API once per day for them.
Where's the reference for 1 req/s per guild. That one is a little more worrisome.
I was thinking about using this:
https://discord.com/developers/docs/resources/guild#get-guild-member
If the member isn't in the guild, 404 I assume.
Just added automod and logs in my bot
Not gtg the clear and lockdown command needs matience.
yeah, that one is good, you just cache it with ttl like around 30s and get from that, but the memory usage will be slightly higher depend on the member count... i haven't checked if the 1req/s is right so it may be higher.. been a while not doing discord thingy xD
I don't really need to cache since the player can only do it every 24 hours. So, at most, I'll hit the discord API per each player once per 24 hours.
I'll need to basically do a quick "is this player there" check ... then continue. They won't be able to get to that path again for the next 24 hours.
oh wait my bad i thought you referred to /guilds/{guild.id}/members xD sorry. yeah that's totally fine. if you want to make sure, try see the X-RateLimit-* on each request made
Ah yeah, I don't need to lookup all the members of my own server. I would likely do something like that when I start caching in my own service layer.
And cache it for some time like 1hr
Everything fixed...
@long marsh I am adding in my bot that when mass people joining it detects ip and if its same it bans them also detect devices is that counts illega to dis and top.gg?
I honestly don't know enough to help you with that. I've never been involved in that domain.
Good luck finding out that answer though 😄
I am nervous thi
Tho*
Thanks
Removed Ip detection not going to take risk.
self.cleanup_tracking.cancel()
Lol leaked one code
Callback commands broke my bot lol. It's now sending two same reply 😂
this view looks awesome for nerds like me lmao
you run jellyfin server from your mac?
That reminds me: I need to upgrade my NAS server.
nope, on my vps. that project is to integrate your jellyfin activity to discord activity
xD the storage capacity?
Everything. The server sucks and it only goes up to 1TB
Ive had it over a decade now
It's also slowing down lately
oh damn, didn’t knew there’s nas with up to 1tb
?
A network attached storage?
You just keep adding in hard drives?
Maybe I'm misinterpreting what you're saying.
@long marsh I repaired the bot lol
It was due to I ran it from wrong replit account like old version
Old version was buggy that's why
Great job :)!
I am using hard drives. attached storages may accidentally gets deleted and gets hijacked in case of being celebrity.
How’d you manage that?
It's not manageable
Their function broke the messages so it made a request to duplicate respond per 1 respond.
And the duplicate blocker made it triple for one respond.
Hopefully it's fixed.
i thought the server only supports up to 1TB 💔💔
Guys guess what
sftp://nova.nodes.sillydev.co.uk:2022
Finally
@long marsh I got server host should I upload my bot as zip file?
Or I can't use zip
If anyone know can you answer me
Whatever your hosting accepts
I know some of the "discord hosting" providers require you to upload your bot's files as a zip file
Nothing on their website indicates how you should upload the files. It would be best to ask their support
Ok
Does it have an upload file icon anywhere in their panel?
Are you trying to upload individual files at a time or the full zip?
So having a command or dropdown menu selection of swittching a channel into nsfw channel can’t be approved?
@shell tundra do i need to remove the whole function or i can set it to age restricted channel or adult channel?
set to age restricted, remove any mention of it from top.gg description
Oh ok thanks after that reapply?
yes
Ty
Lol
I mean, I’d say that this is more of the job of version control
Same
i asked chatpgt to make gta6
then said this
"thinking longer for a better answer"
bro was 100% telling me to kms
HAHAHA
? That’s just what it does

Lok
Added a new Avatar component to my roblox reactlua ui lib
Supports 3 different types (Headshot, Bust, Full) and 3 variants, Circle, Square and Rounded
has anyone used yugabytedb before?
So the minimum to apply for intents is 75 right?
I'm going to fill out the form (bot in 79) and it says that I don't qualify
Lua programmer?
xD i hate that on slower macs with discord minimized, there are chances that discord won't respond to ping even within 5 seconds for rpc
From what I've heard it's updated daily (if you qualify or not) so maybe try tomorrow
D?
can't imagine someone reported that message and you got banned for few months for saying that
that message you just deleted
omg! funniii
well appearantly discord take age seriously
how is that related to dev
I devloped girls
lmao
sometimes i wish people would get banned for being cringe
Sometimes no one askes bro.
also I didnt mention you in conversation you have option to not reply.
you're talking in a channel on a public server, think twice
same applies to you
whatever, no point in arguing lmfao
fr
Yes, I meant I wrote the message; if he found it cringe, he may not reply. That's the point.
Freedom of speech 🦅
Also updated my WinRAR
yugabyte very cool
stamp of approval
easy to setup and works as expected
(ignore node 2 down - my internet cannot survive 3 nodes)
What's yugabyte
multi-master postgres
Thank you
would definitely not recommend their hosted solution
(125€/vcore/month)
but selfhosted very nice
they dont lock anything behind a paywall
How easy was it to get self hosted?
like 5min work with docker
compose on "master":
services:
db:
image: yugabytedb/yugabyte:latest
restart: unless-stopped
container_name: 'hde01'
hostname: 'yugabyte-1'
ports:
- 15433:15433
- 15435:15435
- 5432:5432
- 5433:5433
- 7100:7100
- 9042:9042
- 9100:9100
- 18018:18018
- 9070:9070
- 7000:7000
- 9000:9000
- 12000:12000
volumes:
- /root/data:/data
command: bin/yugabyted start --base_dir=/data --background=false
compose on node 3:
services:
db:
image: yugabytedb/yugabyte:latest
restart: unless-stopped
container_name: 'hde03'
hostname: 'yugabyte-3'
ports:
- 15433:15433
- 15435:15435
- 5432:5432
- 5433:5433
- 7100:7100
- 9042:9042
- 9100:9100
- 18018:18018
- 9070:9070
- 7000:7000
- 9000:9000
- 12000:12000
volumes:
- /root/data:/data
command: bin/yugabyted start --base_dir=/data --background=false --join=yugabyte-1
thats it
no need to use cli
it just works
Damn
Idk docker but my friends do
Time to make them teach me
Or just have them host it
mmm, but there isnt much point in this unless u do scale apps over multiple servers
normal postgres will be faster for single-server/very small clusters
what the hell are all those ports
i just took all i could find in the docs
some of them arent even used
this was just a test setup
hmm I'll have to talk to one of my friends he uses postgres a lot, and he'll just give me a postgres url for projects, so he might want it
I still need help when setting up a domain 🥀
👀 really?
one thing thats annoying tho is that not all pg 15 features are fully supported yet
they were still on pg 11 in 2024
Hello, I need beta tester please.
┌─────────────────────┐
│ User Input │
└─────────┬───────────┘
│
┌─────────▼───────────┐
│ Permission Check │ ◄── Role-based access control
└─────────┬───────────┘
│
┌─────────▼───────────┐
│ Threat Intelligence │ ◄── Known scammer database
└─────────┬───────────┘
│
┌─────────▼───────────┐
│ Behavioral Analysis │ ◄── Pattern detection
└─────────┬───────────┘
│
┌─────────▼───────────┐
│ Action Execution │ ◄── Secure command processing
└─────────┬───────────┘
│
┌─────────▼───────────┐
│ Audit Logging │ ◄── Complete activity trail
└─────────────────────┘
Small explain of my bot
Removing scammer option
Docker is super easy to learn
There’s a few caveats and things to learn with how caching works and such but it’s super simple to get things up and running
ALGUIEN ME PASA UN CODE DE UN BOT DE MUSIC?
yuga uga booga chaka
Lets see if you understand this and did i write it ok
https://docs.fluxpoint.dev/devspace/guides/what-is-docker
I need to host my bot, I tried with FPS but I got errors on some of my commands
Please!!
yow this is cool, is it horizontal scaling?
or like master node with read nodes
also how does the data works?
all the nodes have a shared folder?
Actually, Its weird.
Like I earn credits for being afk on ads.
And my renewal is too low; I can get that in under one hours.
everyone is a master by default
so everyone can write, it's synced and locked over the web
vertical and horizontal
no, they store it all in their own directory
ohh, i suppose that your composes are run in different servers yeah? because i thought you run those on 1 server and have all the volumes to /root/data 😅
yep, all on different servers
ah that makes sense. gonna take a look into it cause it's interesting xD
yeah, just make sure you have a good amount of bandwidth between the servers
multiple masters need a lot of bandwidth
Exactly.
I an suprised or people who submit their bot without checking every function.
let's see about that lmao, thanks for the tips :D
Got a database.
Derek translate this
GDFGIFDGJFDJGFDOIGJIFDOG
What part of that needs translating? Just curious
Wait, I’m confused, what’s not a word 😭









