#development

1 messages Β· Page 1587 of 1

lyric mountain
#

Idk then

earnest phoenix
#

Use the inline reply feature on the bot's message, you should see the language at the very start of the message

mellow kelp
#

wait i think i found it

#

it's st

lyric mountain
#

St?

mellow kelp
#

no idea what the full language is tho

lyric mountain
#

Like, that st?

mellow kelp
#

yeah

#

what language is that supposed to be

#

looks like it's a thing called "Structured text"

#

well that makes sense

lyric mountain
#

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

mellow kelp
#

hence the "1)" numbers

lyric mountain
#

Fuck pascal tho

mellow kelp
#

lmfao

earnest phoenix
#

Thanks bro

#

its work

mellow kelp
#

poggers

quartz kindle
#

hard bass yeaa

#

lmao

earnest phoenix
#

xdd

#

DJ SLAVINE is best

proven lantern
#

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

earnest phoenix
#

lol

misty sigil
#

its nim

mellow kelp
#
1) thing 12
#

the other one has orange text tho

earnest phoenix
#
1) DJ SLAVINE - Isolation & Quarantine Stream DAY 5 (RUSSIAN HARDBASS) | 01:30:04```
mellow kelp
#

wait what

earnest phoenix
#

nim

#

its nim

mellow kelp
#

oh its for capitalized stuff

halcyon kite
#

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')
}

earnest phoenix
#

What the fuck

mellow kelp
#

um

earnest phoenix
#

why

halcyon kite
#

else didnt work

quartz kindle
#

wtf

earnest phoenix
#

for PLS

mellow kelp
#

do you know what a > operator is

quartz kindle
#

what the actual fuck

earnest phoenix
#
for(i = 0 > i = 100){
code
}```
#

PLS

halcyon kite
#

ok

halcyon kite
#

lol

misty sigil
#

What the fuck

lyric mountain
#

Is that supposed to be tricot?

misty sigil
#

what the physically actual bloody fuck

mellow kelp
#

you might as well want to use jsfuck

lament rock
earnest phoenix
mellow kelp
#

yes

misty sigil
#

lmao

#

yea

mellow kelp
#

this is literally yandere dev in a nutshell

earnest phoenix
#

@earnest phoenix xdd

lament rock
#

if (rw !== 1)

lyric mountain
#

I gotta put that in starboard

mellow kelp
#

dew it

misty sigil
#

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

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

earnest phoenix
#

YES YES YES XDD

misty sigil
#

the code gave me a reason to plead veld to delete this channel

lament rock
#

Some of us can't flex our knowledge, then

sage bobcat
#

One message removed from a suspended account.

mellow kelp
#

accurate

earnest phoenix
#

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

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

misty sigil
#

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')
}```
earnest phoenix
#

xddd

#

Please don't, eyes burn

misty sigil
#

I am not begging my brain to explode

lyric mountain
#

Why pickaxe and not pickshovel?

icy skiff
#

Bro even if he did a for loop to check every single number between 2-100 would be better

delicate zephyr
mellow kelp
misty sigil
#

i would love to luke

#

oh you weren't asking me

#

fuck.

mellow kelp
#

fuckℒ️

opal plank
lyric mountain
#

Someone please record google translate speaking that

earnest phoenix
#

I swear, god wouldn't even create hell if it looked like that

lyric mountain
#

Best jukebox ever

misty sigil
lyric mountain
mellow kelp
#

i just did

#

it's beautiful

earnest phoenix
#

Bro, top 10 raps even eminem is afraid to diss

earnest phoenix
misty sigil
#

whewww

earnest phoenix
#

I give that a YandereDev/GoodCode

lyric mountain
#

YanSim could've been such a good game

delicate zephyr
delicate zephyr
misty sigil
#

woudnt it be else if

opal plank
delicate zephyr
#

thats

#

api abuse

opal plank
#

ssshhhh

misty sigil
#

thats not what it does tho

lyric mountain
#

Api harassment

misty sigil
#

it checks if random == i

earnest phoenix
opal plank
#

its not api abuse if the api doesnt scream

sage bobcat
#

One message removed from a suspended account.

misty sigil
#

HAAAAAAAAAAA

earnest phoenix
#

Bruh

halcyon kite
#

i was wondering what number but was mind numb from typing that

sage bobcat
#

One message removed from a suspended account.

halcyon kite
#

f

sage bobcat
#

One message removed from a suspended account.

misty sigil
#
if(rw < 2) {

} else {

}``` this
halcyon kite
#

yeah fs

earnest phoenix
#

The reason it doesn't work is

BadCode:tm:

halcyon kite
opal plank
#

actually

halcyon kite
opal plank
#

im adding that to the callback hell one

misty sigil
#

it makes more sense

opal plank
#

im about to start collecting bad code

halcyon kite
mellow kelp
#

We should make a multi repo with the baddest code ever concieved

#

Alright who's gonna create it

earnest phoenix
#

This man just exposed discord mobile's source code

lyric mountain
#
while (Math.random() * 100 > 1) {
	message.channel.send("you didn't get anything");
}
opal plank
#

adding that code to this one

sage bobcat
#

One message removed from a suspended account.

misty sigil
mellow kelp
#

Aight

#

Wonderful

earnest phoenix
#

Wtf

opal plank
#

exactly

#

imma start collecting horrible code from now on

misty sigil
lyric mountain
#

Make a git repo

#

Ah

misty sigil
#

i just made that

lyric mountain
#

Every code = a new file

quaint wasp
#

How do I define ID again? I tryed using my big brain, and typed const id = user.id, but it didnt work..

opal plank
#

make a repo @misty sigil

misty sigil
#

i did

mellow kelp
quaint wasp
#

y?

misty sigil
#

i already have one pin

#

that's enough

lyric mountain
#

Why use so much consts

#

Like

quaint wasp
#

...

lyric mountain
#

Those values will change anyway

quaint wasp
#

Idk

#

what else do u use?

#

let?

earnest phoenix
#

Can't wait to see that repo's size become 1 trillion TB

misty sigil
#

dont worry it will

lament rock
#

you cannot change the value of const declarations

quaint wasp
#

?

lyric mountain
#

Yes, but those consts will have a new value on each run

earnest phoenix
#

Just learn basic JS, thanks

lament rock
#

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

opal plank
#

@misty sigil go approve it

#

change the file extension too

#

.js or .txt

#

whatever you want

earnest phoenix
#

There should be a new file extension specifically designed for that repo, .badcodeβ„’

misty sigil
#

folder system

opal plank
#

you do that if you wanna organise by language

#

shit py code

#

shit ts code

#

sht js

earnest phoenix
#

Hold up right there partner

#

There's no such thing as "shit ts code"

#

TS code always good

quaint wasp
opal plank
#
class .badCode:tm: extends .js {} 

done

quaint wasp
lyric mountain
#

Sop

opal plank
#

op

earnest phoenix
#

p

lyric mountain
#

q

quaint wasp
opal plank
#

bad

earnest phoenix
#

Bad

opal plank
#

you'll only learn bad stuff by watching videos

#

read the docs

quaint wasp
#

I read most of it.

#

I think.

#

I read lots.

opal plank
#

read that

lyric mountain
#

Don't read lots, read docs

earnest phoenix
#

Documentation always better than outdated and scuffed tutorial videos

misty sigil
#

@opal plank how much you wanna bet

#

that repo will take at least 10 minutes to clone

#

at some point

quaint wasp
#

no.

opal plank
#

nothing, as long as someone keeps updating them, it should be just like that

quaint wasp
opal plank
# quaint wasp no.

if you arent willing to learn, why should we spoonfeed you with your questions?

quaint wasp
#

not spoonfeeding.

#

I never really asked for that..

earnest phoenix
opal plank
#

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

quaint wasp
#

bra

#

I did.

opal plank
#

then why did u said no ?

vocal sluice
#

u guys bashing this man

lyric mountain
lament rock
#

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

vocal sluice
#

i am eating a muffins watching this

earnest phoenix
#

Holy shit

opal plank
#

its not bashing, its trying to remove bad coding habits early on

quaint wasp
#

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.

opal plank
#

watching youtube videos is not good at all

quaint wasp
#

why again?

opal plank
#

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

quaint wasp
#

I havent watched specific youtube vds. I watched those focused on ALL of discord.js.

opal plank
#

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

quaint wasp
#

alr alr alr.. I got it.

opal plank
#

and rely solely on docs and digging through the code

quaint wasp
#

I wont use google to code.

#

alr?

lyric mountain
#

Libs change way too fast to be worthwhile to watch vids

opal plank
#

nono, you SHOULD use google to code

#

you shouldnt use YOUTUBE

#

or videos

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

opal plank
#

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

lament rock
#

mfw someone writes a blog on medium about coding

quaint wasp
#

I meant youtube.

strange spruce
#

greetings discord devs

opal plank
#

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

misty sigil
#

turkish bot devs will be looking at the bad code repo and stealing it

ebon kelp
opal plank
earnest phoenix
#

Nah bro they're already way ahead of their way rocking all npm packages from the npm registry

misty sigil
#

npm i *

opal plank
#

node *

ebon kelp
#

npm i is-true

misty sigil
#

cpu fans whirr

opal plank
#

whirr?

#

shits gonna blow up if you're not cautious

earnest phoenix
#

When brrr becomes whirr, you know shits getting real spicy

lyric mountain
sage bobcat
#

One message removed from a suspended account.

ebon kelp
#

lemme introduce myself

sage bobcat
#

One message removed from a suspended account.

ebon kelp
#

I'm from Microsoft Tech Support

sage bobcat
#

One message removed from a suspended account.

ebon kelp
#

I believe you have a virus

sage bobcat
#

One message removed from a suspended account.

misty sigil
ebon kelp
#

I suggest installing this shady program

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

scenic kelp
#

@ebon kelp keep it on topic please

opal plank
#

πŸ‘€

scenic kelp
#

not the channel to joke around in

crimson vapor
#

wtf is this

ebon kelp
#

lol why only ping me :(

crimson vapor
misty sigil
#

as if we're not starting a dbl bad code repo

crimson vapor
#

explain

misty sigil
scenic kelp
#

it goes for everyone as well

#

you're the one I got the ping about

misty sigil
crimson vapor
#

hi Luke

delicate zephyr
#

@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

delicate zephyr
#

I'm splitting a lot of my shit into microservices

opal plank
#

service for yourself?

delicate zephyr
#

I wanna setup microservice status management

lament rock
#

Microservices sather1Pog

opal plank
#

as long as they are all internal, why not use prometheus?

#

use elk + prom client to montiro

delicate zephyr
#

I've had issues with prometheus and grafana

opal plank
#

like?

delicate zephyr
#

Its a known bug

opal plank
#

thats the best thing to use by far for this case

delicate zephyr
#

but prometheus and grafana have hella latency sometimes

opal plank
#

hmmmm i never get that tbh

delicate zephyr
#

I had a massive issue with it when I tried it

opal plank
#

and i query every 5 seconds

delicate zephyr
#

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

opal plank
#

thats the best thing you can try tbh

quartz kindle
#

doesnt grafana support custom dashboard designs?

opal plank
#

i think pm2 might be able to do some multi servicoe monitoring too

#

it does

quartz kindle
#

maybe you got a design that has bad code

delicate zephyr
#

yea, wanted a more centralised thing

quartz kindle
#

for it to lag client side

opal plank
#

did you make the dashboard yourself luke?

delicate zephyr
#

Yes

opal plank
#

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

delicate zephyr
#

πŸ‘Œ

opal plank
#

if you dont mind OCD kicking in, just make a couple extra panels

delicate zephyr
#

gotta learn how to use promethius

#

lol

opal plank
#

its a bit annoying to setup

#

but once you do

delicate zephyr
#

I'll just launch it in docker

#

and learn how to use it

opal plank
#

prom client is amazing

delicate zephyr
#

Also

#

whats elk?

opal plank
#

elk stack?

delicate zephyr
#

no idea

opal plank
#

elastic search, logstash, kibana

delicate zephyr
#

oh

opal plank
delicate zephyr
#

feel like thats slightly overkill for what I want

opal plank
#

it is overkill for most people tbh

#

i think im using elk for a couple things

delicate zephyr
#

I'm prolly better off using influx / grafana

#

if anything

#

idk tho

opal plank
#

you probably right, though you can use prom directly with grafana

#

prometheus keeps data for x amount of time

delicate zephyr
#

one of the downsides I had with influx was the RAM usage but that isnt an issue here

honest flume
#

Hi

opal plank
#

so unless you want persistent data forever, you'd need a db

delicate zephyr
#

i mean

#

Influx is the same

opal plank
#

i think our prom client is set to 90 days

delicate zephyr
#

but you can tell it to keep it forever

#

iirc

opal plank
#

i think prom is the same

delicate zephyr
#

ah

opal plank
#

but its safer to keep it in a db

#

past 90 days

delicate zephyr
#

I might use influx since I know how to use it

#

and yea

#

past 90 days isnt an issue for me tho tbh

opal plank
#

thats as far as i'll ever need it tbh, dont think i'll be quering older than that

delicate zephyr
#

querying anything higher than that is hello slow too

opal plank
#

actually, ours is set to 15 days i think

delicate zephyr
#

still loading

#

still loading

opal plank
#

actually, come call luke

delicate zephyr
#

ok its done now

opal plank
#

come dm cuz i can show this shit public

delicate zephyr
#

cant, at work

opal plank
#

no talking

#

just watch

delicate zephyr
#

ah

opal plank
#

there we go

#

@misty sigil too lazy

#

copy code over mmulu

misty sigil
#

auGH

#

i cannae be arsed

opal plank
#

me neither lmao

#

im a lazy bum

#

just merge

outer perch
#

can I get a Patron's Discord ID through Webhook?

opal plank
#

Β―_(ツ)_/Β―

quaint wasp
#

brah

#

so damn slow..

misty sigil
#

you reorganise it

opal plank
#

u do it

misty sigil
#

i press green merge button

opal plank
#

its an addition to YOUR repo

#

Β―_(ツ)_/Β―

misty sigil
#

fIIIIIIIINE

opal plank
#

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

lament rock
# outer perch can I get a Patron's Discord ID through Webhook?

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

outer perch
#

@opal plank How did you get those buttons on your Status?

opal plank
outer perch
#

0_0

#

well played, I see what u did there

opal plank
lament rock
#

It's update sdk time

opal plank
#

dynamic sdk

quaint wasp
#

Holy fuck I almost started cring a second ago..

#

I litilary deleted my whole bot file...

#

But it turns out I had a backup.

opal plank
#

imagine not having backup repos on github

#

smh

quaint wasp
#

github?

#

Github = trash.

lyric mountain
#

Use github bro

quaint wasp
#

garbage.

#

never.

lament rock
lyric mountain
#

You'll never be a good coder if you keep ignoring it

#

Git is life

lament rock
#

GitDab

lyric mountain
#

You either git gud or get rekt

quaint wasp
#

I reainstalled VSC.... and it looks..

#

so new..

solemn leaf
#

@quaint wasp prob bcs you got vs

#

@lyric mountain what the fuck

opal plank
quaint wasp
#

nice.

lyric mountain
#

Don't ask me, people have weird starboard criteria

outer perch
#

πŸ˜‚

lyric mountain
opal plank
#

why people starring my github prof?

#

πŸ‘€

lyric mountain
#

Github is the major online repo

quaint wasp
#

I did..

solemn leaf
#

@quaint wasp @outer perch stop starrin shit

quaint wasp
#

Bc im bored..

opal plank
#

why are people starring my profile and not my funny jokes?

delicate zephyr
#

lol

lyric mountain
#

There's also bitbucket, but github is the greatest

delicate zephyr
#

wait

opal plank
#

i mean, might as wel go to 3 stars now

delicate zephyr
#

do I follow you on github

#

hmmm

lyric mountain
#

Fully free, great tools, easy to use, etc

quaint wasp
#

idk

#

also

ebon kelp
#

What about Gitlab?

delicate zephyr
#

send link

opal plank
#

literally every joke i post that i think are starboard worthy, dont get starred at all

quaint wasp
#

How do I even connect to github from vcs?

opal plank
solemn leaf
#

@lyric mountain you cant force people to use github

quaint wasp
#

I tryed few times and didnt succed..

opal plank
delicate zephyr
#

sad you dont have private repos in contributions

outer perch
quaint wasp
#

I see no githab...

opal plank
lyric mountain
#

Yeah, I can't, but I can give critical advices

delicate zephyr
solemn leaf
#

bcs you need to get gud @quaint wasp

#

git add .

lament rock
#

Professional companies will also ask to look at your github if applicable. Having one is advantageous for careers

lyric mountain
#

Git is a must, be it github, bitbucket, gitlab, whatever

solemn leaf
#

git commit -m "h"

#

git push

quaint wasp
misty sigil
#

calling github bad KEKW

solemn leaf
#

YOU NEED TO GET GIT IDIOT it doesnt come preinstalled dumb dumb

opal plank
delicate zephyr
#

You can tell github to show them

opal plank
#

but peopel cant access any content in them?

quaint wasp
ebon kelp
#

Yikes

outer perch
quaint wasp
#

desctop.

solemn leaf
#

then do git

solemn leaf
#

desctop

delicate zephyr
#

a lot of mine are private

opal plank
#

let me do just that then, one sec

quaint wasp
solemn leaf
#

then get git

quaint wasp
#

how?

#

npm i git?

lyric mountain
#

Oh my

#

Forget npm for a second

ebon kelp
quaint wasp
#

..

opal plank
#

@delicate zephyr done

lyric mountain
#

Npm is node-related

mellow kelp
#

have you tried googling "how to download git"?

lyric mountain
#

Git is a software

delicate zephyr
#

pog

quaint wasp
#

?

#

so I download it?

ebon kelp
#

So first he was trashing Github, but he doesn't even know how to use it?

quaint wasp
#

on there website?

lyric mountain
#

Yes

opal plank
#

HEHEHEHEHEHE

delicate zephyr
opal plank
#

i forgot i had commits on horny stuff

opal plank
#

@delicate zephyr

delicate zephyr
#

lmfao

mellow kelp
#

yes

outer perch
quaint wasp
opal plank
#

@outer perch yes

outer perch
ebon kelp
#

"upload"?

delicate zephyr
#

@opal plank mine is uh, interesting

lament rock
#

gitignore totally doesn't exist

quaint wasp
#

dah

outer perch
#

When not givin' a damn about them

opal plank
#

mine has a few too many horni things

ebon kelp
#

You upload files to github with the upload button? HaHAA

lyric mountain
#

And database stuff

delicate zephyr
lyric mountain
#

How tf you upload a database?

quaint wasp
#

this where I download this shit?

earnest phoenix
#

hi please help me: the selected part does not work in the code
ERROR CODE:

ReferenceError: message is not defined
quaint wasp
#

deffine a message then.

opal plank
#

use the source control

quaint wasp
#

whats that?

proven lantern
opal plank
#

VSC

quaint wasp
#

but what does it do?

mellow kelp
#

what is this

quaint wasp
#

source control?

ebon kelp
#

Oh boy this guy has a lot to learn about git

lyric mountain
quaint wasp
#

But its usless..

lyric mountain
#

Souce control = versioning = git

opal plank
#

its basically how you commit stuff

misty sigil
outer perch
solemn leaf
#

@opal plank the check mark

lyric mountain
#

Well, not exclusively git

quaint wasp
#

looks really trash..

opal plank
#

what check mark?

lyric mountain
#

But mostly git

solemn leaf
#

the white one

#

it commits all of that

opal plank
#

its git with a UI

solemn leaf
#

or you can manually do it

opal plank
#

unless you wanna do manual commands

#

use that

#

git add .

#

git commit

mellow kelp
#

you should probably start with commands

opal plank
#

git push

mellow kelp
#

so that you can use git on pretty much anything

opal plank
#

git stage "filename"

lyric mountain
quaint wasp
#

brah

opal plank
#

theres a ton of git commands

quartz kindle
#

or just use github desktop :^)

quaint wasp
#

I cant find the download..

opal plank
#

you either use the ui, or use the commands

opal plank
ebon kelp
solemn leaf
#

@quartz kindle git bash

quaint wasp
#

ikr

earnest phoenix
#

when you blame your incompetency on the software instead of yourself

lament rock
#

git desktop still requires git to be installed, no?

mellow kelp
quartz kindle
#

i actually use github desktop xD

opal plank
#

its a thing btw

mellow kelp
#

that looks pog

quaint wasp
#

thats git?

ebon kelp
#

Free with Github Education I believe

opal plank
#

thats gitKRAKEN

earnest phoenix
#

i find git UIs such a pain i do everything through the CLI lol

quaint wasp
#

looks complecated.

lament rock
#

Didn't know if it was embedded or not. I used the cli before I swapped to Git Desktop

opal plank
#

though you'll be using VSC a lot more than this

lyric mountain
opal plank
#

this is specially good for viewing data and fixing conflicting merges

quaint wasp
lyric mountain
#

That was the actual git

opal plank
#

^^

lyric mountain
#

Yes

quaint wasp
#

it was hard to find.

opal plank
#

you wont have a UI

#

thats all commands

lyric mountain
#

It does

#

Git comes with ui

opal plank
#

the UI is a terminal

earnest phoenix
#

hard to find
first result on google

quaint wasp
lyric mountain
#

No no, you get two options

opal plank
#

ik

lyric mountain
#

When u right click

opal plank
#

but this is hardly a ui

ebon kelp
#

Git GUI HAHAHAHA

opal plank
#

look at this shit

lyric mountain
#

Well, yeah

opal plank
#

LOOK AT THIS SHIT

lyric mountain
#

But it's a thing

earnest phoenix
opal plank
#

its hardly a UI

ebon kelp
#

They should remove that shit

earnest phoenix
#

im having errors with my snipe

#

everytime i use a snipe after i have sniped it displays this error

lyric mountain
#

Wtf is that variable name

solemn leaf
#

someone post a snipe command online bcs alot of people are making them now

proven lantern
#

intellij has the best git integration for an ide

lyric mountain
#

True

ebon kelp
#

IntelliJ has the best merging tool <3

quaint wasp
#

wat that

ebon kelp
#

I absolutely love that thing

outer perch
lyric mountain
#

Jetbrains VCS is a god

earnest phoenix
#

although vsc is not an ide, the git support is superb

outer perch
#

does he know what IDE is?

quaint wasp
#

no

ebon kelp
#

vsc not an ide?

proven lantern
#

no

earnest phoenix
#

it isn't

quaint wasp
#

idk

earnest phoenix
#

vsc is a code editor

outer perch
#

monkaS

lyric mountain
#

Actually, jetbrains is probably the most user-friendly company out there

outer perch
mellow kelp
#

but with lots of extensions, vscode gets pretty close to an ide

ebon kelp
quaint wasp
#

What do I choose?

lyric mountain
#

At least from the ones I know

proven lantern
#

independent document editor

#

ide

outer perch
proven lantern
#

promise

opal plank
#

isnt technically VSC an ide?

quaint wasp
#

alr.

mellow kelp
#

kinda

#

but kinda not

lyric mountain
ebon kelp
#

Only with extensions

lyric mountain
#

Dont change anything

outer perch
mellow kelp
#

but uhh

#

i think he needs the second option

earnest phoenix
#

it isn't

quaint wasp
mellow kelp
#

the default option only lets git be used from git bash

earnest phoenix
#

the OOBE isn't an IDE

lyric mountain
mellow kelp
#

o

lyric mountain
#

Second option is default

outer perch
mellow kelp
#

oh alright

opal plank
#

though it does suppose to have debuggers n shit

#

as well as terminals

lyric mountain
#

Just go clicking next smug

opal plank
#

wouldnt that categorise it as an IDE?

earnest phoenix
#

you can mimic IDE behavior through plugins but vsc OOBE isn't an IDE πŸ€·β€β™‚οΈ

quaint wasp
lyric mountain
#

Goddamn

#

Just go clicking next

opal plank
#

hmmm i see the point

outer perch
#

spam it

quaint wasp
#

spam wut?

lyric mountain
#

Only change what you know why you're changing

nimble kiln
#

Spam next

lament rock
#

send it!

lyric mountain
#

If you don't know what it means 99% you can go with defaults

quaint wasp
#

i changed nothing but wut u asked to change

lyric mountain
#

Just go with defaults

ebon kelp
#

just use all the pre selected option

lyric mountain
#

Click next

#

Next

#

Next next mext

ebon kelp
#

next x100

quaint wasp
nimble kiln
#

lmfao

ebon kelp
#

._.

#

install

lyric mountain
#

Then done

nimble kiln
#

Well this is technically not Next

lyric mountain
#

Or finish

nimble kiln
glossy spoke
#

hey

ebon kelp
glossy spoke
#

what does json means?

#

i already forgot it

#

lol

hardy river
#

Is there an api to see votes for servers? I can only see for voting for bots?

lyric mountain
nimble kiln
solemn latch
ebon kelp
quaint wasp
#

wut do I do when I got git shit?

hardy river
icy skiff
#

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)?

quaint wasp
#

run those cmds?

#

I forgot the cmds..

proven lantern
#

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?

opal plank
#

postgres , depending on ur use case, is the equivalent of needing to snap a stick with a chainsaw

#

do you need scaling?

opal plank
#

do you store basic data?

opal plank
#

give more details before i can recommend you a database

icy skiff
#

all the data in the db are pretty basic, few rolls and only int, floats and text

opal plank
#

sqlite should be the only thing you need then for now

#

how many users/servers we talking about?

icy skiff
opal plank
#

even for basic data, if you start getting into millions, you might wanna migrate to a better db

quaint wasp
icy skiff
#

all the new data after running the bot is lost

outer perch
#

@lament rock what's the difference between members:create and members:pledge:create? The second one gives pledge info but the first doesn't?

icy skiff
#

like it rollbacks

opal plank
#

hmmm

opal plank
#

sqlite might do the trick then

#

unless you start getting into millions

#

then you might wanan move onto a befier db

quaint wasp
#

repository is what?

outer perch
quaint wasp
opal plank
quaint wasp
#

oh

opal plank
ebon kelp
#

I suggest watching a tutorial

lament rock
#

Oh. members:create is whenever someone becomes a patron of you. pledges create is when someone pledges or edits their pledge iirc

opal plank
#

and NOW you starting to see why we recommended the UI on either VSC, gitKraken or something else @quaint wasp

lyric mountain
icy skiff
lyric mountain
#

Sqlite doesn't wipe the data once you stop the bot

quaint wasp
lyric mountain
#

Heroku is volatile

icy skiff
#

its bc it get it from github right

opal plank
lyric mountain
opal plank
#

every minute or two if tis too many entries

lyric mountain
#

Heroku wipes all data once u shutdown

opal plank
#

otherwise if you feel like its safe, do it everytime its changed

outer perch
icy skiff
#

ok let me explain it a little bit better

lyric mountain
#

Because it's fully volatile and totally not meant for bots

opal plank
#

aight, go ahead

lament rock
#

no

quaint wasp
#

it doesnt work..

ebon kelp
#

oh boy

quaint wasp
#

there is space..

#

in files..

proven lantern
outer perch
ebon kelp
#

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...

β–Ά Play video
icy skiff
#

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

lyric mountain
#

No, pls, don't do that

opal plank
ebon kelp
lament rock
#

yikes. Hosting a db on github

outer perch
#

o_O

outer perch
lament rock
opal plank
#

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

ebon kelp
#

mongodb free cluster catJAM

opal plank
#

@icy skiff

outer perch
#

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

lament rock
#

People can pledge custom amounts

outer perch
#

yeah, but the Webhook should send pledge info so I can know if they chose a tier or not

icy skiff
#

my bot works all fine and good when on my pc but hosting it has been a headache cause of the dbs

outer perch
#

check paths

#

unless db is online

earnest phoenix
#

how can i deaf a stick when it enters a sound channel
Discord.js
v12+

icy skiff
#

xd

opal plank
#

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

  1. 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.

  2. 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

  3. 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 the sync event runs, it'll be only changing the entries that have changed.

  4. 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

outer perch
quaint wasp
#

how do I make it go into onather file?

jolly mortar
#

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

icy skiff
#

thankx for the help

#

:D

opal plank
#

no problemo

#

πŸ‘

jolly mortar
#

client*

opal plank
#

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

jolly mortar
#

oh

opal plank
#

remember, values are in MILLISECONDS

jolly mortar
#

no wonder

#

ok it works now

#

thanks

opal plank
#

πŸ‘

jolly mortar
#

is 5 seconds good enough

#

5000

#

or too low

misty sigil
#

too low

jolly mortar
#

how bout 10

quaint wasp
#

its client, not lient.

#

IM BIG BRAIN!

#

hahah

#

See

jolly mortar
#

no i copied it wrong

quaint wasp
#

now I help you

mellow kelp
#

bruh

jolly mortar
#

i set it to 3 thinking it was in seconds and it was changing the status super fast

mellow kelp
quaint wasp
#

lol

mellow kelp
#

you shouldn't do 3 seconds either though

jolly mortar
#

im going with 10

mellow kelp
#

aight cool

opal plank
quaint wasp
#

dont even ask why, but I tryed that and it doesnt work for some reason on my VSC..

jolly mortar
#

its still suffering from me setting it to 3 ms KEKW

opal plank
#

aight

opal plank
#

would show but no nitro, gifs are too powerful

#

Β―_(ツ)_/Β―

#

but it works

lyric mountain
#

Change all classes/ids

opal plank
#

what css?

#

didnt xetera said there was not breaking changes at all?

lyric mountain
#

Well, yes

opal plank
#

i like the bacground

#

i darkened might a bit more

earnest phoenix
#

how do I set up vote roles like these

opal plank
#

and rounded most of the containers

solemn leaf
#

what the

craggy pine
#

I use moving particles kittyLove

opal plank
#

i thought about it once we were on winter tbh

#

to add snowflakes falling with css

#

but it was too late for that

outer perch
opal plank
#

add a round property on it

outer perch
#

have a 1366x768 monitor, and no HTML/CSS skills

opal plank
#

what i need to do is change the votes

craggy pine
#

Hm?

opal plank
#

i just noticed its too dimmed out

craggy pine
#

ah yeah

opal plank
#

too dim

craggy pine
#

Mine is a little darker than others I noticed.

opal plank
#

i might need to turn up the brithness or change the font

craggy pine
#

My one complaint unless u figured out a way to this is...

opal plank
#

maybe i can wrap it like i did with the title

#

let me try it rq

craggy pine
#

u know

#

but a change happened, kinda not as easy as it once was.

opal plank
#

oho, we can change vote counts

craggy pine
#

What using content:

opal plank
#

.pill aparently is the class

craggy pine
#

wana poke around at the footer bg

opal plank
#

i would like to completely hide the footer and header background color tbh

craggy pine
#

see if u can hack it to be opacity 0

opal plank
#

let me check

craggy pine
#

or sum

#

<style> </style> is what I do so all css is below my html

quaint wasp
#

y

opal plank
#

doable @craggy pine

craggy pine
#

bloo

#

Is it?

opal plank
#

let me try red, yeah

craggy pine
#

The actual footer of the top.gg page?

quartz kindle
#

@opal plank question:

opal plank
opal plank
#

nah, im playing with the vote for now

quaint wasp
craggy pine
#

Well color of the text isn't something I'm worried about, that's ezpz. I do that already KEKW

quaint wasp
#

Dang you good ..

#

How do u make your discord status like that?

solemn leaf
#

sdk

#

get gut

opal plank
#

sdk

quartz kindle
#
enum constants = {
  SOMETHING: 1
}

function bla(param: constants.SOMETHING): SomeValue
quaint wasp
#

?

opal plank
solemn leaf
#

@quartz kindle ts

quartz kindle
#

it works if i pass the exact constant

#

but it doesnt work if i pass the literal number

opal plank
#

@quartz kindle if you using primitives you gotta use the proper type

#

or cast it

quartz kindle
#

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

opal plank
#

can you gimme an example of how thats not working?

jolly mortar
#

setting the status to change every 20 seconds was not a good idea

opal plank
#

im not getting whats the error/issue

jolly mortar
#

the bot takes 30 seconds to respond

#

and i think it just broke

quartz kindle
#

i'll dm

opal plank
#

aight

craggy pine
#

w3school

quaint wasp
#

can I make a already created application go into a team?

#

nvm

jolly mortar
#

20000

#

its working now

quaint wasp
#

HHHHHHHHHHHMMMMMMMMMMMMMMMMMMMMM

#

Some behind senecs stuff.

#

"You dont need to worry about that"

opal plank
#

node can use c langs with Napi

quaint wasp
#

😐

#

wuts Napi?

opal plank
quaint wasp
#

brah

#

I need help wit hthis:

zenith terrace
#

Why are you doing that, why not just use a normal setActivity

#

2 different status

#

And make them change

unkempt ocean
#

Also you forgot the , right before the options thing

quaint wasp
#

thanks.

#

does it has to be like..

#

set.status

#

?

solemn leaf
#

read docs

#

If you want to be a developer

#

you need to learn how to read documentation

quaint wasp
solemn leaf
#

Then look for it

solemn leaf
#

sense you're messign with the user it's clientUser#setStatus if you read docs it would have told you

broken matrix
#

i saw some bots with a custom bot card is that a feature i can do or nah

quaint wasp
#

yes..

#

you can.

broken matrix
#

ok

#

thank you

#

this thing right