#development
1 messages · Page 44 of 1
but u shouldn't expect for those data to be useable on the other side (in the case of applications)
some apps have lots of roots in the user folder
idk why u bother tbh, it's supposed to be private anyway
it's just an id for that folder
so you risk krangling your system because of a folder name?
sanest windows user
I'm looking for a managed postgres db, any suggestions?
either Scaleway or DigitalOcean seem good
used both and had a good experience with both
or ovh
(never used for db but good host)
hi
how do I delete all the massages of a conversation?
of a channel you mean?
Yes I guess
your best bet is simply deleting the channel and recreating it
you'll quickly hit the ratelimits for big channels
nope
Well... Thank you I guess
bros got sus DMs
what would be the best way to make a request like this expire after 60 seconds?
what language?
js
is time in ms or s?
ms
what would stuff be? a function to send the original message?
no, a function that'll run after the set time
ah, so I put that timeout thing after sending the original message?
yep
k, thanks
what if someone deletes the original message, would the code error out trying to edit the msg?
yep, u need to catch it
so, try timeout and function, catch error and just return so it doesnt log?
dont use try-catch cuz both the timeout and edit are async
u need to use .catch on edit
like this?
kinda, u need to write something inside .catch(error)
I mean basically that should work, too as editing a message would never require permissions for the message owner
they'd need to defer before for editing the message directly
But still, it’s a message webhook not a normal channel sent message
I would go with the interaction webhook edit variant here
on the side
Show the code please
setTimeout Lol
ah true
well that link to the code uses my screen size
That’s as bad as discords code blocks
I think I already got it fixed with this
Roger
I guess it just doesnt error know, but the code aint executing it seems
setTimeout(() => something(), 60000)
or
setTimeout(something, 60000)
() => something will not work
yuh, using () got me the first log
I am stuff
next error (ignore the catch, i wanna get the other part done first), ig its because uh, idk. I should probably edit the webhook as someone mentioned, how would I do that?
You need to set the fetchReply: true flag when replying to the interaction
Or whatever it’s called
Threat it as interaction webhook please
As I said before
interaction.webhook.editMessage(…)
To prevent fetching it for no reason
(if it’s still the original response to whatever interaction)
Also discord only edits parts of the message you actively specify
for some reason the message stays the same
If you don’t wanna edit the embed(s) but only the components then pass them as option only
Show me what you did
Why are passing the message as json as embed?
.catch((error) => {return}) can be resumed to .catch(() => {}) btw
paypal is such a pain in the ass to set up on websites 
Don’t you wanna disable the components only?
and edit the message to say the request expired
it is one of the worst apis to exist
Dot you wanna disable all buttons or remove them?
How many are they?
No you don’t need to create the entire components again
You can just edit them
interaction.message.components[0].components[0].data.disabled = true;
interaction.message.components[0].components[1].data.disabled = true;
Then edit the message:
await interaction.webhook.editMessage(interaction.message.id, { components: interaction.message.components }).catch(() => {});
The message object already stores all action rows and their components
That’s why you can simply edit em
Then push them back as components when editing the message
These 3 lines will just disable the first two buttons of the first action row of your original interaction response
ah, next issue, can I somehow know if either the message was already edited by the bot or get the embed content? interaction.message.embeds doesnt exist in this case
I believe messages have an edited property, or I'm mistaking with another api
check the docs nonetheless
the true question is, why?
to check if the user already said no
simply cancel the timeout
store the timeout in a globally-acessible scope
like in an array or map
preferrably a map
Either that or create a component collector
I just realised, an edited property wouldnt even work because the interaction var isnt updated, right?
ye
Once the user presses your no button a new interaction is triggered
we're talking from the inside of setTimeout
like, the code to process a "no" is in another file from what I understood
yu
they want to prevent the timeout from doing whatever it'll do if the action was already processed
Does that actually matter?
For Looks, yeah
pretty much, else it'll edit the message after the user already answered
for if the game started I already have a working check
Let the timeout does it’s job, catch nothing and if somebody presses no, disable the buttons immediately
it'll still edit the message
and trigger any other processing they might have inside timeout
No if it is disabled already nothing will happen
Discord compares the old and new message state, if both are the same no edit will happen
that doesn't count for non-edit processing
like if they wanted to add cash to user's balance or stuff
plus it's one extra request
and one extra async task
If somebody will press no, then immediately edit those buttons anayways… it doesn’t matter anymore if the timeout will try to edit the components (again)
that considering if, and only if the sole purpose of the timeout is to edit
It’s just there to disable the buttons if I understood him right
for now, yes
it'd still waste 1 task + request tho
you usually want to stop your cancelled tasks
True but that seems to be an issue how he has built up his code
I mean bind the timeout to the channel for example or to the message as property
That prevents you from unnecessarily creating a var in a global scope
Can’t think of an easier solution in this case to stop it then if you want to
messages keep the property even on fresh events?
I was worried djs might cache messages
It does iirc
tf
Only a few amount of messages
Fetching the message which hasn’t changed in a short period of time should get it from the cache
But anyways, he could also create a property to the channel
Or user
Or member
Etc
Depends on his needs and if somebody else can access or stop the timer or at least triggers a stop
huh
message must be fetched, and...why are u passing the id?
interaction.editReply works though
No this error means your interaction doesn’t have a message property
This is the case for command interactions for example
Since they CAN NOT have a message property
As it’s your job to respond with one or something else
You can respond with that to a button interaction for example which a message with its components (and maybe others parts) as reference
Which is assumed you would
If not we should begin by the start again
With you telling us in words what you actually wanna do
Heyo!
If you want to disable the buttons after the timeout after executing the slash command, then yes you will have to fetch your reply
Question?
If i had a list with user ID's, how would I call the list to check to see if the user is suitable for the command.
E.G:
if(list ect (interaction.user.id))
//execute command here
}```
You can still use exactly what I wrote above to disable the buttons
Make the list an array and check if the interaction user ID is part of the list
[id1, id2, id3].includes(interaction.user.id)
depending on what ur doing, a database solution would be better
Thank you! (Database is being worked on when i have a full day to do it, on a testing bot)
For now its only 3-4 user ID's 🙂
If your first reply is a response to the slash command then fetch your reply like so…
let reply = await interaction.reply({ …, fetchReply: true });
No in that scope you wanna disable the button if I understood you right, so you need the fetched reply
You can still use what I wrote above to edit the components
But the reply var now is your message object not interaction.message as it doesn’t exist (yet)
reply.components[0].components[0].data.disabled = true;
reply.components[0].components[1].data.disabled = true;
Then edit the message:
setTimeout(async () => { await interaction.webhook.editMessage(reply.id, { components: reply.components }).catch(() => {}); }, 60000);
Weow
Took ages to write
Builders and those var names are killing me
And collectors 
that's no corset, that's a literal PVC pipe
btw djs now has those classes separated so you have to do shit like new ActionRowBuilder(reply.components) to make it editable
although the old way might still work, didnt test
djs truly has become prototype pollution
truly deserving of the name dicksword.js
dickscord.js
classes to represent every tiny little thing is kinda dumb
Wut
Don’t make me cry boy
const papi = new PapiOphidian("yes")
papi.giveMoneyPls()
I bet you can still (and hopefully always) just access the raw object structure
facts
nope
Oh man
pretty sure you can
all of the properties are actual members and not getters
djs goes out of their way to create a gazillion classes for everything, but they dont go out of their ways to prevent people from accessing the raw stuff
Yeah…
they use underscore private props, not es10 hashtag props
You just gotta respect their stupid camelCase etc transformation
But one more reason to not use this ugly builders
throw it in the garbage
bae bae bae, what are you doing in system32 bae?
Or wiping the drive
tried turning off sysmain cuz it was causing the 100% disk usage
that's not how u do it
jenius
wdym
Turning off system host process fixes any issue
disabling windows fixes windows

windows + R -> services.msc -> SysMain -> Startup type: disabled -> Stop
cant have any errors if nothing ever loads
serivices.msc wasn't opening u can see me there tryna run that
You can still access the services in your task manager to stop em at least
well the process was popping up in da task bar but the window never popped up
not sysmain
windows + R, not cmd
tried stopping everything I could until a blue screen of death they kept rebooting themselves
(the processes that caused 100% disk that weren't necessary for windows to function basically bloat processes)
doesn't matter, but I did try in both
Here's a video for your travels into madness: https://www.youtube.com/watch?v=x0ZfwSQDLK0
Si tu donnes un morceau de pain à un pigeon, il faudra attendre un petit moment avant de voir une horde de pigeon s’abattre sur toi !!
C'est une animation que j'ai faite sur Flipnote Studio avec ma Nintendo DSi ! Je dessine tout dessus puis je transfère les dessins sur Windows Movie Maker =)
C'était vraiment fun à faire !
Watch out when you ...
start the pc in recovery mode
tho at this point the pc is such krangled that ur better formatting it at once
all I want is to copy 1 single folder
idec about my games I'll just replay them from scratch
enter recovery mode
Which proves what I said earlier about there’s malware or even legitimate bloatware on your system which should not make its way on your backup
recovery disables almost all background tasks
thing is, bae wrote the malware
yeah that bloatware is windows official bloatware that came with it, never gave me such issues besides sometimes popping up while I was playing and slightly slowing down my games
now windows is having a seizure trying to stay upright
bro ur talking about the thing I did 3 years ago WITH A DIFFERENT PC
Can’t be so complicated to open the file explorer and save your stuff to an external storage or create a partition of your drive, install a bootable device and format the other partition with your system on it
my pc would be soo fine if only those bloatware fucking updaters shut the fuck up and stop tryna install they shitty updates
uninstall them?
I can't do that unless I make my PC usable
the programs that cause the 100% usage are the programs that look for and install updates
And he uses hdd
He managed to barely recover the pc from a catastrophic failure yesterday, windows is probably trying to recover consciousness
yeh cause of the usage, so I tried disabling sysmain (the main culprit) to decrease the usage enough to be able to copy some files over
Then boot in safe mode, delete some stuff to get free storage, create the partition, save your files, reinstall the system
I think I did but I got any cause of the blue screen so I will continue this tomorrow most likely so wish me luck 💀
new SSD is already been orderee btw
Can’t be hard to figure out what’s so big on your disk reserving space in safe mode and delete it
can not
usage too high hdd unresponsive
still takes about 1 hour from booting up into desktop for even the icons to load
your drive shouldnt even spin up if you're not booted off it
so gl copying the couple GB of files I wanna copy
hdd isn’t loading anything when booted from usb drive
Oh it will
until you go access the files
It will always spin
After a while yeah
they stilk spin but the pin inside it doesn't touch the hard disk
or do they actually stop?
hibernation?
they stop when not in use
Spinning or not doesn’t change anything in your case
Boot from a drive and perform your actions
OR
Boot in safe mode and do it
I still don't have any other drive
Issue solved
I will attempt booting a in place windows tomorrow
I also wouldnt turn on the pc unless you're doing one of these
Then boot safe mode and REMOVE STUFF YOU DONT NEED, create a partition and SAVE YOUR STUFF ON IT
The 50th time
ok I will do that tomorrow
I am saying that
to boot into in place windows I need safe mode anyway
Remove anything you find which isn’t in the windows folders
🗿
we will see what happends tomorrow I'll share if snything happens 💀
For real… things aren’t that complicated
It's not about storage usage, it's disk usage
Sysmain coupled with antivirus + update working like crazy are taking 100% of disk time
That's why nothing responds
It happens when the pc recovers from a serious crash, especially noticeable on hdds
restarted the thing and left it running in the total of 4 hours on desktop with no apparent improvement
apart from that one time usage dropped to 50% for 10 seconds
my PC was so usable task manager opened instsntly
Yes it won't, because it's working painfully slow due to all the stuff trying to run at once

W10+ aren't really meant to be ran on hdds anymore, windows uses way too much disk time
Disabling superfetch/sysmain usually frees some of the burden, but u obviously cant do that rlly now
Open windows in recovery mode, disable sysmain, reboot
If there's any improvement, get your data
If not, adjust the partition size and install linux to get the files
After that, format the pc
Windows 11 is pretty nice imo
Not too fundamentally different than Windows 10, but eh
elevun
my next format is gonna be win11 but ghostspectres edition
even tho my cpu is not approved for win11 lol
my pc isnt approved for windows 11, but you can bypass all of the stuff with the basic windows 11 installer, granted you need to use the command line and reg edit
yeah
Shocking how most of the stuff still works like core isolation even though my cpu barely missed the cut off
their cpu approval thing was pretty random tbh
older cpus are not really lacking anything
its tpm that was the main thing right?
power I guess
also rufus has an option to disable win11 checks when making the bootable usb lmao
which makes no sense, you can use windows 11 with your tpm disabled on a bios level no problem
I ran windows 11 for weeks without knowing
i have tpm 2.0 but my cpu is gen 7
theres literally no reason at all to lock gen 7 out
the only reason is "we didnt test it so we cannot confirm it works"
5head
The whole thing is shifting towards trusted computing which is its own can of worms
granted you need to use the command line and reg edit
please, haven't we learned enough lessons here about tweaking regedit?
There's a difference between fucking with your os and fucking with microsoft
Except the fact if you tend to manipulate and change things you still could in v10 you’re sometimes fucked in 11 due to its hardcoded nature
not too much reason to tinker imo
unless you're a power user. Then, Linux would make more sense than Windows
v10 is far more modable than 11 without having another layer running on it trying to reinvent things and make anything fancy bling bling, being still the same shit under the hood
the furthest I went is a clean install of everything and removing a lot of telemetry including with nvidia's gaming driver
Hmm I’m speaking about more deeper modifications you can do in the registry and group policy settings along with ui adjustments v11 simply hasn’t anymore
Also I don’t like the tendency to enforce the need of a Microsoft account
Even that got more complicated than in v10 as you have less control about the update policy and driver updates afaik
Also the enforcement you simply can access specific windows folder and files anymore
The system just doesn’t allow you to open the folder/file
There’s so much I need to do and can’t anymore
Even v10 “feature” updates were enforcing stuff like this already
I think there’s still a big difference between a power user and what I do and the reason why I do that but you’re not wrong with that of course
Man… another day of 4G dying - back to EDGE
I can’t get enough of that
Why are Discord tokens much longer now
Probably the same reason ids got longer
Probably not exactly the same reason, but a similar reason, yes.
IDs get longer because more user accounts are registered
I mean tokens are based on IDs a as well so
You use the user/bots ID in the generation of the token
Discord tokens have to be hashed so in order to maintain security, they probably changed the hashing protocol to ensure a longer output so that it's less vulnerable to brute force/combination attacks.
I mean before they were using some flask hash thing that could be easily decoded if you had the token
If that's about public tokens that's not too big an issue, really. I mean yeah it's still a security issue of course but if it's private tokens that's absolutely unacceptable 😂
Tokens should never be public
Discord tokens should never be public
depends???
Discord tokens, maybe not, no.
But yes discord was using a flask encryption thing
I'm not exactly sure. Not an expert on Discord API field.
One of my friends figured that out and got the original content of the token
I would assume someone's UID == personal token
No
what kind of token would be fine to be public?
That's public
The reason is the time but nice try 
Oh yeah that's true. Discord uses machine time for ID generation.
It’s part of the snowflake
Discord uses their epoch timestamp
Not on Discord, but there are systems that utilize a public token.
From when discord was created till now
Like GPG for example
Yeah honestly I wonder if it ever happens that a snowflake is assigned twice through sheer chaos and chance.
any token, it literally can never be shared
Discord takes the snowflake, current timestamp and worker/spawner and some random encryption junk at the end
It'd virtually impossible
Yeah token is prolly not the word I'm looking for.
I'm trying to look for the word but
Yeah anyway
Of course it's virtually impossible, yeah.
I just wonder if it ever happened and if Discord has any system in place to deal with those doubly assigned IDs.
Should there ever be one.
There's the chance of system lag and the fact that their Internet might be slow
Plus a multitude of other technical nonsense
ye
Probably happens quite a lot but since the worker and process ID etc are also part of the snowflake
Should never be yes as each process is unique
M'yeah. I know that.
I just didn't know the intricacies of it (yet) haha.
I apologize if I'm not 1337 haxx0r enough to be part of the cool gang club.
lol
I mean even without the worker and process IDs being incorporated it's still a time based id which i feel is relatively hard to get an exact match
Hard but not impossible. With so many API calls Discord has
I'd be surprised if there would never be any mismatches.

Well I did develop bots technically speaking.
I mean sure ig
But that won't really be an issue
There's a lot of technical stuff involved
I just use UUIDs :^)
Man inconsistencies are discord’s last name
Lol if that ain't the truth.
damn nvm 
Discord doesn't have a last name loser
Go take your night meds boomer
wow r00d
SHUT UP WHITR NAMR
😦
OH NO WHERES MY AUTO CORRECT
Okay watchlist
that's racist :o

colorist? role-ist?
Have already been called worse than racist
I mean you're on Discord so obviously.
lol true
Talk 'bout kicking in an open door
I mean aren't you fake?
Not that the rest of the internets is much better
Nope, grew up on it.
I’m gonna replace it for your sanity
No it'd look even worse trust me.
Oh you meant-- Nvm LOL
For, not with 🤦♂️
Classic dev thing
Okay devs
spent 7 hours on understanding the paypal api, finally got it to work
Most annoying thing that is totally avoidable with zero/little risk by Discord, about the Discord API
go
Oh man PayPal API must be tough yeah.
Sweet API-related nightmares dreams

you've made me remember that i have to finish off working with the api when i wake up😔
not looking forward to tomorrow 

With all this api talk
you guys should ditch djs and other libraries
and make your own
Lazy bums

We already have one lazy bum
we dont need more
@boreal iron keep being a lazy bum
we only need you
I know how you feel man… took me days to built my environment dealing with (re)occurring and single time payments and the cancel automation



In other words thrrr have been quite a few timeouts today and yesterday (again)

classic top.gg
fetch() best discord library ngl
and also https://npm.im/ws
LOL

You are disgusting
facts
I'm about to just move all of my projects to node built in undici
based

good luck
last time i tried it, it was trash
how so
is there any golang USB event monitor libraries without any c dependcies
it needs to work on windows
i just need to detect if there is a new device (USB mass storage)
had random connection issues and had no options to customize the agent
but its been a while, its probably better now
you can customize the agent now
Ask away.
"And they, in fact, didn't ask the question"
What could cause that error?
message: 'Invalid Webhook Token', code: 50027
Background: I'm responding with a modal to a command interaction and sending a follow up message (using a timeout - after 45s) in the case the user just closed the modal without submitting it.
The follow up message however triggered that error which doesn't make sense for me.
How can token be invalid? I mean it's no inital reply, therefore no deferring no 3s timeout...
I'm guessing API inconsistencies or an issue with the guild the interaction got triggered but... hmm just guessing
hey guys is there anyone here who had computing science?
If yes, i have a question
i have to find a function that's onto, but not one-to-one.
the function f : N → N is onto but not one-to-one, if we define it like
f (n) = n − 7. Would this be right?
yes
So now i need to find a function that's onto but not one to one
Give an example of a function from N to N that is
a) onto but not one-to-one```
Never heard that term before
Never heard those terms either
aight guys
Perhaps this isn’t a question I can answer :p
hi
Does chaining catch() to an un-awaited promise still catches it? I'm curious
yes I think
I had erorrs log into console from not awaited snippets
10 wot 😳
since it's you, the question is if it has been caught by node or catch
well that I cannot answer, I just know stuff that errored was logged by something
when I used catch I did a console log always
nah js I'm gonna attempt to get my hard drive back again today cuz I'm persistive
no need to help, at least not yet 😳
Yes
is there maybe another server that discussing these things?
👍
How can I consistently get the last monday and the next monday in JS? this is my current shitty method ```js
let prevMonday = new Date();
prevMonday = new Date(prevMonday.setDate(prevMonday.getDate() - (prevMonday.getDay() + 6) % 7));
prevMonday = new Date(prevMonday.setHours(6,0,0));
let nextMonday = new Date();
nextMonday = new Date(nextMonday.setDate(nextMonday.getDate() - (nextMonday.getDay() + 6) % 7));
nextMonday = new Date(nextMonday.setDate(nextMonday.getDate() + 7));
nextMonday = new Date(nextMonday.setHours(5,59,59));```
will my game be aight if I do that?
what does it mean by personal files
the source code for my game is in the desktop of my pc
personal files = all your files
yes...
don't format like that btw
what about programs and games like gta v warzone etc?
u dont need those constructors
EVERYTHING is deleted 
think OOP
wdym the usage isn't high outside of my desktop
ah
i use that code atm and it still fetches last monday 
...because when u login the stuff start running
at login screen, barely anything is running
if ur gonna format do it right
ye so why not reinstall? if sumn broke and it starts breaking my disk so when I reset it will go back to the way it was?
Oh God, we're still at Bae's Windows situation?
yes lol
you'll lose all of your files doing what you're doing
...format is literally reinstalling windows (or other OSses)
It's been 2 DAYS
but u said it keeps my personal files
no
🧐
the pic says it removes personal files
i said what personal files was
removing personal files = removing all files
it doesnt pick and choose like "hmm thats not personal to bae, delete!"
sorry the cameras not quite close enough to the screen
yes u can keep, but it wont solve anything
no it doesn't
then why does it say it reinstalls windoes
it just does a "dirty" reinstall
what does that mean😩
like, whatever stuff u did will stay at the new install
so the problem will stay there
well I'm now in recovery mode so I can do whatever you wish me to
well what do I do then
get a pendrive
there's not really anything u can do without one, windows built-in reinstall usually just fixes corrupted system files
not anything else
how small?
yeah whatever causes my problem is 100% corruption
t
when I sent screenshots yesterday programs like settings, chrome or wifi window were crashing
corrupted files would result in a bluescreen crash, not slowness
ok should I at least try
I don't think I have much other alternatives right now
u can sleep and leave that for tomorrow
how small is the pen u got?
windows needs around 4gb iirc
8gb
for formatting?
lmao why
it's 16gb.. doesn't windows need 32gb???
businessman
windows fully unpacked yes
but ur installing the image
for 3 for £40 from a charity i love and have bought like £1k of pcs from, refurbing and selling for £50 each
I thought it was 8gb for an install drive
it is, I think 4gb was for w7
yes it is
well how will I even install windows onto that usb drive if I can't open chrome
8gb for w10, 4gb for w7
I have win 10
i used to install w7 on pcs in the good old days
u can try using explorer
or (if windows has one), wget
don't u have any other pc to install on the pen?
chrome took 10-20 minutes to open before crashing so😔
because it'll take a loooong time on ur current state
nope
go to a public library
or take the usb drive to a pc repair shop, they will probably put it on for free
it's night there
ok, there's a way to solve that
first, go to storage management and free around 16gb or smth skip this
then download the smallest linux distro u can find around
install on ur pendrive and use it to download windows 10
then restart the pc in recovery mode and execute the installer
install it on the pendrive, then boot the pc from it
oh man this sounds complicated... i will have to dual boot there is 199% I will break my entire PC
no, no dual boot
you'll boot from the pendrive directly
linux doesn't need to be installed on the pc to run
I dont remember if the w10 installer comes ready for offline install or not tho
if it has an online installer then u can skip the whole linux step
oh, and there's that, before u return to windows, disconnect the internet cable
so the updater & background tasks that rely on internet dont run
they still run, apps like LiveUpdate Update Manager are causing the usage
they cant run without internet
I mean, they'll execute, but do nothing else other than staying there
then why the fuck do they take my disk usage second my pc starts up
because ur connected to the net
oh shit shojld I try connecting to wy wifi before I log in?
I'm not
weird then
..
what about safe mode man..
try it and see if u can download & install windows
u cant use safe mode forever, it's just a failsafe boot mode
honestly fuck it, I will try resetting with the keep my files option
if it doesn't work I will just remake the game
how exactly will u do it?
the whole topic here is making ur pc usable again
this button
I will remake it on a new PC
u have another pc?
no I'm going to have to buy one
I don't have a lot of money saved up but at this point idfk I need a pc to study as well so I'm just gonna do whatever
I didn't even apply for student loans cuz I thought I wouldn't need it xd
the suggested solution would cost $0 tho
does it offer an option to install on an external drive?
if so, do the pendrive step from there
nope those are the only options I see
says it will take 4gb
yes, that's the download size
might take a while since my current wifi speed is 2mb/s 😂
at least it's an upgrade from my old modem
they had me live at 10kb/s
print ('Starting BOT')
print ('Finnished importing Discord, Discord.ext, OS , Keep_alive and Music')```
finnished 🇫🇮
ye, python is really, really, REALLY strict regarding spaces
tho idk any lang that'd allow separating the method name from the parameters
Also I highly recommend not printing “finished importing” that stuff, it happens at compile time afaik and you are doing nothing but clogging your logs
"And they, in fact, didn't read the suggestion after getting the solution"
as it should be
"there was a problem reseting your pc no changes were made" 😁👍😁👍😁👍😁👍😁👍
He can't make a windows pen
And doesn't want to wait till tomorrow
Browser crashes after starting + disk refuses to do any task + 2mb internet
He needs some way to manage to make a windows pen
Idk, he didn't try
"too much hassle, I'll try this instead"
"this instead" apparently didn't work, I was waiting for further input
BRUUUUH DOES DOES MY SHIT LAG IN SAFE MODE TOO
does does
Atleast it doesnt do do
Begin to delete stuff you don’t need or know what it is outside the windows folder
As long as the drive is 100% full you will always experience issues since windows having issues in the background, too
If any non-system service still causes that much disk usage then kill it in safe mode
If your system reboots or crashes then check the service properties and change the dependencies for the service as well as other system services and make sure they don’t rely on that service
Also run msconfig and check if really any non-system service known as such is - regarding to the shown service list - disabled
@ancient nova I figured out why your Windows installation is all acting up, it's nothing related to Windows itself, your HDD is dying which results in Windows trying to do read/write operations but getting extremely stuck, causing corruption and extreme slowness
The same thing has occurred to multiple people
cough cough use ssd for your OS installation please
so I'm unable to retrieve any data?
fucking cheap ass HDD decided to die randomly for no reason
makes me mad
If you're able to plug the HDD as an external drive to another PC and try to extract the data then sure, with your PC this is impossible because your OS' won't allow it
I been going around tryna switxh the tasks that create disk usage off for ages BUT THEY TURN THEMSELVES BACK ON
Even if you plug your HDD to another PC, it would be extremely slow to extract the data because of it dying
I can't open services.msc so I cannot even disable them fully
Those services aren't the issue
if your hdd is dying, no matter what you do there will always be something using 100% of it
yeah I went to task manager -> performance and it only writes and reads a couple kbs
when the hdd is dying, the slightest task will be enough to make it lock at 100% usage for a while
0-100kbs
The same happens to me, my HDD is dying as well
So go get yourself an SSD like I'll be
rip lmao
yeah but all my data lost anyway so fuck this
you can check its status with a program like hdd sentinel
thanks for claryifing this for me
You're welcome
at least I can feel at peace since I found the cause
hdd sentinel is my favorite disk analysis tool
I wouldn't store sensitive data on an HDD. They're bound to break at some point, considering they work on physical disks
And are therefore more prone to physical damage
yeah I didn't think it would just randomly decide to full on 100% brick itself I more thought it would become slow overtime maybe
I've never had an HDD brick on me quite yet
haven't moved my PC from the same spot for a couple months now
Even the smallest of scratches on the HDD's disk can make it fuck up entirely
I have had an SSD die once though
also, when buying hdds, check out WD Reds, these disks are amazing
clean it prob every yearish
It might not be due to that, it's just a physical disk, so probably nothing you did
My pc has traveled literally hundreds of times in my car without any extra protection other than throwing in in the trunk
Never had the HDD break
It's just probably an unlucky scratch or something
:/ sucks, mannnn I literally just got my game looking so perfect
the animations took me a whole ass hour to make
Should've pushed the data to a remote repository
then I was imaging the whole ass map was excited for tomorrow lowkey and it died the next day
pixar animators laughing in 27 hours of rendering time per frame
best hdd i've ever had ngl
Eww WD
wd lasts an eternity
Iron Wolfs are the way
Wd blues are bad, they last 1-2 years
but Wd blacks and reds are amazing
tbh, most life-estimate benchmarks are done with intensive I/O ops every second
What tool is this btw
hdd sentinel
unless ur purposely trying, it's hard to outlive a home hdd
its paid (but i hav crcked lul)
Evil boy
best hdd analysis program i know
I cracked so many apps
😂😂
surprisingly easy to disable signature checks
without even the need to decompile fully
just edit the smali
^ on android
Probably installing tons of malicious shit killing your drive or taking 100% usage
*incl.
nah believe it or not I'm safe
24/7 adblocker, most of the time a VPN, my modem has builtin HTTPS filtering as well
my hdd will outlast my ssd lmao
Tf is this again
How does Adblock and a vpn save you from installing malware?
Oh no, fake don’t , no no
Don’t get into it
those are rookie numbers
It’s Bea
I'm only like 200 days behind you!
my adblocker detects malicious websites, and notifies when websites want to download weird or rarely downloaded files
(I've only had this pc for 3 years and 2 months)
xD
unfortunately I cannot say the same for my SSD
The old one died at about 6k hours iirc
Well, doing the math that's about right actually lol
💀
rip
new ssd in top tier condition however
Tbh an investment into some good NAS drives are essential
Speaking about hdds
ohno, it's not rotating!
Blue is bad
yeah it's a blue
True
That’s why I pick Iron Wolfs
It's done well for me, survived hundreds of car rides with no data loss
(Rough car rides too)
The Iron Wolfs and WD reds are the best consumer rated hdds on the market I’ve seen so far
And after many many years in my server the raid is still running
Even the much older 10y SAS raid is still alive after a lot more than their estimated TBW lifetime
Saving fotos and videos of security cams 365d around the clock
👍 agreed
Unfortunately it’s complicated to check the sas smart data
I wonder how it now looks year(s) after I checked the TBW the last time
I mean depending on how much the cameras been triggered I sometimes see more than 400GB of files transfered via ftp to the drives within a month
But sadly raid controller doesn’t report the smart values to the system
Barracuda

_until it dies unexpectedly _
If you have m.2 then sure utilize it
Can’t say much about crucial
My choice is and will be Samsung drives for ssd consumer hardware
Using evo and pro line also for … idk forever already
Not one dead drive yet
While I had deaths for others like Kingston and asperia
Dunno why I bought that trash many years ago
I mean yeah the first generation of ssds years ago had many many issues
crucial is also alright
not as good as samsung but decent
i usually check ssd benchmarks and aim for the ones that have the highest stable r/w performance
an m2/nvme ssd can have anywhere from 0.5 to 3.5 gbps reads and writes lol
some have 2gbps read and 1gbps write or other weird ass configurations
if your hdd is in good shape, i would go a full wipe and reinstall from scratch
oh wait, you're not bae
nvm
good stats tho 👍

@quasi depot
I needed help self hosting a discord bot.
Okay. Do you have a raspberry pi out of curiosity?
Respiratory?
lmao
No, it's called a raspberry pi. So I'll assume you don't have one. Have you looked into https://replit.com/
It's a free python hosting service. With a few tweaks, it can keep your python code running 24/7
If your bot reaches more than 100 servers though, you might want to look into something more powerful, but this can get you started
Lol what 😂
Huh, I don't need a coding software, I just need help determining if this open source code is scripted right or nothttps://github.com/JaceMMbot/Bloxlink.git
oh, I thought you needed help with this. I am not extremally qualified if (https://github.com/JaceMMbot/Bloxlink.git) is scripted "Correctly"
thats literally a 1:1 fork from bloxlink with zero modifications
...
it's a good starter to code in, correct, just know that it uses shared IPs and bots can get rate-limited rather quickly
yes
I tried self hosting, But kinda kept giving me errors, Thats why I need a python coder.
well, a different coder isn't going to fix the errors
so you want to run a bloxlink clone?
itd probably be easiest to ask in the bloxlink discord server if they have one
theyd know the common errors and how to fix them
Right.
did you check the dependencies and configuration instructions from their readme?
for example installing mongo and redis
Also what "errors" are you getting?
Yes, I was close to starting the bot, But was unsuccessful, As of I managed to load the commands.
C:\Users\rudei\Bloxlink-2>python src/bot.py
Bloxlink | INFO | Loaded cache
Bloxlink | INFO | Loaded utils
Traceback (most recent call last):
File "src/bot.py", line 7, in <module>
from resources.structures.Bloxlink import Bloxlink # pylint: disable=import-error, no-name-in-module
File "C:\Users\rudei\Bloxlink-2\src\resources\structures\__init__.py", line 7, in <module>
from .Arguments import Arguments
File "C:\Users\rudei\Bloxlink-2\src\resources\structures\Arguments.py", line 6, in <module>
from config import RELEASE # pylint: disable=no-name-in-module, import-error
ImportError: cannot import name 'RELEASE' from 'config' (C:\Users\rudei\Bloxlink-2\src\config.py)```
also
We do not provide support for self-hosting! This package has been made open-source to aid with contributions, not so you can run your own Bloxlink for private use. If something breaks or there's a vulnerability in a version you use, then you're on your own.
For this reason, we recommend using the official hosted bot at https://blox.link which is given regular updates.
Also, keep in mind that we use the AGPL-3.0 License, which means you're required to keep your local version open-source and state all changes that you have made to it.
Thats the whole point on why I am here,,,
If they had a support channel, I wouldn't be here.
So go to https://box.link/ and use that bot instead of using a clone
They are already hosting it. They just posted the source code.
why do you want to selfhost it?
okay, but why don't you just want to use the public bot? I'm just confused.
That’s not the topic.
I am trying to self host the bot for personal use.
And for practice.
constants.py contains this ```py
RELEASE = env.get("RELEASE", "LOCAL")
Oh
Oh yep
but according to the error, its trying to load RELEASE from config
They can be defined in your config and as env vars
@quasi depot
I was about to cough
Will do, I will let you guys know the results, But it’s quit late, So won’t be able to try today.
But thanks for all help.
lol
Not a waste of time.
Well I was going to get back on, But don’t feel like it.
We wanna know the results or we can’t sleep

Errr not today!
That’s more important
Tomorrow…
Damn that's more cliffhanger than mexican novels
They'll try the solution tomorrow
Lmao
Wake yo ass up
wakey wakey. It's time for school
Can someone suggest me a road map to build bots on my own
I'm in Laravel and I don't know how I can do that.
This works:
Test::with("test1", "test2")
->where("id", $this->id)
->get();
How can I specify the column in the where statement? Like this:
Test::with("test1", "test2")
->where("test1.id", $this->id)
->get();
If I execute that I get the error that he doesn't know column "test1.id"
Hi, does bot need some extra permission to send ephemeral message as reply to click on button? that is not included in the following list of permissions: View Channels, Change Nickname, Send Messages, Public + Private Threads, Embed Links, Attach Files, Add Reactions, Use External Emojis + Stickers, Read Message History, Use, Application Commands, (Connect, Speak, Video and Use Voice Activity in Voice Channels)
does someone know how to add cli commands to a bot? something like setbal, addbal, rembal (js) because if I currently type anything while the bot is running it just shows in the console, nothing more
I just run commands from script file (.sh) executed from the bot
Responses to interactions don't require any permission.
You're always able to send webhooks to discord as response to the interaction.
Well something does not allow my bot to send ephemeral message as reply in one discord server and the non-ephemeral are working just fine so i am confusion 😦
Is there any error regarding the ephermal message?
no it just dont send it
I assume you're just responding wrongly
well it works in other servers
Is the ephermal message the first (initial) response to a button interaction or a follow up message etc?
first - it is response to button
no not really
it's the literal same as making a bot, but instead of getting the message from discord you'll be getting from the console
Can you show me the part of the code that sends the ephermal response?
await component.RespondAsync("Please wait...", ephemeral: true);
component is: SocketMessageComponent component
its Dicord.net
oh uhm...
how would I be getting it from the console?
discord.net? isn't that lib long dead?
no lol
what sort of command is it that sends this ephermal response?
maybe accidentaly whitelisted to one guild only?





