#development
1 messages Β· Page 1587 of 1
Use the inline reply feature on the bot's message, you should see the language at the very start of the message
St?
no idea what the full language is tho
Like, that st?
yeah
what language is that supposed to be
looks like it's a thing called "Structured text"
well that makes sense
Structured text, abbreviated as ST or STX, is one of the five languages supported by the IEC 61131-3 standard, designed for programmable logic controllers (PLCs). It is a high level language that is block structured and syntactically resembles Pascal, on which it is based. All of the languages share IEC61131 Common Elements. The variables and fu...
Yep
hence the "1)" numbers
Fuck pascal tho
lmfao
poggers
if they stick with the discord mobile version then DMs can never pull up @ mentions unless it's one of the 2 people in the DM conversation
its nim
1) DJ SLAVINE - Isolation & Quarantine Stream DAY 5 (RUSSIAN HARDBASS) | 01:30:04```
wait what
oh its for capitalized stuff
Hey guys so there is this issue where it wont send the next message but it wont show an error so I dont know where I got wrong heres code: ```js
let rw = Math.floor(Math.random() * 100)
if(rw === 1 || rw === 0) {
message.channel.send('dude your luck man u just got like a SUPER rare pickaxe wow... im wowed')
db.add(vortexpick_${messgae.author.id}, 1)
}
if(rw === 2 || rw === 3 || rw === 4 || rw === 5 || rw === 6 || rw === 7 || rw === 8 || rw === 9 || rw === 10 || rw === 11 || rw === 12 || rw === 13 || rw === 14 || rw === 15 || rw === 16 || rw === 17 || rw === 18 || rw === 19 || rw === 20 || rw === 21 || rw === 22 || rw === 23 || rw === 24 || rw === 25 || rw === 26 || rw === 27 || rw === 28 || rw === 29 || rw === 30 || rw === 31 || rw === 32 || rw === 33 || rw === 34 || rw === 35 || rw === 36 || rw === 37 || rw === 38 || rw === 39 || rw === 40 || rw === 41 || rw === 42 || rw === 43 || rw === 44 || rw === 45 || rw === 46 || rw === 47 || rw === 49 || rw === 50 || rw === 51 || rw === 52 || rw === 53 || rw === 54 || rw === 55 || rw === 56 || rw === 57 || rw === 58 || rw === 59 || rw === 60 || rw === 61 || rw === 62 || rw === 63 || rw === 64 || rw === 65 || rw === 66 || rw === 67 || rw === 68 || rw === 69 || rw === 70 || rw === 71 || rw === 72 || rw === 73 || rw === 74 || rw === 75 || rw === 75 || rw === 77 || rw === 78 || rw === 79 || rw === 80 || rw === 81 || rw === 82 || rw === 83 || rw === 84 || rw === 85 || rw === 86 || rw === 87 || rw === 88 || rw === 89 || rw === 90 || rw === 91 || rw === 92 || rw === 93 || rw === 94 || rw === 95 || rw === 96 || rw === 97 || rw === 98 || rw === 99 || rw === 100) {
message.channel.send('you didnt get anything')
}
What the fuck
um
why
else didnt work
wtf
for PLS
do you know what a > operator is
what the actual fuck
ok
I refuse to read that
lol
What the fuck
Is that supposed to be tricot?
what the physically actual bloody fuck
you might as well want to use jsfuck
you spelled message wrong lol
This guy explaining what the fuck that is
https://cdn.discordapp.com/attachments/385837258768515083/810246728375861318/the.mp4
yes
This is some top tier coding
this is literally yandere dev in a nutshell
@earnest phoenix xdd
if (rw !== 1)
I gotta put that in starboard
dew it
if (thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing || thing) moment
One message removed from a suspended account.
One message removed from a suspended account.
YES YES YES XDD
the code gave me a reason to plead veld to delete this channel
Some of us can't flex our knowledge, then
someone star this ASAP
One message removed from a suspended account.
accurate
i don't get air from laughter
When that guy sent that, it was so terrifying my phone's charge dropped from 50 to 1
One message removed from a suspended account.
One message removed from a suspended account.
he could've just went if (rn < 2) { // pickaxe} else { // no pickaxe}
ez
but no
if(rw === 2 || rw === 3 || rw === 4 || rw === 5 || rw === 6 || rw === 7 || rw === 8 || rw === 9 || rw === 10 || rw === 11 || rw === 12 || rw === 13 || rw === 14 || rw === 15 || rw === 16 || rw === 17 || rw === 18 || rw === 19 || rw === 20 || rw === 21 || rw === 22 || rw === 23 || rw === 24 || rw === 25 || rw === 26 || rw === 27 || rw === 28 || rw === 29 || rw === 30 || rw === 31 || rw === 32 || rw === 33 || rw === 34 || rw === 35 || rw === 36 || rw === 37 || rw === 38 || rw === 39 || rw === 40 || rw === 41 || rw === 42 || rw === 43 || rw === 44 || rw === 45 || rw === 46 || rw === 47 || rw === 49 || rw === 50 || rw === 51 || rw === 52 || rw === 53 || rw === 54 || rw === 55 || rw === 56 || rw === 57 || rw === 58 || rw === 59 || rw === 60 || rw === 61 || rw === 62 || rw === 63 || rw === 64 || rw === 65 || rw === 66 || rw === 67 || rw === 68 || rw === 69 || rw === 70 || rw === 71 || rw === 72 || rw === 73 || rw === 74 || rw === 75 || rw === 75 || rw === 77 || rw === 78 || rw === 79 || rw === 80 || rw === 81 || rw === 82 || rw === 83 || rw === 84 || rw === 85 || rw === 86 || rw === 87 || rw === 88 || rw === 89 || rw === 90 || rw === 91 || rw === 92 || rw === 93 || rw === 94 || rw === 95 || rw === 96 || rw === 97 || rw === 98 || rw === 99 || rw === 100) {
message.channel.send('you didnt get anything')
}```
I am not begging my brain to explode
Why pickaxe and not pickshovel?
Bro even if he did a for loop to check every single number between 2-100 would be better
@opal plank @quartz kindle wanna go for a beer, I need to numb my mind after this one
i swear if hell looks like this, i'm not committing any more sins in my entire life
fuckβ’οΈ
beer? i need absinthe to kill whatever the fuck this is from my memory
Someone please record google translate speaking that
I swear, god wouldn't even create hell if it looked like that
Best jukebox ever
just >= 2 && <= 100
#development message this pains me
Make gtranslate speak that
Bro, top 10 raps even eminem is afraid to diss
for(var i = 2; i< 100; i++){
if(rw === i) {
message.channel.send('you didnt get anything')
}
}```
Good Code
whewww
I give that a YandereDev/GoodCode
YanSim could've been such a good game
Just gonna give you a tip
When using numbers you can check larger than, equal too and smaller than.
for example:
// They win
if(i === 1) {}
// Larger than or equal 2
// AND Smaller than or equal to 100
else if (i >= 2 && i <= 100) {}
dunno why you wanna do a for loop
woudnt it be else if
to spam the api
ssshhhh
thats not what it does tho
Api harassment
it checks if random == i
it was just an example
its not api abuse if the api doesnt scream
One message removed from a suspended account.
One message removed from a suspended account.
HAAAAAAAAAAA
Bruh
THATS that 1 number
i was wondering what number but was mind numb from typing that
One message removed from a suspended account.
f
One message removed from a suspended account.
if(rw < 2) {
} else {
}``` this
yeah fs
The reason it doesn't work is
BadCode:tm:
oK
actually
yes i agree
im adding that to the callback hell one
it makes more sense
im about to start collecting bad code
lol
We should make a multi repo with the baddest code ever concieved
Alright who's gonna create it
This man just exposed discord mobile's source code
while (Math.random() * 100 > 1) {
message.channel.send("you didn't get anything");
}
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
adding that code to this one
One message removed from a suspended account.
i will
Wtf
wth lol
i just made that
Every code = a new file
How do I define ID again? I tryed using my big brain, and typed const id = user.id, but it didnt work..
make a repo @misty sigil
i did
Someone should pin this
y?
...
Those values will change anyway
Can't wait to see that repo's size become 1 trillion TB
dont worry it will
you cannot change the value of const declarations
?
Yes, but those consts will have a new value on each run
Just learn basic JS, thanks
There are interpreter optimizations that come from using const. let or var implicitly means redefinition is possible and the interpreter would have to account for that instead of just having a static address as a value
@misty sigil go approve it
change the file extension too
.js or .txt
whatever you want
There should be a new file extension specifically designed for that repo, .badcodeβ’
folder system
Hold up right there partner
There's no such thing as "shit ts code"
TS code always good
nooooooooooooo
class .badCode:tm: extends .js {}
done
stop.
Sop
op
p
q
I am learning it. I did watch one 10 hour vd and 2 vds that were 2 hours.
bad
Bad
Don't read lots, read docs
Documentation always better than outdated and scuffed tutorial videos
@opal plank how much you wanna bet
that repo will take at least 10 minutes to clone
at some point
no.
nothing, as long as someone keeps updating them, it should be just like that
I read lots of docs.
if you arent willing to learn, why should we spoonfeed you with your questions?
Correction:
"I watch lots of scuffed tutorial videos"
well, you gotta show at least a little bit of commitment, im trying to show you WHY watching videos are bad
just read what i sent before, its a good sum of it
then why did u said no ?
Powershelling him
I don't need help on this one. I think I already solved the issue, just wanted to share some pain I experience.
The error certainly helps me.
For those unfamiliar, I'll do some funny joke explain. The error includes a YT ID.
The second image is of where the error came from (song error call C) which means it came from the play method where a song's data was fetched and then checked if there was an error before playing.
The third image is of client code which is a cache for async values returned by lavalink or an error if there was an issue with getting data returned by a 3rd party service like YT or Lavalink itself. The only instance of accessing error in this code block is on this which is referencing the YouTubeSong and I'm pretty sure I don't set the prototype of instances of YouTubeSong as null. So... Was a deeper issue than that.
Like I said, pretty sure I already fixed the issue so I don't need help, but pro tip: don't stringify basic error info if you don't log stack info somewhere :(
https://cdn.discordapp.com/attachments/405285983794364417/810310276515364894/unknown.png
https://cdn.discordapp.com/attachments/405285983794364417/810312040383381514/unknown.png
https://cdn.discordapp.com/attachments/405285983794364417/810310469134188544/unknown.png
i am eating a muffins watching this
Holy shit
its not bashing, its trying to remove bad coding habits early on
I code a lote while im not asking qustions. Like, last time I asked a qustion, was like 20 minutes ago if nt longer, and I coded stuff in those 20 or so minutes.
watching youtube videos is not good at all
why again?
it creates dependency
i explained all in that message
you're used to having everything already mashed up for you to take in
the more you advance, the less youtube videos you'll find
and you'll soon find yourself using some libs that dont have any videos at all
I havent watched specific youtube vds. I watched those focused on ALL of discord.js.
then you'll struggle cuz of lack of reading, you start getting into the mind state of "i need a video to understand this"
its a good habit to completely ditch videos
alr alr alr.. I got it.
and rely solely on docs and digging through the code
Libs change way too fast to be worthwhile to watch vids
One message removed from a suspended account.
One message removed from a suspended account.
by all means, take a look at how other people tacled the problem you're facing
as long as you dont copy it, its fine
understanding other's peoples code is also a good thing
mfw someone writes a blog on medium about coding
I meant youtube.
greetings discord devs
cuz you'll find yourself digging through library and raw code, so you need to get familiarised with other people's coding habits
thats why setting standarts is good for coding
turkish bot devs will be looking at the bad code repo and stealing it

i would not doubt tbh
Nah bro they're already way ahead of their way rocking all npm packages from the npm registry
node *
npm i is-true
cpu fans whirr
When brrr becomes whirr, you know shits getting real spicy
Congratz, now your cpu fans have virus
One message removed from a suspended account.
lemme introduce myself
One message removed from a suspended account.
I'm from Microsoft Tech Support
One message removed from a suspended account.
I believe you have a virus
One message removed from a suspended account.
fuck it why nto
I suggest installing this shady program
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
@ebon kelp keep it on topic please
π
not the channel to joke around in
wtf is this
lol why only ping me :(
as if we're not starting a dbl bad code repo
explain

we're collecting bad code
@opal plank need some recommendation. How would you recommend I do service status management. I'm thinking of having a webserver on every one so I can do like ip:port/status which just return the resource usage, current state of stuff relating to the service and such but idk if there's a better way to do it
then I'll split my influxdb poster to its own service and it'll use the endpoints to handle them etc
wdym?
I'm splitting a lot of my shit into microservices
service for yourself?
I wanna setup microservice status management
Microservices 
as long as they are all internal, why not use prometheus?
use elk + prom client to montiro
I've had issues with prometheus and grafana
like?
Its a known bug
thats the best thing to use by far for this case
but prometheus and grafana have hella latency sometimes
hmmmm i never get that tbh
I had a massive issue with it when I tried it
and i query every 5 seconds
Not the fetching
the hovering on graphs
it was lagging like mad
idk why
I'll try it
and see what happens tbh
no harm in trying
thats the best thing you can try tbh
doesnt grafana support custom dashboard designs?
maybe you got a design that has bad code
yea, wanted a more centralised thing
for it to lag client side
did you make the dashboard yourself luke?
Yes
just remember that panels arent dynamic
so if you add extra monitors, you either bulk them into a singel graph, or manually add more
thats the one downside i had
but apart from that, its absolutely perfect
π
if you dont mind OCD kicking in, just make a couple extra panels
elk stack?
no idea
elastic search, logstash, kibana
oh
feel like thats slightly overkill for what I want
What is the ELK Stack? The ELK Stack is an acronym for a combination of three widely used open source projects: E=Elasticsearch (based on Lucene), L=Logstash, and K=Kibana. With the addition of Beats, the ELK Stack is now known as the Elastic Stack
it is overkill for most people tbh
i think im using elk for a couple things
you probably right, though you can use prom directly with grafana
prometheus keeps data for x amount of time
one of the downsides I had with influx was the RAM usage but that isnt an issue here
Hi
so unless you want persistent data forever, you'd need a db
i think our prom client is set to 90 days
i think prom is the same
ah
I might use influx since I know how to use it
and yea
past 90 days isnt an issue for me tho tbh
thats as far as i'll ever need it tbh, dont think i'll be quering older than that
actually, ours is set to 15 days i think
come dm cuz i can show this shit public
cant, at work
ah
can I get a Patron's Discord ID through Webhook?
Β―_(γ)_/Β―
u do it
i press green merge button
fIIIIIIIINE
i dont have any motives to do it, i already have them stored in my tags bot
which got removed from here, the balls of some people
Patrons have to hook their Discord account to their Patreon account before they can receive benefits. If you wanna get this data from a webhook and it posts their tag, you'd have to have a bot analyse the message and then search the cache for a user which satisfies the username and discriminator match
or do it manually

so, no ID, just Name and Discriminator
@opal plank How did you get those buttons on your Status?
Integrate your service with Discord β whether it's a bot or a game or whatever your wildest imagination can come up with.
It's update sdk time
Holy fuck I almost started cring a second ago..
I litilary deleted my whole bot file...
But it turns out I had a backup.
Use github bro

GitDab
You either git gud or get rekt
why
most of your activity as a dev gets stashed on github
nice.
Don't ask me, people have weird starboard criteria
π
Because versioning is part of a programmer's life
Github is the major online repo
I did..
@quaint wasp @outer perch stop starrin shit
Bc im bored..
why are people starring my profile and not my funny jokes?
There's also bitbucket, but github is the greatest
what jokes?
wait
i mean, might as wel go to 3 stars now
Fully free, great tools, easy to use, etc
What about Gitlab?
send link
literally every joke i post that i think are starboard worthy, dont get starred at all
How do I even connect to github from vcs?
https://github.com/erwin1234777 @delicate zephyr
@lyric mountain you cant force people to use github
I tryed few times and didnt succed..
theres a github tab on ur settings
sad you dont have private repos in contributions
u can't force people to not use GitHub
I see no githab...
i do have a couple, but im fairly certain it doesnt show unless you are in them
Yeah, I can't, but I can give critical advices
@opal plank https://img.pyrocdn.com/fOa9MmCO
Professional companies will also ask to look at your github if applicable. Having one is advantageous for careers
Git is a must, be it github, bitbucket, gitlab, whatever
tru
it says it doesnt know wut git is
calling github bad 
YOU NEED TO GET GIT IDIOT it doesnt come preinstalled dumb dumb
hmmm the only place people can realistically see my commits is with webhooks on my server
You can tell github to show them
but peopel cant access any content in them?
OneDrive 
I have github desctop dumbass
Yikes

desctop.
then do git
desctop
a lot of mine are private
let me do just that then, one sec
doesnt work..
then get git
why splitting the commands when you can merge them...
git -am "h"
..
@delicate zephyr done
Npm is node-related
have you tried googling "how to download git"?
Git is a software
pog
So first he was trashing Github, but he doesn't even know how to use it?
on there website?
Yes
HEHEHEHEHEHE
@opal plank there we go https://img.pyrocdn.com/aTjFlerQ
i forgot i had commits on horny stuff
lmfao
yes
are my descs. bad?
I upload the fucking code with all the tokens and databse stuff.. and let people see it and copy everything.. Sure.. why not.
@outer perch yes

You upload the tokens...
"upload"?
@opal plank mine is uh, interesting
gitignore totally doesn't exist
dah
When not givin' a damn about them
mine has a few too many horni things
You upload files to github with the upload button? 
And database stuff
How tf you upload a database?
oh no
hi please help me: the selected part does not work in the code
ERROR CODE:
ReferenceError: message is not defined
deffine a message then.
whats that?
VSC
but what does it do?
what is this
source control?
Oh boy this guy has a lot to learn about git
Git
some trash ass account I used to try github.
But its usless..
Souce control = versioning = git
AFGAKJHGFJLKJSHA LMAO
holy mother of god
@opal plank the check mark
Well, not exclusively git
looks really trash..
what check mark?
But mostly git
its git with a UI
or you can manually do it
you should probably start with commands
git push
so that you can use git on pretty much anything
git stage "filename"
"good coders"
"would work for free"
Ah, yes
theres a ton of git commands
or just use github desktop :^)
I cant find the download..
you either use the ui, or use the commands
git kraken or go home
@quartz kindle git bash
ikr
when you blame your incompetency on the software instead of yourself
git desktop still requires git to be installed, no?
it's right there
i actually use github desktop xD
its a thing btw
that looks pog
thats git?
Free with Github Education I believe
thats gitKRAKEN
i find git UIs such a pain i do everything through the CLI lol
looks complecated.
Didn't know if it was embedded or not. I used the cli before I swapped to Git Desktop
though you'll be using VSC a lot more than this
Download the one from the site you sent before
this is specially good for viewing data and fixing conflicting merges
That was the actual git
^^
Yes
it was hard to find.
the UI is a terminal
hard to find
first result on google
really.. t was
No no, you get two options
When u right click
but this is hardly a ui
Git GUI HAHAHAHA
look at this shit
Well, yeah
LOOK AT THIS SHIT
But it's a thing
its hardly a UI
They should remove that shit
im having errors with my snipe
everytime i use a snipe after i have sniped it displays this error
Wtf is that variable name
someone post a snipe command online bcs alot of people are making them now
intellij has the best git integration for an ide
True
IntelliJ has the best merging tool <3
I absolutely love that thing
I use it too π
Jetbrains VCS is a god
although vsc is not an ide, the git support is superb
does he know what IDE is?
no
vsc not an ide?
no
it isn't
idk
vsc is a code editor
monkaS
Actually, jetbrains is probably the most user-friendly company out there
never was
but with lots of extensions, vscode gets pretty close to an ide
Right, I thought you were going to say text editor
At least from the ones I know
go for the rocommended
promise
isnt technically VSC an ide?
alr.
Go with defaults
Only with extensions
Dont change anything
nah, only supports languages through plug-ins
it isn't
the default option only lets git be used from git bash
the OOBE isn't an IDE
Not at all
o
Second option is default
2nd
oh alright
Just go clicking next smug
wouldnt that categorise it as an IDE?
you can mimic IDE behavior through plugins but vsc OOBE isn't an IDE π€·ββοΈ
hmmm i see the point
spam it
spam wut?
Only change what you know why you're changing
Spam next
send it!
If you don't know what it means 99% you can go with defaults
i changed nothing but wut u asked to change
Just go with defaults
just use all the pre selected option
next x100
lmfao
Then done
Well this is technically not Next
Or finish

hey
Is there an api to see votes for servers? I can only see for voting for bots?
Just storing obese numbers
Just some owful nonsense
you can use webhooks with the servers, but thats it.
You know there's this site called ahem google
wut do I do when I got git shit?
Ah ok. Thanks!
k so I'm planning to host my bot so it says online 24/7 right but i have some problems
rn im using a local database (sqlite) and i need to pass it to a remote one, id like to know which one u guys recommend (mysql, postgresql?)
also, where should i host it? heroku? vps (which one)?
what do you need?
client.guilds.cache.get(guildId)
if my bot is invited to guild guildId and then kicked will the above be null right away or will the cache need to be cleared first?
postgres , depending on ur use case, is the equivalent of needing to snap a stick with a chainsaw
do you need scaling?
buy VPS.
do you store basic data?
give more details before i can recommend you a database
all the data in the db are pretty basic, few rolls and only int, floats and text
sqlite should be the only thing you need then for now
how many users/servers we talking about?
ooo ty ill note that down
but sqlite is local, when i run it on any host server, close the bot for any reason, and rerun the bot
even for basic data, if you start getting into millions, you might wanna migrate to a better db
all the new data after running the bot is lost
@lament rock what's the difference between members:create and members:pledge:create? The second one gives pledge info but the first doesn't?
like it rollbacks
context?
sqlite might do the trick then
unless you start getting into millions
then you might wanan move onto a befier db
repository is what?
Patreon Webhook
how do I do that?
basically your whole project
oh
@quaint wasp https://git-scm.com/docs/git
I suggest watching a tutorial
Oh. members:create is whenever someone becomes a patron of you. pledges create is when someone pledges or edits their pledge iirc
and NOW you starting to see why we recommended the UI on either VSC, gitKraken or something else @quaint wasp
Wait, heroku?
ye it happened when i used heroku
Sqlite doesn't wipe the data once you stop the bot
Heroku is volatile
nope...
its bc it get it from github right
you should only keep stuff in memory that you need, and ocasionally save it on db
Just use git to clone the repo then
every minute or two if tis too many entries
Heroku wipes all data once u shutdown
otherwise if you feel like its safe, do it everytime its changed
but, can you become a member without pledging?
ok let me explain it a little bit better
Because it's fully volatile and totally not meant for bots
aight, go ahead
no
oh boy
i'd setup an aws account an use the free dynamodb instances for your db. you get 25. and then setup ann EC2 instance or use their amazon lightsail hosting for your bot.
I am feeling it
I suggest watching this https://www.youtube.com/watch?v=SWYqp7iY_Tc
In this Git tutorial we will talk about what exactly Git is and we will look at and work with all of the basic and most important commands such as add, commit, status, push and more. This tutorial is very beginner friendly.
DONATIONS:
We spend huge amounts of time making these videos available for free. Any donation is greatly appreciated
http...
the db is in on state x
i run it on heroku, it grabs the data from the db from github
the bot runs fine everything works
i shutdown the bot for any reason
i start the bot again
bc it gets the db from github, when i run it again itll get the db before it ran for the first time, therefore the new data is wiped
No, pls, don't do that
so, let me get you some ideas

yikes. Hosting a db on github
o_O
@lament rock
What i get frmo your quick explanation is that you require stuff on startup.
let me give you a hands down example of this happening
mongodb free cluster 
@icy skiff
oh, sry
since I only have one Tier, I can just get members:create
ig
nah, gonna choose the other one, never know when I'll need pledge info
kk
People can pledge custom amounts
yeah, but the Webhook should send pledge info so I can know if they chose a tier or not
my bot works all fine and good when on my pc but hosting it has been a headache cause of the dbs
how can i deaf a stick when it enters a sound channel
Discord.js
v12+
Image prefixes, per guild for example, this should be a fitting case for this.
require all prefixes from db, map them.
now you have them all in memory
bot shuts down, gg all data. So, you want to occasionally save it, i'll give you a couple solutions
-
Sync save them.
run a setTimeout() dumping everything into the db and rewriting all. Db's should be resiliant to any mid way crashes, so you shouldnt worry about something crashing mid way through saving, thats why a db is not corruptable like json.
The downside of this is scaling, you'd be sending massive requests that dont need to be saved. -
Save them as they are changed.
This can be spammy, specially if you ratelimit your connection. Avoid this unless you are using a very small population -
set a dirty tag(what i do).
Use getters/setters to set dirt tags on your data, and run a setTimeout() every minute syncing all entries that are dirtied.
on the setters, set the value requested + a dirty tag on that specific entry, this ensure that everytime thesyncevent runs, it'll be only changing the entries that have changed. -
dont use memory at all. Use redis, something that'll keep on 24/7, so regardless if your bot crashes, all the data is stored in a different app. You can re-map everything in case redis crashes
the DB should give you a guide on that
so i made a status thingy for my bot that changes every 5 seconds but its blasting through and changing its status under a second
huh ok ill look more into these solutions
thankx for the help
:D
client*
changing status every 12 seconds?
bold choice
im fairly certain presence is 15 minimum
so if you keep doing that, you'll have the same retarded shit as loritta with clogged presences
discord status only updates every 15 secs
oh
remember, values are in MILLISECONDS
π
too low
how bout 10
no i copied it wrong
now I help you
bruh
i set it to 3 thinking it was in seconds and it was changing the status super fast

lol
you shouldn't do 3 seconds either though
im going with 10
aight cool
you did see me say that anything below 15 seconds will just clog right?
dont even ask why, but I tryed that and it doesnt work for some reason on my VSC..
i made it 20 seconds
its still suffering from me setting it to 3 ms 
aight
it does
would show but no nitro, gifs are too powerful
Β―_(γ)_/Β―
but it works
Change all classes/ids
Well, yes
how do I set up vote roles like these
what the
i thought about it once we were on winter tbh
to add snowflakes falling with css
but it was too late for that
I...
have a 1366x768 monitor, and no HTML/CSS skills
what i need to do is change the votes
Hm?
i just noticed its too dimmed out
ah yeah
Mine is a little darker than others I noticed.
i might need to turn up the brithness or change the font
My one complaint unless u figured out a way to this is...
https://scs.twilightgamez.net/NKKqi.png i want the gray to just be background-color: none
u know
but a change happened, kinda not as easy as it once was.
oho, we can change vote counts
What using content:
wana poke around at the footer bg
i would like to completely hide the footer and header background color tbh
see if u can hack it to be opacity 0
let me check
let me try red, yeah
@opal plank question:
answer
nah, im playing with the vote for now
Holy frick..
Well color of the text isn't something I'm worried about, that's ezpz. I do that already 
sdk
enum constants = {
SOMETHING: 1
}
function bla(param: constants.SOMETHING): SomeValue
?
Integrate your service with Discord β whether it's a bot or a game or whatever your wildest imagination can come up with.
@quartz kindle ts
it works if i pass the exact constant
but it doesnt work if i pass the literal number
i mean
the actual value is a number
that is represented in the enum, and the enum is exported
so the user can either use the enum, or pass the number literal
can you gimme an example of how thats not working?
setting the status to change every 20 seconds was not a good idea
im not getting whats the error/issue
i'll dm
aight
w3school
HHHHHHHHHHHMMMMMMMMMMMMMMMMMMMMM
Some behind senecs stuff.
"You dont need to worry about that"
Do I have to use c sharp?
or other c langs, yeah
node can use c langs with Napi
Why are you doing that, why not just use a normal setActivity
2 different status
And make them change
Also you forgot the , right before the options thing
read docs
If you want to be a developer
you need to learn how to read documentation
I am rn
Then look for it
sense you're messign with the user it's clientUser#setStatus if you read docs it would have told you
i saw some bots with a custom bot card is that a feature i can do or nah



