#development

1 messages · Page 166 of 1

lyric mountain
#

flaze mentioned u do need a token

earnest phoenix
lyric mountain
earnest phoenix
#

and it didn't work

#

lol

wheat mesa
#

Question on postgresql that Tim answered earlier but that I am now learning I should probably use a different design for: I have a table items, which has a field modifier_groups integer[], which points to IDs in a table of modifier_groups. I am learning that using arrays is a bad design in a database, but I'm not sure how else to handle it. An item can have multiple category groups, or none at all. Any ideas?

lyric mountain
wheat mesa
#

But how?

#

Each item needs to know which modifier group(s) is has

earnest phoenix
#

so kuuhaku

lyric mountain
#

lemme boot up drawio

earnest phoenix
#

can u help me

#

?

lyric mountain
#

no

earnest phoenix
earnest phoenix
lyric mountain
#

Basically, have your items' id as a foreign key in modifiers table

#

When u want to select them, simply use an inner join

lyric mountain
earnest phoenix
#

who else can help

#

wheat mesa
#

(regardless I've never used foreign keys)

#

Something like this? ```postgres

CREATE TABLE IF NOT EXISTS products(
    id integer PRIMARY KEY,
    name text,
    price integer,
    category text,
);

CREATE TABLE IF NOT EXISTS modifier_groups(
    id integer PRIMARY KEY,
    name text,
    item_id integer FOREIGN KEY,
);

CREATE TABLE IF NOT EXISTS modifiers(
    id integer PRIMARY KEY,
    name text,
    price integer,
    modifier_group integer FOREIGN KEY,
);
lyric mountain
#

foreign keys are basically references to properties in other tables

#

item_id would reference id, and depends on the latter existing

wheat mesa
#

I keep seeing something about REFERENCES, is that something I need to look into?

lyric mountain
#

references dictates which fields a FK refers to

wheat mesa
#

I still don't see how this allows me to reference multiple items from one entry though

lyric mountain
#

if u declare it on the field u dont need to worry abt it

lyric mountain
#

hm, wait

#

I think I misunderstood ur structure

#

anyway, note the inner join there

#

let's say we have 1 product with 10 mods

#

it'd return 10 lines with the product side repeating on every line (because it's 1 product), but the modifier_groups side unique to each

#

if you wanted to get only the mods you could do SELECT * FROM modifier_groups WHERE item_id = :id

#

which'd return the 10 mods, without the parent (product) table

#

it's hard to explain in text, make a simple structure so u can see it physically

wheat mesa
#

okay so I have a basic thing set up with the query tool in pgadmin, here's the products table

#

And here's a modifier group I made

#

However I don't know how to get that group to apply to multiple items

#

Do I just need multiple entries for the same value

#

That kinda sucks

lyric mountain
#

dont u use intellij?

lyric mountain
#

when ur gonna retrieve all mods from group Toppings, you'd do SELECT * FROM modifiers WHERE group_id = 1

wheat mesa
lyric mountain
#

in sql it's not exactly "one value contains multiple values", but "one value is referenced by many values"

wheat mesa
#

yeah my solution for now is just duplicating entries

#

I'll learn more on how to do this properly later

lyric mountain
#
modifier_groups
id  | group_name  | product_id
1   | Toppings    | 1

modifiers
id  | mod_name  | group_id
1   | Test      | 1
2   | Fizz      | 1
3   | Buzz      | 1
#

see how group_id is the same for all?

#

they're children from Toppings

#

and as such u can fetch them by Toppings's id

earnest phoenix
#

^

#

can someone help

#

pls

wheat mesa
#

is it a bad idea to use a string as a primary key

#

IDs are guaranteed to be unique by the API that's supplying my data, but they come in string format

marsh lark
#

I mean most ids are strings

#

Like uuids for example

wheat mesa
#

Yes but that's not the point, in terms of database efficiency is it a bad idea

#

I should probably just have a separate column and use an auto generated primary key

earnest phoenix
#

can someone help

wheat mesa
#

no

earnest phoenix
#

why?

wheat mesa
#

TOS momento

earnest phoenix
#

i am almost 100% sure you’ve broken the tos of a website

#

it’s not like i am doing anything bad

#

this is for benefit

wheat mesa
#

And yet it’s still against discord ToS to help you

#

Plus I don’t like you so there’s that 😛

slim void
#

That's why no one has helped him. Common sense but I guess he lacks it or something

earnest phoenix
#

Hey all, I am just wondering if I can add multiple webhook urls to top.gg

slim void
#

If it works like any normal web hook then u can. But I can't say for sure as I don't use them on top.gg

earnest phoenix
#

Yes they both work individually, but I wanted one to show who voted and one to give rewards to my users

#

that's why I was asking if multiple on top.gg was allowed if so how?

earnest phoenix
slim void
#

How? You break discord tos I don't. I knew people didn't help you bc of it you didn't. Seems to me if u do have common sense I have more of it 💀

earnest phoenix
lyric mountain
slim void
earnest phoenix
#

🤔

quartz kindle
#

at this point we all know you too well

#

you're famous :^)

lyric mountain
#

Infamous even

earnest phoenix
#

i don't know who mr. void is

#

they just spawned here recently

slim void
#

Funny bc I've been here longer. So if anyone spawned in here it's you since your been here for 1 whole week

lyric mountain
#

That's an alt

#

The main got muted for half a year

slim void
#

Oof

lyric mountain
#

Then got banned after him appeared here with this account for mute evasion

#

Somehow he's still here

slim void
#

So why isn't this account banned or muted?

lyric mountain
#

Who knows, maybe he appealed

slim void
#

Idk from thr aditude he has I'd say he didnt

earnest phoenix
#

a moderator decided to ban me for mute evasion even though my mute was over

#

why would i still be banned, it was false

#

i didn't make an appeal he just realized his mistake a few minutes later and unbanned me

wheat mesa
earnest phoenix
#

what is against discord tos

#

what i'm making doesn't even relate to discord in anyway

#

so i'm confused

#

lol

wheat mesa
#

Assisting the breaking the TOS of other services (even unrelated to discord) within discord is against their TOS

earnest phoenix
#

though i don't think i'm breaking spotify rules

wheat mesa
#

u are

#

you're scraping

#

well, not scraping

#

but using private/undocumented APIs

earnest phoenix
wheat mesa
#

Yes because it’s not intended for use by regular users

#

That’s like saying “Walmart keeps their doors open and I can take products off of the shelf, is it really stealing if I don’t pay for it?”

earnest phoenix
#

thats a really bad synonym

#

bc if walmart was private they would have locked doors and security etc

#

to prevent you from using it

#

but spotify api i wanna use doesn't seem to have any locked doors keys security etc

#

it's just there

pale vessel
#

and yet why do you still have trouble getting it to work

earnest phoenix
#

i’m not too smart like that yknow

#

that’s why i kindly ask for some assistance

wheat mesa
#

as in, it requires a user token to access

#

and you are exploiting user tokens by pretending to be a user browing that page

earnest phoenix
#

you get a key to the store just by going there?

wheat mesa
#

in a way you do

#

you are given the right to be on the property by entering the store, however this right can be revoked by the store owner/manager at any time for any reason

earnest phoenix
#

so if i can publicly enter the walmar

#

it's not private

wheat mesa
#

walmart is a private establishment and maintains the right to trespass you for any reason they deem fit

#

you break the terms that you implicitly agree to when entering the store, they can kick you out

#

same concept applies here

#

you are breaking the terms of them giving you that token

#

its intended use was for users, not to be used as an api

earnest phoenix
#

so i can use the api until they kick me out

wheat mesa
#

you're essentially saying "so i can steal from walmart until they find out"

#

ethical dilemma at that point

#

but you're not going to get help for it here

earnest phoenix
#

what your saying makes a little sense

#

but not much because there's a big difference between a store and api

#

so there's a very different ethical difference

wheat mesa
#

that's for you to decide, either way you're violating the terms of service

earnest phoenix
#

i don't think so

#

there's nothing that says i can't use it

viscid bloom
#

h

#

hm

wheat mesa
lament rock
#

Would google be breaking their TOS since they're literally indexing Spotify

#

Or Discord even since their embeds display all of the tracks in a playlist or at least the first 100 as per the HTML OG meta tags

wheat mesa
#

They likely have an agreement

#

I'm not saying that it's entirely unethical, just that he's breaking their TOS, therefore we cannot help with it without breaking discord TOS ourselves

quartz kindle
#

who cares about spotify anyway, if they have an unprotected api just use it

lament rock
#

The unprotected API is the HTML OG meta tags

cyan gate
deft wolf
#

Cool error Thumbs_Up1

cyan gate
#

its discord.js v13.14.0

earnest phoenix
# cyan gate

The <Collection>.array() method was removed, use <Collection>.values() to iterate over the collection's values

eternal osprey
#

hey guys

#

my teacher kinda confused me in algo and data structures today

#

this is dfs.

#

DFS uses a stack right? I also learned that always the left element will be added to the stack at first.

#

So in that case the stack has [Q,S] after exploring L. However, this means that due to the LIFO principle of stacks, S must be discovered first right? Why did my teacher choose q tho

lyric mountain
#

my boy I have zero clues about what that means lmao

rustic nova
#

Y'all are learning weird stuff ngl

#

Is that beginners or intermediate

lyric mountain
quartz kindle
#

its probably using alphabetical sorting or something

#

or some kind of approximation to the target value, ie, which of Q or S is the closest to what i want to find

radiant burrow
#

anyone use mongoose/ mongodb much?

I had a query that gets all the users to sort them for the leaderboard. yesterday it worked just fine. Now that query takes about 10 seconds. There's been no large increase in users and I don't think I changed anything about the query??

the collection only has about 1200 documents and like I said yesterday it took a second or two.

#

i also tried .lean and .limit, limit of course works if it's like 10 documents but still at 100 or 1000 or with no limit it's very slow

lyric mountain
radiant burrow
#

yea that's what I do

#

sorry if it wasn't clear

lyric mountain
#

and that's taking 10 seconds?

radiant burrow
#

yeah

lyric mountain
#

how many entries are we talking about again?

radiant burrow
#

1200 documents

#
console.log("1");
let userLeaderboard = await UserProfile.find({});
console.log("2");

quite primative but the time between 1 and 2 is about 10 seconds

#

i took off the lean and limit but I did try those

lyric mountain
#

how are u sorting it? (code)

#

actually, what's inside find?

radiant burrow
#

nothing

#

I want all the users

lyric mountain
#

I mean, the processing in it

#

not the argument

radiant burrow
#

well userLeaderboard becomes an array of object (at least object adjacent) items, so I sort it depending on the leaderboard type

#

but the sorting takes no time at all

#

relative to this

lyric mountain
#

ik, what I mean is, did you write find or is it from mongo?

radiant burrow
#

it's mongoose

lyric mountain
#

that's odd, 1200 entries is nothing at all

#

what's ur structure?

radiant burrow
#

right that's why Im confused

#

lemme get the schema

#

(also I'm more confused bc it was super quick previously)

lyric mountain
#

also there's a possibility that your mongo server is overwhelmed

radiant burrow
#

yeah that's kinda what im thinking

lyric mountain
#

perhaps from a deadlock holding resources hostage

#

did u try restarting it?

radiant burrow
#

it's like the free cluster so I may need to upgrade

lyric mountain
#

ah, free, yeah you wont go very far with it

#

u can download mongo locally and run on your server

deft wolf
#

True, it's very easy to set up

radiant burrow
#

hmm ok ill look into that

#

obviously I don't want it locally hosted so can any web server host it? I already have a vps and also use digital ocean, can either of those handle it?

lyric mountain
#

yep

deft wolf
#

Of course, you can host it on any vps to be honest

radiant burrow
#

I feel like I'll do all the work to set that up and then it won't even be that as the issue LMAO

#

gotcha gotcha

lyric mountain
#

still, you NEED to figure out the issue

#

else you might find yourself scalling vertically

#

which is not cost-effective

radiant burrow
#

yeah

#

can't beat the price of free

lyric mountain
#

not what I mean

radiant burrow
#

o

lyric mountain
#

like, if you're having issues with 1200 now, it might get better after u move away from free

#

but then it might happen again at 2000

#

and you'll need to upgrade

#

then happen at 3000, upgrade again

#

it's better to find the issue now before it snowballs

radiant burrow
#

oh yeah I see what you mean

radiant burrow
# lyric mountain still, you NEED to figure out the issue

I know you litrally just explained the danger in this, but is hosting on my droplet more cost efficient than just upgrading? I'm not the most proficient when it comes to setting stuff up (efficient and effectively) on vps' n stuff, so if its a few extra dollars a month to stick with mongodb's server i don't really mind

#

but maybe I just should bite the bullet and configure it now, so that like you said I don't need to keep scaling db costs NotLikeDuck that does seem pretty logical

lyric mountain
#

try to optimize the most you can, if it's still slow, then upgrade

quartz kindle
#

finding 1200 documents may strain the network as well

#

if you're getting the entire json data for each document, that can amount to quite a bit

#

possibly multiple MB of data in a single request

#

thats why pagination exists

#

and selectivily chosing which fields to return

radiant burrow
#

oh yeah I did try that

#

I forget what the method was called but you selected the fields to return, but that didn't help

quartz kindle
#

then pagination

#

how long does the request take if you limit it to like 10 documents?

radiant burrow
#

super quick

#

like a fraction of a second

quartz kindle
#

what about 100

lyric mountain
#

since it's a leaderboard, cant u just return level + user id?

#

instead of the whole document

radiant burrow
quartz kindle
#

so chose a number that has good performance, and paginate with that

radiant burrow
#

I might also try sorting first if that's an option with mongoose, then i only need to return 10 documents and check for the user if they don't rank top 10

scenic kelp
#

so wait you were sorting on the client side?

#

you should always default to sorting through the database unless you have a very very very compelling reason not to

radiant burrow
#

yes i think that will be the best solution

#

oh my god it's so fast 😭😭 maybe even faster than before

#

im so dumb

#

ty yall frogHeartsmillycHeartmillycHeartmillycHeartmillycHeartmillycHeart

scenic kelp
#

yeah, you gotta wrap your mind around the fact that a database also does data manipulation

#

that's what makes it a database and not a text file

#

so any time you're doing manipulation of a lot of that data, you should try and do it through the db

earnest phoenix
#

Hey all, is there a way to use multiple webhooks on top.gg?

solemn latch
wheat mesa
#

uhhhhh, how big of a json response is TOO big for a REST api? I suppose I should work on pagination of data as my response for an entire menu worth of items would likely be absolutely giant

earnest phoenix
wheat mesa
#

I'm thinking I should split up the endpoints between modifier groups and modifiers to reduce the data sent along with each item

earnest phoenix
solemn latch
quartz kindle
#

a few hundred kb is still small enough for the request to complete in under half a second for most people

#

but once you get close to 1mb+, you're already looking at a potential 1-2s+ response times

#

your sample response is 2kb for 2 items

#

so at 200 items its gonna be ~200kb, which is still small enough and fast enough in most cases, its basically one HD jpeg image

wheat mesa
#

I see

#

The thing is that with a few hundred items, the size is going to increase more than just linearly, there will be more modifiers and modifier groups

#

Plus I think it would be less spammy to my database if I separate out into multiple endpoints instead of all in one

#

In a way, that endpoint is doing more than it should

radiant burrow
crystal wigeon
#

is there any good lib for elixir to build a discord bot?

#

and scale it like with sharding and stuff

wheat mesa
#

“elixir” and “scalability” don’t belong in the same sentence

#

We’re talking in the same boat (if not worse) than python performance

#

If you want something truly scalable then elixir is probably not the choice

sharp geyser
#

Elixir is fast tho :D

#

Also I pitty any poor soul who makes a discord bot with elixir

wheat mesa
#

Elixir is fast if your definition of fast is your mom’s dial up connection from the 80s

crystal wigeon
#

Plus best way to learn the language is by building something so why not

crystal wigeon
#

How about rust

#

Any good libs for rust?

brave geode
#

Hii, I'm trying to make dashboard for my bot. When a user auth I fetch all guilds of users and then I get all guilds of bot from api I made. My bot is in 33k servers. It sends 33k guild everytime a users auths, i think it's not a good idea so, WHAT SHOULD I DO INSTEAD?. After that i filter all guilds and get mutual one. I'm not experienced with dashboard & web development enough so yeah

pale vessel
#

if you store members in your guilds, then do all the mutual filter server side

#

make your api accept a user ID and process mutual servers from there

crystal wigeon
#

any info in elixir or rust discord bots?

#

like which libs are best to scale the bot

pale vessel
#

slash commands or gateway?

#

for rs gateway I use twilight. it's pretty robust

#

for webhook-based slash commands, I use a friend's library

crystal wigeon
#

i was wondering if theres a lib llike djs for rust or elixir

#

that handles sharding etc

pale vessel
#

serenity has a nice framework from what I've seen

#

twilight is more modular and barebones

crystal wigeon
#

ic

quartz kindle
#

try it and see

lyric mountain
#

proceeds to delete the question

crystal wigeon
#

lol kekcry

quartz kindle
#

i have a weird question

#

are increment/decrement operators (++/--) considered assignment operators or arithmetic operators? or both lol

#

i've seen them being grouped with assignment operators in some places, together with += -= etc

#

but other places list them as an arithmetic operator, grouped with + - / * etc

karmic thistle
#

this might not be in the correct channel but I dont know where to ask this. Anyway, is it possible to add a custom emoji to bot message?

deft wolf
#

Of course

#

\:topgg:

#

You need to do something like that with emoji you want to use

#

And paste it in the message/embed of your bot

karmic thistle
#

I did that but but when I copied the emoji and id it didnt work

deft wolf
#

You can't use emojis in embed title

karmic thistle
#

oh

deft wolf
#

Just like you can't use markdown

karmic thistle
#

thanks for the info :D

#

didnt know that

deft wolf
#

You can kind of cheat on this and instead of giving a title, turn part of the description into something similar to a title

karmic thistle
#

yeah, I'll add it to the descriptions with like bold so it looks as if its the title

deft wolf
#

Yea, you can do this if you really need this emoji there

karmic thistle
#

hmm, weird still after putting the emoji still not showing

deft wolf
#

Does the bot have access to this emoji?

karmic thistle
#

is there like a need for an intent or something?

deft wolf
#

No, the bot simply has to be on the server where this emoji is located

karmic thistle
#

OHH

deft wolf
#

Of course, it must also have permission to use external emojis if the emoji comes from another server

karmic thistle
#

thats why facepalmz I was doing updates on a test bot and that bot wasn't in that server.

#

honestly thanks so much :D

deft wolf
#

No problem

tulip ledge
tulip ledge
deft wolf
#

The question was about custom emojis

lyric mountain
#

Oddly enough, the same doesn't apply for author

#

Nor footers

rustic nova
#

Not the actual title title

deft wolf
#

No, it's title

#

And it's working

#

So weird

lyric mountain
#

Consistency™️

#

Didn't try codeblocks to see if they work tho

deft wolf
#

Spoilers works tho

lyric mountain
#

Lmao tf

rustic nova
#

So like

#

Everything fucking works

#

Except emojis

#

Can you use

test

neon leaf
#

Emojis work too

lyric mountain
#

Emojis yes, emotes not

deft wolf
#

Wait but custom emojis works too

#

When they changed it

#

Like why nobody talk about it

#

Did I miss that or what

#

Apparently I totally missed it because I didn't even know it was possible. I thought it was impossible to do something like that in an embed title

marsh lark
#

Custom emojis always worked since markdown was supported in titles

real rose
marsh lark
real rose
#

moreso the ping

marsh lark
#

im confused since thats not a link

real rose
#

we just have the everyone ping in our links filter

slim void
#

😂

neon spruce
#

Does anyone have a guide on how to link the commands in Python with top.gg so that they are activated when voting?

compact pier
#

I have a smart band from 2016, no hardware nowaday support it. Is there anyway to reverse engineer it and make custom app from that

tulip ledge
#

Does anybody know if there's a way to integrate gitbook in your website? Or is there like a framework/library to allow you to create something similar in your website?

digital swan
rustic nova
#

-b @crude orchid this server is still not a recruiting server

gilded plankBOT
#

upvote blackspace4423#0 was successfully banned.

pale vessel
#

inb4 it's some mi band 4/5

wheat mesa
#

Probably an old Fitbit or something

compact pier
#

nah, it is an old lenovo

#

but I found out, that it's impossible, because I don't have the enough knowledge and equipment for it

pale vessel
#

that's the first time I've heard Lenovo made bands

compact pier
#

I tried to log the bluetooth signal and decode it

#

and then build an app from that

#

but haven't seen anyone done that before, so I gave up :)

quartz kindle
quartz kindle
neon leaf
#

is there any npm package that allows working with ip ranges (or generally ips)?

so like it can give me a list of ips if
start 185.9.158.8
end 185.9.158.15

or atleast make it easier

vivid fulcrum
#

why would you need a package for that

neon leaf
#

its quite complex for v6

vivid fulcrum
#

ah

neon leaf
#

and I dont want to mess it up

rustic nova
#

I meaaann

#

you could just substring ipv6 addresses

#

but thats dum

#

when you have stuff like ::0 or caaf::1

neon leaf
#

actually it would probably be smarter just to get the netmask of a range

rustic nova
#

yeah a package could help with it

#
#

though the release date kind of sus

#

since your goal is to work with ranges, the cidr one is your goto

eternal osprey
#

hey guys what's your opinion about haskell?

marsh lark
#

hard

radiant kraken
#

unnecessarily hard

craggy pine
#

@harsh nova

harsh nova
#

-b 899412300530860084 advertising botnet

gilded plankBOT
#

upvote krause_fisher#0 was successfully banned.

harsh nova
craggy pine
#

👍

rustic nova
harsh nova
spark flint
fallen lion
#

Someone here can help me with Jenkins (CI/CD-Tool, not from spongebob) Post-Build-Actions?
I want to start a discord bot automatically after the build is completed (I am new to Jenkins btw)
Please ping me if you can help me

lyric mountain
#

since jenkins would build & deploy on every commit

fallen lion
#

i work on a development branch and never push directly into main branch

lyric mountain
#

you can achieve the same with github btw, if u use it already

fallen lion
#

yea i use github already

lyric mountain
#

github actions works similarly to jenkins, tho I dont know how to deal with it either

#

but I'm pretty sure it'll be easier to find help for it

fallen lion
#

thx

lyric mountain
#

adding to it, you need to create a self-hosted runner, which would be your own server in this case

quasi depot
#

How can I fetch a specific guide’s prefix using eval?

neon leaf
#

Prefix?

#

Eval?

quasi depot
#

Yes, fetch a prefix from a guide using the eval command.

deft wolf
#

It depends on what database you use, what programming language and how exactly you save it in the database

quasi depot
#

I use mongoDB as a database, use node.js, and I store my prefix via config.prefix

lyric mountain
#

how are you retrieving the guild's settings?

quasi depot
#

const guildID = message.guild.id; const guildPrefix = getGuildPrefix(guildID) || this.client.config.prefix;

real rose
#

literally just eval that

quasi depot
#

I was able to run the following code to get the eval command to work.

eval client.data.get('guildhere-prefix') || client.config.prefix

Thanks for trying to help.

pale vessel
#

can you not request for a reindex? the last read date seems like a while ago

crystal wigeon
#

Hey, is there a all in one software that like brings together the features of Photoshop and After Effects? Like drawing is easier in PS than in AE but animating is easier in AE

lyric mountain
#

well, they're different tools for different things

#

like a spoon and a fork

#

you might be able to find a spork, but it wont be as good as the dedicate tools

sage bobcat
#

One message removed from a suspended account.

sterile lantern
#

so if tag_content is something like hello hi etc with spaces, how do i get all of that

#

cause right now it will only use 'hello' as tag_content

quartz kindle
sterile lantern
#

i just send it in the channel (testing purposes)

#

so if i did .tag add test hello hi etc, the tag content is 'hello' and not 'hello hi etc'

quartz kindle
#

then how did you define it?

sterile lantern
#

its a parameter

#

for the function

quartz kindle
#

what did you pass to that parameter?

sterile lantern
#

hello hi etc

quartz kindle
#

you sure about that? print it

sterile lantern
#

ok

#

the 'test' is tag_name which is first arg

#

then i just want anything after that to be tag_content

quartz kindle
#

only hello was printed

#

meaning you are not passing hello hi etc to the function parameter

#

when it gets there, its already just hello

sterile lantern
#

yeah but thats what i want to happen i mean

#

i want tag_content to be hello hi etc

quartz kindle
#

yes but you are only getting hello in it

#

meaning the problem is not in that function

#

its outside of it

sterile lantern
#

hmm

#

so how would i go about getting hello hi etc

#

that entire string

quartz kindle
#

show where you call the function

sterile lantern
#

wdym

#

this is a discord cmd

quartz kindle
#

you defined a function add_tag

#

where is that function called?

wheat mesa
#

He doesn’t call it himself

quartz kindle
#

oh its a decorated command already

wheat mesa
#

It’s called automatically by the framework they’re using

#

Yeah

quartz kindle
#

then you need to check with the library

#

which library is that?

wheat mesa
#

Which means that it’s probably just using space as the delimiter between arguments

sterile lantern
#

discord py

wheat mesa
#

Which is why you’re only getting part of it and not all

sterile lantern
#

yeah i just want it to include the spaces

wheat mesa
#

Try taking in an array or something for the last param?

#

Never used dpy

sterile lantern
#

kk that would probably work

quartz kindle
#

yeah you probably have to take the entire string and do the splitting yourself

sterile lantern
#

how would i take the entire string tho

#

by just putting it in an array?

wheat mesa
#

Joining the array back together

sterile lantern
#

kk

quartz kindle
#

also

#

this is literally in the dpy docs lol

sterile lantern
#

oh

#

thanks

sharp geyser
#

Sup cuties

quartz kindle
wheat mesa
#

Python trying to be quirky yet again instead of using the industry standard for varargs

quartz kindle
#

pythonk

wheat mesa
#

I can’t get the notion of a pointer out of my head when I see an asterisk like that

sharp geyser
#

Doesn’t python have something called kwargs or whatever

eternal osprey
#

personally i would say java on top

wheat mesa
#

I wouldn’t go that far, but Java is a wonderfully simplistic language

eternal osprey
#

i am interested to know

#

hmm actually, would there even be a "best" language

wheat mesa
#

Everything has different purposes

eternal osprey
#

each language has their own usecases

#

yeah

#

except assembly fuck that shit

wheat mesa
#

I really like Java, but I also really like Rust. I wouldn’t use Java for creating a programming language, but I wouldn’t use rust for a basic GUI

quartz kindle
#

when you go 100% functional programming

#
const getTheLongestStringInAList = (stringList) =>
  stringList.slice(1).length === 0 ? 
    stringList[0] 
    :
    getTheLongestString(stringList[0], getTheLongestStringInAList(stringList.slice(1)));
sage bobcat
#

One message removed from a suspended account.

digital swan
#

only thing i can do is remove sitemap and resubmit which is what i just did

oak cliff
#

Alright smart folks please let me know if someone can help me

I have a windows 11 laptop - I tried to log in with my PIN number earlier like normal and it gives me error message "Something went wrong and your PIN is not available". So, I tried to log in with my password, and it tells me that "This account is locked out and cannot be accessed right now."

Tried to boot into safe mode to troubleshoot, but everything i've tried isn't letting me log in. Can't reset the password, can't reset the pin. Finally spent so much time I got annoyed and tried to reset the PC. Says I can't reset the PC right now. It keeps asking me for a bitlocker key, I didnt know bitlocker was enabled (fuck me, right) and so i dont have the key.

Is there any way to get back into this stupid laptop or nah? if not, how do i even factory reset it if it says i cant reset it?

#

I spent the last three hours trying different things i found on answers.microsoft.com and reddit and everywhere else, nothing is working for me

#

oh note this is a local account, not a microsoft account

#

laptop has no other accounts on it

sharp geyser
#

Honestly with something like bitlocker it makes it a little more complicated in my experience. The only thing I found to possibly work is to just format the drive completely and reinstall windows somehow (could be with a usb that has windows burned on it) thing is if you do this approach since you had no windows account linked you’ll lose any licenses.

#

I myself gave up when I was put into a situation where bitlocker was required so I just wiped the drive. You could also venture out and get a new drive for the laptop. This is coming from someone who isn’t as smart as others when it comes to tech tho so be warned it’s likely not the best solution

oak cliff
#

i really dont want to reinstall windows/wipe cause i had stuff on here that wasn't backed up for school

#

so annoying

sharp geyser
#

Yea which is why I’d do that as a last resort if possible KEKW

#

Honestly bitlocker is dumb to begin with

oak cliff
#

idek why my pin and password stopped working

sharp geyser
#

No one changed it?

oak cliff
#

nope, its my pc and im the only one who touches it

#

i have it turned off when im not using it

sharp geyser
#

Hm

#

You could try and change the password of your local account via cmd. Not sure if using the cmd when not logged in will give you proper permissions though

oak cliff
#

i think i tried that

#

im not sure, i tried so many things

#

lmao

sharp geyser
#

I don’t even remember how to access the cmd without being logged in

oak cliff
#

ill try rn

#

youc an in safe mode

#

i know ive done some things in it

sharp geyser
#

But you should be able to use net user whateverusername newpass

#

Assuming safe mode gives you administrator permissions

#

I doubt it tho

oak cliff
#

i did net users to see a list of users and my user isnt there Hmm

#

so does that mean it is a windows account

#

and not a local account

#

cause thats wack

sharp geyser
#

Well not really I think even windows accounts get a user generated

oak cliff
#

it has Administrator, DefaultAccount, Guest, and WDAGUtilityAccount

sharp geyser
#

Yea odd

oak cliff
#

none of which i cant really figure out how to log in to

#

i cant switch accounts when trying to log in to get to administrator or guest

sharp geyser
#

Hm

#

It’s strange for you to suddenly not be able to login

oak cliff
#

the only thing ive done differently is i installed MySQL server 2022 on the laptop, but that was like.. last friday, and the issue only started today

#

(installed it for school)

sharp geyser
#

I don’t wanna make the assumption it’s a corrupted drive but it’s possible if the windows partition is the one corrupted I think (again not super tech savvy)

oak cliff
#

if i type the wrong pin, it tells me incorrect pin, but if i type the right one, thats when it tells me that my PIN cant be accessed

sharp geyser
#

Is it still possible to reset your password from the login screen?

#

I know that was a thing in windows 10

oak cliff
#

it tells me to plug in a USB

#

thtas a password recovery device

sharp geyser
#

Oh right the bitlocker thing

oak cliff
#

which i dont have one set up

sharp geyser
#

Yea idk I can’t think of anything else myself. It’s strange bitlocker is even enabled

#

I don’t think it’s enabled by default

oak cliff
#

i definitely didnt enable it on purpose if it wasnt on by default

sharp geyser
#

I doubt you did

#

Windows loves making annoying pop up’s

#

I’ve probably enabled shit myself and didn’t realize

oak cliff
#

well luckily my professor gave me an extension (my assignment thats only on the laptop was due tonight)

#

also i have learned to back up my assignments

sharp geyser
#

Well that’s good

#

Does windows still make account recovery disks/tools

#

If so might give one a try

#

Might help

oak cliff
#

idk what that is

pale vessel
#

that's why I always use a local account while setting up windows

#

I've had horrible experiences with Microsoft accounts in the past

#

even that doesn't make you safe though... last time my local user account got corrupted and I still had to reinstall windows

wheat mesa
#

I think a windows update fucked with it or something

#

You have to go to the Microsoft website and login to your MS account and give it the little code that bitlocker gives you

#

Then you can unlock it

oak cliff
#

That's the thing though I don't think it's connected to a ms account

#

I thought I made it a local account only

#

I've tried logging in to Microsoft with all the emails I can remember but I haven't found the right one yet I guess

#

I'll have to keep trying I really don't wanna reset

pale vessel
#

usually that's caused by a windows update

#

if you're lucky you can roll back an update but that's if you have the option

oak cliff
#

I was able to roll back a quality update but not a feature update

#

I tried that earlier

quartz kindle
#

can you see your user folder in c:/users from safemode?

#

if yes, try to access the data. if you can access the data, try creating a new local account and moving the data there.
if not, yoi can always boot into some linux recovery image, copy the data to another hd, format and reinstall

#

if encryption is actually enabled and nothing works, then you will need to beg ms to solve it, idk, or lose your data

quartz kindle
#

Looks like that the users had downloaded the Office 365 apps on their private computer and logged in with their Microsoft 365 (work and school account) to activate the Office 365 apps.

After that, the computers were automatically Azure AD registered, which led to Bitlocker being automatically activated on their private computer - and the Bitlocker key "secretly" got stored in Azure AD (without the users knowing).

#

this is rhe stupidest thing ive seen in a while... jesus f c

oak cliff
#

so contact my school and it has the key stored somewhere?

#

OMFG ITS ON MY SCHOOL

#

MICROSOFT ACCOUNT

#

i found the bitlocker key

#

okay now i just have to figure out how to reset the PIN/password

#

i decrypted bitlocker, its gone

#

i have to reset it

#

but at least my files will remain

wheat mesa
#

Such a stupid fucking system

oak cliff
#

i am successfully back into my pc

#

thanks tim! you were the smart one

sharp geyser
#

Tim saves the day again

#

Also why is that even a thing

lyric mountain
#

Microsoft

craggy pine
#

Microshit*

crystal wigeon
#

are there any free software that i can use to draw and animate stuff?

#

simiar to AE

radiant kraken
#

and you can legally get one

#

though i would recommend buying adobe animate for the features

#

adobe after effects isnt really meant for hand-drawn animation

rustic nova
sharp geyser
#

Mikro-Orm

quartz kindle
#

macrohard onfire

slender wagon
#

hi guys i want my bot to have reaction time 20 - 70ms reaction time so it matches the reaction time of my cat

#

pls

#

help

quartz kindle
#

lmao

slender wagon
#

this is no good

earnest phoenix
slender wagon
#

i think i am using digital ocean

radiant kraken
#

if you want 2D animation there are barely any good free options

lyric mountain
#

but both are meant for 3D tbh

crystal wigeon
#

Yeah blender has a learning curve, I’m trying it tho

#

All for some ssj aura animation kekcry

radiant kraken
crystal wigeon
#

Super Sayian

radiant kraken
#

you're using blender for that?

crystal wigeon
radiant kraken
#

why not just buy mmLol

quartz kindle
#

pirate hat is da wae

lyric mountain
#

well, it's doable with grease pencil tool

#

tho a specialized 2d tool would be better

craggy pine
#

I definitely purchased the adobe suite for sure mhm.

carmine wave
#

does webhook integration works over http or is https requiered ?

#

and can I specify a specific port ?

crystal wigeon
grim aspen
grim aspen
carmine wave
#

For sure, i'm just new to getting "a real project", I spent so many time doing this webhook with express, I just want to relax for now, even if it means using HTTP haha

#

Thanks @grim aspen !

grim aspen
#

also for if not provided a port, the port is defaulted to whatever port is well known

carmine wave
#

I'm so proud of my little stars , I spent so many time on this specific feature (related on vote and claims), but still ! so proud

compact pier
quartz kindle
#

why does a smart band need to connect to a server

#

dafuq

pale vessel
#

proprietary auth

#

you have to do some tinkering to get your token from the manifacturer's servers

digital swan
frosty gale
#

ppl need to be very careful when making their databases or other stuff public on their ips

#

just found a big captcha verification bot has an open mysql instance on their public website ip with root having no firewall or ratelimiting

#

if someone wanted to they could easily brute force the root password

#

its mostly discord bots with these little vulnerabilities which are a big deal

deft wolf
#

Did you let them know about it?

frosty gale
#

yeah i let them know waiting ona reply

deft wolf
#

Well, let's hope they take it seriously because if they have any sensitive information in this database, it could be a big problem for them

#

But mainly for users to be honest

slim void
#

Most users wont care sadly

frosty gale
#

they also have an open RDP instance not exactly sure what it is but ive looked it up and it appears theyre also using some weird RDP server with known vulnerabilities

#

extremely careless

slim void
#

Is this user new to this stuff?

tulip ledge
#

How do you do this? And the upgrade button aswell

#

it opens a popup

tulip ledge
#

only us?

spark flint
#

for now

#

they were experimenting with UK recently

#

and idk what other locations

tulip ledge
#

too bad

craggy pine
#

Sorry vig for the ping 😛

tulip ledge
lyric mountain
craggy pine
lyric mountain
#

ah yes, I was going to add some micros later, once I finish the new version

carmine wave
#

just wondering, what make us eligieble to "Bot Developer" role ?

deft wolf
#

You must have a verified bot by top.gg

carmine wave
#

Seems fair, have they specific requirements ?

deft wolf
#

I mean, they have their own guidelines, but it's nothing special

lunar palm
#

-guidelines

#

nvm lol

deft wolf
#

For example, it cannot be a code from the Internet

carmine wave
#

thanks !

#

I guess I have 1 or 2 things to check

#

I mean.. is it a NSFW command ?

rustic nova
#

That's textual nsfw

#

That's fine

carmine wave
#

thanks !

pale vessel
#

so I can make my bot send ASCII dicks?

lunar palm
#

W

rustic nova
pale vessel
rustic nova
#

Yes, you can make ASCII dicks with your bot

pale vessel
#

aight bet

rustic nova
#

ASCII art though, could be unsure

#

But that above is fine

sharp geyser
earnest phoenix
#

I

rustic nova
sharp geyser
#

Only command is ascii dick

carmine wave
carmine wave
carmine wave
#

But hey

#

High quality ASCII dick, hmm okey ?

civic scroll
#

developement chat has been sus lately

deft wolf
#

As always

carmine wave
#

Wonder why

north whale
#

How can i tell how many channels my bot was invietd to. I have 0 privledged intents becaues got denied after verified

earnest phoenix
deft wolf
#

You mean channels or guilds

#

Guilds aka servers

north whale
#
const client = new Client({
  intents: [
    // GatewayIntentBits.Guilds,
    // GatewayIntentBits.GuildMessages,
    // GatewayIntentBits.MessageContent,
  ],
});
#

im pretty sure its one of these but i didnt get access to any of the Intents

deft wolf
#

But like what do you even want to know

north whale
#

I just want to see the total # of servers my bot is invited to

#

So i can feel better about my life trajectory

quartz kindle
#

i mean

#

you can see how many guilds your bot currently is in

#

you cant really see how many times it was invited that easily

north whale
#

I used to do this but that requiers the message conetnt intent

client.on('messageCreate', async (message) => {
console.log((${message.guild.name} | ${message.guild.id}) command: ${message.content})
})
earnest phoenix
#

What does that have to do with you seeing how many people invited your bot?

quartz kindle
#

the message content intent does not prevent you from receiving messages

slender wagon
#

Lol

quartz kindle
#

it only omits the actual text part of it

north whale
#

so i can still get the guild name and guild ids

#

!

quartz kindle
#

yes

north whale
#

since i dont use a prefix anymore it will be a bit noisy

#

ill just add each message to a hashset then have a command to dump the hashset to console.log to read how many guilds invited my bot

slender wagon
#

Umm y would it be so

quartz kindle
#

why do you need to add the messages?

slender wagon
#

R u trying to check for the servers or the messages

earnest phoenix
#

(What is this guy trying to do?)

north whale
#

Trying to check the # of servers my bot is in

deft wolf
#

I don't know

quartz kindle
#

you dont need messages for that

deft wolf
#

It's pure chaos

quartz kindle
#

like at all

#

just use the ready event

#

and log client.guilds.cache.size

deft wolf
#

Yea

#

Guilds should always be in cache

quartz kindle
#

unless youre sharded

north whale
#

not sharded oh

#

IT WORKS

#
client.once('ready', () => {
  console.log('Bot is ready');
  console.log(`The bot is in ${client.guilds.cache.size} guilds.`);
});
lunar palm
#

nice

north whale
#
client.once('ready', () => {
  console.log('Bot is ready');
  console.log(`The bot is in ${client.guilds.cache.size} guilds.`);

  // Printing out all the guild names the bot is in
  client.guilds.cache.forEach(guild => {
    console.log(guild.name);
  });
});
lunar palm
#

I have mine set as my bot's presence and it updates every 5 minutes

north whale
#

Thank you chat + chatGPT

#

what event do you hook

#

or is it just a setInterval()

lunar palm
#

it's a setInterval

north whale
#

since you dont need to hook. 🙂

lunar palm
#

it sets it initially in the 'ready' event and updates in the interval

quartz kindle
#

i cant even see how many guilds mine is in

#

because i dont use the client, i use only slash commands

#

so i dont have a client xd

lunar palm
#

rip

deft wolf
#

No servers?

quartz kindle
#

last i checked it was like 10k

marsh lark
#

In the dev portal you should be able to see (approximately)

quartz kindle
#

i can also see it in the discord store thingy

#

app thingy

#

forgot the name

lunar palm
#

app discovery?

quartz kindle
#

ye that

sharp geyser
#

Honestly they should put the amount of servers your bot is in exactly in the dev portal

marsh lark
#

I mean it's only not exact if your bot is in a lot of servers

#

And it should only be meant to used for statistics/curiousity

pale vessel
#

you mean estimation?

#

oh man I can't read

#

estimation/approximation same thing

quartz kindle
#

estimation = approximate value when you dont know the real value
approximation = approximate value when you know the real value but cant be arsed to go get it

spark flint
quartz kindle
spark flint
solemn latch
#

Perfect

#

^-^

#

(Inb4 I get in trouble for misuse of mod)

slender wagon
#

Wtf

#

Not under my lead.

solemn latch
#

Nooo ghostie_scared

slender wagon
#

bun run fire_woo.ts

slender wagon
rotund harbor
#

How long does the verification thing take for your bot to be looked at?

lunar palm
#

of course those links don't work, but a few days or more

#

there you go

rotund harbor
lunar palm
#

👍

crystal wigeon
#

do you guys know any sdk i can use to like list all the services im running on aws?

#

using my credentials

#

like all services, ec2, s3 buckets etc

lyric mountain
#

all you need is a central service for grabbing their statuses and save somewhere

crystal wigeon
#

No I want like to list all the current running services

#

I’m sure they have sdk for it

#

Even if I wanted to deploy a new service using nodejs

lyric mountain
#

they probably have an api tho for fetching data

crystal wigeon
#

Ye that’s what I wanted to know if they have an sdk or some api docs if anyone knew. I found aws-sdk didn’t check it out yet

lyric mountain
#

there's no sdk

#

sdk means software development kit, it'd make no sense to have one

crystal wigeon
#
lyric mountain
#

being called sdk doesnt make it an sdk

crystal wigeon
carmine wave
#

how can I ask for a bot review ? ( so I can gain access to dev role slup2 )

deft wolf
#

You need to submit your bot via top.gg page

carmine wave
#

he is added

deft wolf
#

Then just ask for role on #support and wait

#

Apparently @gilded plank is sleeping

#

Or it was sleeping at the time

carmine wave
#

Because I was so lazy, my bot invite was just set to "Admin"
Is it okay ? Or should I change ?

deft wolf
#

It depends in what sense. Your bot should work without administrator permissions, but if it has already been verified, you can request any permissions in the link

carmine wave
#

He's been added to the website, so it is verified ? (I guess ?)

Just wondering if it's something that I definitively should change

I just setup admin permissions so I'm sure that it would work

Or should I just select the most part of the permissions ? So the user can tweak them on invite

deft wolf
#

Remember that not everyone may want to add it with admin permissions for very obvious security reasons. It's best to only require those that your bot requires. If you don't need permission to ban users, don't require it

carmine wave
#

can I use markdown on top.gg description ?

pale vessel
#

yes

carmine wave
#

thankss

topaz lynx
#

@rustic scarab

carmine wave
#

Just wondering, do I have to hash guild's and users id in my non-sql database ?

I use them as identifiers

I don't keep confidential/important data, so I neither encrypt my data too

rustic nova
#

a guild id or user id isnt even confidential

carmine wave
#

But it is ""personal"" data somehow
I shouldn't bother then ?

rustic nova
#

its not

#

unless its stored along with their username or settings that might include their real name

carmine wave
#

nah, just id's and settings, I do not collect anything that my bot doesn't needs

lyric mountain
#

additionally, ids are publicly visible, both on right-click and here

carmine wave
#

Fair enough, 350836145921327115

#

Kuu*

#

thanks ! was just to be sure

crystal wigeon
#

is there a way i can change the bot icon for different servers?

#

I've seen dyno do it, couldn't find anything similar on djs

sonic lotus
#

unable to read .replit:
failed to open .replit: open .replit: input/output error
nix error: building nix env: problem reading '.replit' file: failed to open .replit: open .replit: input/output error

#

why this is comming in replit?

#

when i m trying to check .replit it shows this

slim void
#

replit isnt a host its just a online code idle [which is trash], if you want a suggestion/opinion use VSC (Visual Studio Code))

carmine summit
#

Somehow it can't turn GuildMember into a JSON string?

      console.log(member);
      console.log(JSON.stringify(member));
GuildMember {
  guild: <ref *1> Guild {
    ...
  },
  joinedTimestamp: 1619876348724,
  premiumSinceTimestamp: null,
  nickname: null,
  pending: false,
  communicationDisabledUntilTimestamp: null,
  user: User {
    ...
  },
  avatar: null,
  flags: GuildMemberFlagsBitField { bitfield: 0 }
}

TypeError: Cannot read properties of undefined (reading 'id')
    at get cache [as cache] (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\node_modules\discord.js\src\managers\GuildMemberRoleManager.js:37:101)
    at GuildMemberRoleManager.valueOf (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\node_modules\discord.js\src\managers\DataManager.js:57:17)
    at flatten (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\node_modules\discord.js\src\util\Util.js:34:82)
    at GuildMember.toJSON (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\node_modules\discord.js\src\structures\Base.js:35:12)
    at GuildMember.toJSON (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\node_modules\discord.js\src\structures\GuildMember.js:487:24)
    at JSON.stringify (<anonymous>)
    at Object.execute (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\commands\info.js:23:24)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Client.<anonymous> (C:\Users\Aaron\Desktop\Aaron\Programming\Discord DevTools\index.js:32:7)
quartz kindle
#

if tou didnt do anything, then you have to wait for them to fix it

quartz kindle
#

orherwise update your discord.js

green kestrel
#

ever wondered why nobody seems to use openbsd? its dumb thats why

#

this is in its INSTALLER.

#

nO iS nOt A vAlID cHoIcE

sonic lotus
quartz kindle
quartz kindle
tulip ledge
#

How do I get my bot into more servers? It’s an rpg bot and I’ve only got loving feedback from my users so I’m thinking that the first 100-200 servers will be the hardest.

grim aspen
#

Forgot to crop

deft wolf
#

You are unlikely to destroy your friend's server with your bot, and members of those servers may add your bot after seeing it in action

grim aspen
#

Just remember to not give it admin privileges

deft wolf
#

You can also buy advertising on some server, but how effective is it? I have no idea. Even if you sponsor nitro in some giveaway in exchange for adding your bot, it probably won't help you much if there is no one on these servers

tulip ledge
#

Yeah I bid on advertising for topgg

#

But i get like 8k impressions which probably translates to like 10 invites max

quartz kindle
grim aspen
#

Makes sense

quartz kindle
#

the issue is in their toJSON() method

deft wolf
quartz kindle
#

being a good dev doesnt necessarily mean popular dev

#

its a bit unfortunate, but thats reality, a lot of top tier devs will never be known or ever produce something that will get traction

#

and a lot of shitty devs become famous and their software have a lot of traction purely because of luck or opportunism

grim aspen
#

Same concept with a lot of stuff. Roblox games that were put in a lot of time and professional coding don’t get noticed but most simulators get traction, although some games that are well developed get popular

neon leaf
radiant kraken
hidden gorge
#

async function loadCommands(client) {
  const { loadFiles } = require("../Functions/FileLoader");
  const ascii = require("ascii-table");
  const table = new ascii().setHeading("Commands", "Status");

  await client.commands.clear();

  let commandsArray = [];

  const Files = await loadFiles("Commands");

  Files.forEach((file) => {
    client.commands.set(command.data.name, command);

    commandsArray.push(command.data.toJSON());

    table.addRow(command.data.name, "🟢");
  });

  client.application.commands.set(commandsArray);

  return console.log(table.toString(), "\nCommands Loaded");
}

module.exports = { loadCommands };

client.commands.set(command.data.name, command);

craggy pine
#

Because you specified “file” and not “command” for that forEach

carmine wave
#

Your loop creates a file object, but then you ask for command object, that you didn't have create
You should rename "command" into "file", or rename "file" into "command"

hidden gorge
#

i got it to not error but it’s not logging the commands

#

i have no way to screenshot on my raspberry idk if this is right

carmine wave
#

same problem i would say actually

#

command is still not declared

#

from your picture

#

oh

#

forget

hidden gorge
#

how? look in the for each

carmine wave
#

shouldn't you add / before the filename ?

#

and..

#

is it me or do you use ' then ` ?

hidden gorge
#

wdym

carmine wave
#

line 13

hidden gorge
#

also commands are stored in individual files

carmine wave
hidden gorge
#

i fixed it

#

i added the / and still nothin

carmine wave
#
// What you wrote
('../Commands${file}`)

// Try
(`../Commands${file}`)
spark flint
#

isn't that just

#

the same

carmine wave
#

nope

quartz kindle
#

they mixed ` with '

hidden gorge
#

that is the same

spark flint
#

ah ok

carmine wave
#

it isn't

hidden gorge
#

omg i see it now

carmine wave
#

in JS you use ` when including variables in strings

#

change code editor

quartz kindle
carmine wave
#

With VS Code, you would noticed it way earlier

hidden gorge
carmine wave
#

you won't be photograph

#

what does it say ?

quartz kindle
# hidden gorge ah

do you have discord running in there? if so you should be able to press printscreen on your keyboard, and then ctrl+V on discord

carmine wave
#

i don't know a thing about raspberpi, but can't you just ssh ?

quartz kindle
#

what OS is it running?

hidden gorge
quartz kindle
#

doesnt the prtsc key work?

hidden gorge
#

Bruh it’s an invalid path

hidden gorge
quartz kindle
#

Your screenshot will then be saved into your home folder in PNG format with a timestamped filename.

#

check there

hidden gorge
#

ok i gtg

quartz kindle
#

notice how it says ./Commands//home

hidden gorge
#

yes i see it

quartz kindle
#

your file parameter should already be the full file path, so no need to change it

#

just require(file)

hidden gorge
#

ok i’ll fix it when i can

carmine wave
#

didn't know about ascii table tbh, +1 js skill for me

hidden gorge
#

this is also my 2nd time using my raspberry pi

carmine wave
#

do you guys create a new git branch for each new feature when working alone ?
i don't, my pro dev friend told me that I was a war criminal for not doing that

hidden gorge
marsh lark
copper cradle
carmine wave
#

I often break my own code, I guess i'll start doing new branches from now on haha

meager dune
#

Hello everyone, I am signing up to top.gg for my discord music bot, how can I get this part?