#development
1 messages · Page 110 of 1
i like coding in french actually
agreed
true
which is easier to learn
english or french?
Depends on what languages you’ve learned first
Despite what most Americans think English is actually a pretty easy language to learn
French is also pretty easy if your first language had a Latin root
bruh
someone told me english is actually hard to learn
i thought i did something impressive
:(
how do you know?
did you learn english and french
Most polyglots of any nationality usually say that English is on the easier side
what is a polyglosts?
And I trust their word for it given the fact that they’ve learned a lot of languages
Someone that learns a lot of languages
but
they already know a lot of languages
so wouldnt that mean it's easier for them
not how that works necessarily
Keep in mind that English also has a surprising lack of gendered words so that definitely helps out
yes
i think it is
a lot of languages are similar
so it'll be easier to learn
if you learn another
Think what you’d like but that’s not true for every language
i didn't say it was
but naturally if you already have learned a bunch it'll make it easier
Well yeah but relative to the rest of the languages English is on the easier end
a while ago when i was messing around with MUGEN (the fighting game engine) i found out that almost everything available was made by chinese people, so all the code had a ton of chinese comments
tons of open source characters you could download from the weirdest places on the internet, all filled with chinese commentary
chinese is the most spoken language in the world
that's because "most of the world" is in china

English is 2nd most popular iirc
wikipedia says there are more english speakers then chinese
English 18.8%
Mandarin Chinese 13.8%
Hindi 7.5%
Spanish 6.9%
French 3.4%
Arabic 3.4%
Bengali 3.4%
Russian 3.2%
Portuguese 3.2%
Urdu 2.9%
more native chinese speakers than english however more overall english speakers
mandarin used to be #1
but english got more and more globalized because internet and stuff
so it overtook mandarin
also PORTUGAL CARALHO
yeah makes sense
never heard of that error

are your docker containers able to connect to the internet?
any other errors?
actually
you can ignore that error
any other errors tho
restart the docker compose entirely, then try again
unsure if the dashboard wants the domain in question or not
ya trying to setup a mail server?
mailcow
I have no idea what mailcow is
you dont?
nope
yes, thats what I mean with follow the docs step by step
as that makes it the most easiest
instead of jumping into certain sections
unsure what you're referring to with tunnels tbf
mainly been working with the plain ips, both on my localhost through a vpn, aswell as public ips
so cloudflared just forwards it through their service or what
You can’t proxy mail servers through CF
You have to expose the real IP
Unless you pay for enterprise
thats something you could do afterwards
under email -> configuration, you could try entering a domain already
though refer to what bun said with proxying mail servers through cloudflare, since cloudflare mainly does http/https on free tiers
is Vue.js simpler than React
f
oracle skill issue
I fucked my ufw
glad I did a backup
pog
now you cant directly visit my main server unless its from a cloudflare proxy

yeah you can curl localhost
thats normal
dude
I've never tried Vue but React is fairly easy
react looks hard
Everything looks hard when your bar for "easy" is below the ground
shi ppl do be hatin on battleless
for good reason
How about you just ping everyone and maybe you'll get an answer? 👀
Dont actually ping it kthx
so i am fetching the lanyard api from an api endpoint on my nextjs app, but it seems to cache or something since the status never changes. anyone has an idea how to get through this?
It does not have any commands
lanyard caches on their side
quite heavily
No
the ratelimits go crazy
It does not have commands itself
read the support articles at https://support.top.gg
so should i get rid of the api and use client-side fetching instead?
you could fetch it yourself server side
i am doing that
oh
but it seems to have been rate limited
Chad method is to bypass it 
true
how?
or be super funny and use webshare proxies and shuffle between bot tokens 🔥
thats how i bypass invite lookup rate limit
i don't think it's worth it
i can do like 2500/s in lookups now (helpful for antiscam stuff, monitoring scam servers)
If you're gonna poll then use their websocket
No need to spam the API
(I do that though)

Honestly just append Math.round(new Date().getTime() / 1000); as a query parameter like yes and free win
Or make a fetch call with relevant headers to make it ignore cache
i think the issue is that i haven't added route handling to my project and everytime u open a new directory the navbar reloads too which calls the api
i just did
cache: no-cache
but i will have to cache it on my end
I didn't need to do all that
You're supposed to put the state in a component that doesn't rerender
is there any one who can help me with a code for a ticket modal
Unless you share your current code and error, nobody can help you with anything
okay
Why does my bot show "this interaction failed"
Like if i run the command fresh and click the button it works but when i click it again after sometime it fails
Are you getting an error?
Nothing in console
I mean where im hosting the not there the console shows Nothing
We'll probably need more info then.
show the code please
I will dm you the code
Here is my code if anyone wanna help its in python
There's no correlation between your VerificationButton class and the view, you actually need to provide either the custom id to the button or use a callback
You're initiating the class, but not calling the method to actually run something when the button is clicked
think I answered it last time
Sorry can you repeat
it's just what aurel said, you're not doing anything when the user clicks
It works like i said when i run bot fresh
Also, this button doesn't match with what you have in your code
Your button has a label called verify
so? what should i lable it as?
yea i changed lable with much pleasing look but thats about it it shouldnt matter
how long does it take for the error to appear?
also, does it add the user to the verified list?
(btw, the way u did it wont work, every restar will lose all listed users) nvm, jsondb
no idea havent noticed that
like, does it take a few seconds or several minutes?
minutes
does the user get added to the list?
no
this cannot exist
user cant have roles
put a try-catch around the whole thing, see if any error appears in the log
well i haven't finished routing and everytime u open a new directory it reloads the navbar (where the api end point is called)
so it turns out the button would stop working after 3mins
its in the library
yeah
you want the verification button to be permanent?
like the message stays there forever so anyone can click it whenever they want to verify?
yea i got it working thanks chief!
for bad reason
i simply ask question and get bullied
(cyberbullying is a federal crime)
for a permanent button, thats not the correct approach anyway
why not
the correct way would be to listen to the interaction event and filter by interaction type (button) and by custom id
just make time like 100000000 seconds
or loop
so i took off the http calls from the api and i added the lanyard websocket
the thing now is idk how to update my function
async function getStatus() {
try {
const response = await fetch('/api/discord');
if (response.ok) {
const json = await response.json();
const status = json.data.discord_status as keyof typeof statusColors;
const color = statusColors[status] || 'black';
setStatus(color);
console.log(color);
} else {
console.error(response.statusText);
}
} catch (error) {
console.error(error);
}
}
getStatus();
thats even worse lol, but be my guest :^)
you want to do the same but over websocket?
yup
here is how the api endpoint looks now
import { NextResponse } from 'next/server';
import WebSocket from 'ws';
export async function GET(req: Request, res: Response) {
const socket = new WebSocket('wss://api.lanyard.rest/socket');
socket.addEventListener('open', (event) => {
console.log('WebSocket connection opened:', event);
const initializeMessage = {
op: 2,
d: {
subscribe_to_ids: ['399911902211473410']
}
};
socket.send(JSON.stringify(initializeMessage));
});
socket.addEventListener('message', (event) => {
console.log('WebSocket message received:', event);
const message = JSON.parse(event.data.toString('utf-8'));
switch (message.op) {
case 0:
switch (message.t) {
case 'INIT_STATE':
console.log('INIT_STATE event:', message.d);
break;
case 'PRESENCE_UPDATE':
console.log('PRESENCE_UPDATE event:', message.d);
break;
}
break;
}
});
socket.addEventListener('close', (event) => {
console.log('WebSocket connection closed:', event);
});
socket.addEventListener('error', (event) => {
console.log('WebSocket error:', event);
});
}
but idk how to respond rn
send message over websocket, server sends message back
make it send with some type so that you can process it in the same message event you already have
just add another type to the switch case
so basically i need to add the websocket on the component too?
idk how it works in a componentized setup, but the websocket is on the client side right?
so it should be able to execute cross-component code
it should basically do this ```js
switch (message.t) {
case 'INIT_STATE':
console.log('INIT_STATE event:', message.d);
break;
case 'PRESENCE_UPDATE':
console.log('PRESENCE_UPDATE event:', message.d);
break;
case 'GET_STATUS':
const status = message.data.discord_status as keyof typeof statusColors;
const color = statusColors[status] || 'black';
setStatus(color)
}
no if it was there i would've finished it
it's on the api
/api/discord
i really don't wanna add it to the component
it would make such a mess
then what are you talking about?
is this a server side function then?
in the component is this
Client Side
async function getStatus() {
try {
const response = await fetch('/api/discord');
if (response.ok) {
const json = await response.json();
const status = json.data.discord_status as keyof typeof statusColors;
const color = statusColors[status] || 'black';
setStatus(color);
console.log(color);
} else {
console.error(response.statusText);
}
} catch (error) {
console.error(error);
}
}
getStatus();
/discord/api
import { NextResponse } from 'next/server';
import WebSocket from 'ws';
export async function GET(req: Request, res: Response) {
const socket = new WebSocket('wss://api.lanyard.rest/socket');
socket.addEventListener('open', (event) => {
console.log('WebSocket connection opened:', event);
const initializeMessage = {
op: 2,
d: {
subscribe_to_ids: ['399911902211473410']
}
};
socket.send(JSON.stringify(initializeMessage));
});
socket.addEventListener('message', (event) => {
console.log('WebSocket message received:', event);
const message = JSON.parse(event.data.toString('utf-8'));
switch (message.op) {
case 0:
switch (message.t) {
case 'INIT_STATE':
console.log('INIT_STATE event:', message.d);
break;
case 'PRESENCE_UPDATE':
console.log('PRESENCE_UPDATE event:', message.d);
break;
}
break;
}
});
socket.addEventListener('close', (event) => {
console.log('WebSocket connection closed:', event);
});
socket.addEventListener('error', (event) => {
console.log('WebSocket error:', event);
});
}
yes
Hi im making a anti link system but it doesnt delete the link and it doesnt send the embed when someone sends a link
let enabled = await db.get(`antilink-${message.guild.id}`);
if (!enabled) return;
if (message.author.bot) return;
if (message.content.includes("https://")) {
message.delete();
let embed = new Discord.EmbedBuilder()
.setAuthor({ name: `SHARK Auto Mod!`, iconURL: bot.user.displayAvatarURL() })
.setColor("#B468FF")
.setDescription(`You can not advertise here`)
message.channel.send({ embeds: [embed] })
}
so the websocket is from where to where?
i though it was between your server and your client side
i haven't connected it yet
i am trying to
i want to figure out a way to get its data on the client side on real time
then you need to have a websocket on the client side lol
but i don't think the previous function will be able to do that
unless you use long polling
so basically i keep the connection alive?
sort of
you need to configure the server to not timeout
you send a fetch request and the server does not respond to it
until it receives an event
then immediatelly after you receive the fetch response, you sent another fetch, and continue waiting
lel
thats pretty much the only ways to get real time events in the client side
websocket or long polling
nothing wrong with this code, does your bot hve the message content intent?
does it have permissions to delete?
do you get any errors?
console.log the enabled variable to make sure its actually enabled
its awaiting for verification but as you know there is a bug but i have all of the intents enabled for now
@quartz kindle i ended up doing this
useEffect(() => {
const socket = new WebSocket('wss://api.lanyard.rest/socket');
socket.addEventListener('open', (event) => {
console.log('WebSocket connection opened:', event);
const initializeMessage = {
op: 2,
d: {
subscribe_to_ids: ['399911902211473410']
}
};
socket.send(JSON.stringify(initializeMessage));
});
socket.addEventListener('message', (event) => {
console.log('WebSocket message received:', event);
const message = JSON.parse(event.data.toString('utf-8'));
switch (message.op) {
case 0:
switch (message.t) {
case 'INIT_STATE':
console.log('INIT_STATE event:', message.d);
const initStatus = message.d['399911902211473410'].discord_status as keyof typeof statusColors;
const initColor = statusColors[initStatus] || 'black';
setStatus(initColor);
console.log(initColor);
break;
case 'PRESENCE_UPDATE':
console.log('PRESENCE_UPDATE event:', message.d);
const presenceStatus = message.d.discord_status as keyof typeof statusColors;
const presenceColor = statusColors[presenceStatus] || 'black';
setStatus(presenceColor);
console.log('Status:', presenceStatus);
console.log('Color:', presenceColor);
break;
}
break;
default:
console.log('Unhandled op code:', message.op);
break;
}
});
return () => {
socket.close();
};
}, []);
👍
Now i will add a heartbeat to keep it alive
next.js
did u consider trying both and seeing which one feels easier to you?
no
why would i waste my time trying both to see which is easier if someone can just tell me
fr?
it would be faster since noone is answering you 🥸
how easy on a scale of discord.js to the raw discord api?
because it's the same as asking "which one is tastier, coke or pepsi?"
it fucking depends on you and you alone
what if I tell you some people think c++ is easy?
I can tell you making a discord bot is easy, for you its not though
cus theyre nerds
it is for me
dont think so considering you were asking for help on how to cache a variable for 3 days
to me html/css is extremely easy
i guess easiest is slightly an opinion but like in general
there's no "in general"
cus you cant say discord.js and the raw discord api are the same easiness level
doctors would say that treating a broken bone is easy
can you treat a broken bone tho?
Yes much easier
exactly, that's the point
are you joking or
I am not
Next.js is a react framework that handles routing etc
bruh
raise your bets, how many days until battle return with next.js questions?
annoying is an opinion
0
🫢
I bet on at most 2 weeks
-1
today
probably
realistically
i need to make a website for my bot
🥲
yes because you'll try to make something complex and fail because you have absolutely no experience in react nor next.js
next is for ssr
and you'll need both
next.js is a framework for react
just go with html and practice website building for once, then you move to abstraction frameworks
either way you'll need to deal with styling like it or not (it wont come "beautiful" by default)
but
tailwind
i heard is good
and styles everything for you
i have used html and css before
i made a simple website for my bot once
it'll comes with default styles, which will make your site look extremely generic if you don't tweak it
if you want to make sites (and prevent them from being an eyesore) there's no escape from css
bruh
why cant i just drag and drop stuff
🤬
you'll still need to style/code even with drag 'n drop
bruh
if everyone could sit on the computer for 30min and make an entire site without knowledge we wouldn't be paid so much for doing it
why can't it be like discord.js
unrelated
frontend is frontend, backend is backend
the only connection between both is that they require someone to write it
it's as related as a plane and a boat
"easy" is a matter of perspective, as I already said
it's easy for you because you copy 99% of the code from the internet
but you cant do it with frontend because it'll be visible to the user
ok mb, 98.5%

so whats a good youtube video for learning next.js
without react, you won't be using next.js
ýes, so you need to learn react & nextjs
and no, not in 3 days
yah thats why i asked for a good video to start with
official documentation + courses
Damn he actually does have me blocked
Tried to react with “💀” and it got immediately removed
I believe it’s member.roles.cache.has
Unless they’ve replaced it
Not 100% sure
Sure that works
Honestly, the nextjs documentation and guides are amazing.
What kind of database?
And what do you mean "not working"
What timestamp?
It only works with seconds
Make sure you round it though as it doesn't accept floats
@rustic nova as well
Every single date-related value in discord is in seconds
So simply divide by 1000 if ur working with millis
Wouldn’t it be seconds * 1000 for milis unless im being a 
They want to convert millis to secs, not secs to millis
Yeah, that's what i meant
was referring to #development message
yes
nice
but still
why doesnt discord just let us preview the message content in place
instead of navigating us 2878324 years up the chat
how to setup shards?
That depends on what language and library you are using. Check the docs
i have 10 shards , and the server says no shard ID none
why would you shard a bot in 8 guilds
for test btuh
what library are you using?
dpy
You are not meant to shard until at least 2000-2500 servers 
well there is no benefit
?
1 screen = shards 2 screen = id shard for this server
show code
that was the most useless super reaction
stop hating
Some useless shit that doesn't matter
Also no they were introduced fairly recently to prod
It has been a thing for a while on canary and their other test branch
it's not useless
it gives nitro more value
it does
The only thing that gave nitro value was added years ago
everything else is useless gimmicks
Agree to disagree ig
But the only good things in nitro are streaming at higher quality and thats really it
I could live without everything else
anything higher quality or more data is pretty much the only things worth paying for
Because I said the only good thing is a higher quality stream
like bigger uploads
which is the only reason I am buying it
ah right the bigger upload thing is also nice
ig nitro has 2 good things
didnt it also have higher quality audio?
ah i think thats a server boost thing
imagine if discord made all messages have a delay, except from nitro users
Apple has only made 2 good products, macbooks and iphones (even iphones are a bit iffy sometimes)
Normal users have a 1m delay and nitro users have instant response times
begone peasants

airpod pros are nice
wym
discord would die instantly
airpods are a sorry excuse for wireless earbuds
at the price they are going for my 50$ wireless earbuds are better
the thing with apple is that you're not paying only for the product, you're paying for the brand, the marketing, the packaging, everything
its pretty much a premium brand for rich people
apple throws away quality most of the time
we know
i wouldnt buy apple even if i was rich
IPhones are better than Androids
I have the JBL Tune 125TWS true
ngl
theres pretty much nothing an iphone does better than other comparable phones
its just a matter of preference
i think it does
besides the fact that iphones are more expensive for the same features
my iphone is nice
my phone is also nice
sure
i dont really care tho
i paid like 150 bucks for it
it does everything i need and more
One thing I can say is that androids app store is way less secure. Only bad thing imo
thats exactly why i like it
easier to pirate apps
:^)
wow
R34 one pice
must suck tbh
I can do that with my iphone as it is
why?
bc $150 is cheap
so?
so
thats why i got it
cheap = suckier
runs all the games i tested on it without any issue
not a big fan of mobile gaming tho
so i dont really play on it
Looks like all the iphone in the last 4 years
i'd rather get a fairphone or a oneplus
although oneplus is not as good as it used to be anymore
Iphone 14 is literally the iphone 13 ngl
every iphone after 7 has been a model copy of the last
☠️
they change a few things to make it seem "new"
that's very untrue
not really
ok mr know it all
a iPhone 8 will perform much worse than an iPhone 14
forgot I was speaking in the presence of someone who knew everything
the only phone brand i find interesting is fairphone, 5 year warranty, designed to be long lasting and easy to repair, has everything you need
what
Who said anything about an iphone 8 performing better than a 14
I said each newer phone is a model copy of the last one
so an iphone 14 is pretty much a 13 with slight changes
yes so that would mean the iPhone 8 is the same as an iPhone 14
if they're simply copying the last
Are you fucking dumb on purpose?
And you are getting it entirely wrong
no i'm not
what can I expect from a 13 year old tho
you just have bad grammar tbh
lmao
Said the dude who writes "your"
i am much older than 13
watch him say that "your" is correct
grammar police🚨
tim do you get what I am saying?
seems like when I say its a model copy of the last phone it must mean 5 generations behind

if you wonder why people dont like you, this is why
i could care less if someone here dislikes me
take one thing, copy it, slightly modify it, then copy it again, then slightly modify it again, then copy it again, then slightly modify it again....
lol
so yes a iphone 8 will ofc be less performant then an iphone 14 but an iphone 13 is not any different in a big way to an iphone 14
question of the day #2
intel or amd?
Ooo wow I can now view my time without having my screen actually on all the way
depends on the model
currently i prefer amd because of 7nm efficiency
lower temps, lower power usage, same perf
but once intel gets there, intel is gonna win
isnt amd dropping support for their threadripper cpus?
no idea
A lot of people my guy
hmmm yes I guess 3d artists just dont exist
theres more people who need a strong cpu than people who need a strong phone
professional level 3d artists
3d artists?
Yes
blender runs fine on my pc
video editors
Modelers, animators, video editors
a threadripper benefits them greatly if they are working on massive projects
premiere also runs fine on my pc
dude never tried rendering
👀
rendering, oo a fun one
rendering what
all fun in games until he tries to render an AAA level model on his pc
do you know what is rendering?
I had a submission last year for the fall banner contest, I had multiple days of rendering just for a short little animation.
my pc runs AAA games fine
some of those models in triple a games are insane
AAA model, not game
pfft
👀
go ahead and believe that
dude never heard of rendering
yes
kinda
on blender i rendered something once
a donut
Imagine if he came from a period where rendering took days or months before real time rendering became possible

why would you do that\
Because some people do that for work
you know how much it took to render the entire toy story movie?
jeez
i don't think people are rendering an entire 3d animated movie
probably a few months
The film required 800,000 machine hours and 114,240 frames of animation in total, divided between 1,561 shots that totaled over 77 minutes. Pixar was able to render less than 30 seconds of the film per day.
My guy...there are a lot of animated films
machine hours
👀 this took well over a day to render
yes it did

they split it into multiple machines
You know nothing about the industry
but even then
you saying they spent 90 years rendering the movie?
they only managed 30 seconds of film per day
well then it didn't take 800k hours
his simple brain would never understand
thats an example why poweful cpus are needed in the industry
required is a keyword here
now compare that with powerful phones, nobody actually needs powerful phones, they just want them for the lulz
well i was referring to a person not any movie industry or smth
well
there are people who do these kinds of things solo
what about a serious mobile gamer?
they are insanely good at what they do
which is why they can afford to pay 3-5k on a cpu
literally all youtubers who make original animated content?
👀 I do
theres shit I wanna say that will definitely break tos
woo just casually has a 5k cpu sitting around
Nah, I have a 5900x 24 thread cpu.
I rent threadripper rendering servers
that's not very good! ✨
i would report you if you said something bad
Not much, there are great services for artists for it
Is it charged by hour or month?
Depends, many offer per request
I see
IE if I need a 15 frames rendered I only pay for that time
the time it takes for those frames
I wanted to get into 3d modeling but dont have the patience to sit around and make smth with shapes
Did a ton of servers crash for yall too?
then why would you want to get into it
but you don't have the patience for it

stick to programming
your parents must be proud of how stupid you are
nah my mom is very angry
she has kicked me out a few times 🙁
very mean
at this point I am sure you have this kind of attitude to get attention
no
welcome to generation tiktok
this is just me
i don't have an attitude
sadly
it will not
😁i love tiktok
I hope it does
i don't
maybe the world will return to normal
except you have to actually be funny
I am sad to be part of a generation where bread falling over is funny
humor is also subjective i don't think it's bad if that's funny
guys
who is "Tafina"?
i see they're mod but i've never seen them in chat
what does that mean
theyve been here a long time
oh
Took a break for awhile though
so did they just get tired of chatting here
maybe?
Woo is a nice moderator
Hello
can you describe a bit how your system is setup? or did you already fix it
ok
question of the day #3:
ronaldo or messi?
Hi
messinaldo or ronaldessi?
True bro
Yes.
yeah, thats one option
Object.keys() or Object.values() or Object.entries()
depending on what you need
you can also do for(... in ...)
nah
wdym with corruption, there isnt anything like that in js at all
theres no such thing, unless you are overwriting the data yourself
its hidden by default to prevent spamming your console
doesnt mean its not there
Object.keys() gets only the keys, not the values
if you use Object.keys(), then you need to use data[key] to actually get the value
Object.values() gets only the values, not the keys
Object.entries() gets both
np
I love discord
How do I edit the page layout for my bot? I see these bots pages, like OneBump with like different colored fonts, images etc. How can I do the same with mine?
I asked in the #topgg-api (which was the wrong channel) and someone said html but I use python to code my bot? How do I edit the html of my bot page?
Oh, so I have to know HTML in order to style my page like this?
Ah ok that makes sense. Thank you guys!
Teeeechnically not HTML but CSS
Ah I see. Thank you as well 😄
<style>
put styles here
</style>
Do not write the full HTML structure else it won't work
Ohh alright
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fb397d769b0>```
Help
How long will this last
why is my retry-after not working
Assuming it's a random number from [0, 1), then you can make a function similar to this: ```cpp
int getRandom(int min, int max) {
return min + gsl_rng_uniform() * (min - max);
}
thats not how it works
Help idk how to-
retry-after is a header you receive, not a header you send, but it doesnt really matter because your library is in charge of doing that, you likely dont even have access to it
if it was a gateway ratelimit, it means your bot logged it too many times and likely exceeded the 1000 logins per day limit, in which case you need to wait until the day resets, which can take up to 24 hours
message and global ratelimits typically only last for 5 seconds
shared ip/cloudflare rate limits can happen when you host your bot in a server that shares ip with other bots, and typically lasts for 1 hour
@brazen violet just ask here

no point arguing over a channel that is literally next to this one
from that
i never got that error
????
just after using auto poster i got it
me when people ctrc+v random code

u too quick for response
bro its no point in writing a 5 line of code taht is publicly available which can help ur bot from crashing
At least try to understand it first
so its just auto poster problem?
t looks like there may be a problem with the way you're using the topgg-autoposter package in your Discord bot.
The error message you provided, [antiCrash] :: Multiple Resolves, suggests that there is a problem with resolving multiple promises within your code. This could be caused by multiple resolve() calls or improper use of async/await functions.
To troubleshoot the issue, you may want to check if you're using the AutoPoster class correctly. One possible cause of the error is that you're creating multiple instances of the AutoPoster class, which is not recommended.
chatgpt? lmao
ye
Is that again some pasted response from ChatGPT or what
Awesome, so you probably got all of that from ChatGPT
i tried to understand XD
u said to understand dude
lmao
lmfao
LMAO
XD

step 1: don't
understandable have a great day

but lets say
I have multiple folders that contain volumes and docker-compose files, aswell as several other related files
bruh guys let him help me
Unrelated to your question but sure
should I compress the zips that I'm backing up or nah
Aurel is asking a more relevant question 
it will probably save you quite a bit of space
That's what most, if not all, backup tools do, so yes
so there's like no data loss associated with it iirc correct?
nop
nop
coolio
Choose the right compression algorithm and you can save more space than a usual zip compression
@brazen violet ok, so, tell me what you are trying to do, and what you did until now
they are trying to hack the mainframe
by copying code 
so basically i am trying to post server stats in top.gg using topgg-autoposter thats given in the docs and after using it as said in docs i got this error
[antiCrash] :: Multiple Resolves
resolve Promise { {} } undefined
Posted stats to Top.gg!
yes but the stats are posted
it is your anti crash causing an error that wiill not cause the bot to crash
ya i know why why multiple resolves error?
Auto-Poster for Top.gg. Latest version: 2.0.1, last published: a year ago. Start using topgg-autoposter in your project by running npm i topgg-autoposter. There are 2 other projects in the npm registry using topgg-autoposter.
ya ik but whats happeing in background that causing to console error?
yes
show the code you did
whats better? using tar or just zip
for backups, i'd use xz honestly
how can i check a files size in linux
is the client logged in? show your discord-client.js
is it still possible to open xz-zipped ones using winrar or 7zip? 
probably 7zip yeh
dude everything works
pretty sure it supports that
i did module.exports
i asked if the client is logged in
btw this suggests its working properly
ya all is fine
the bot will not crash if you remove the multipleResolves catcher
oh
then i will just remove it :/
O_O and it fixed it :/
should have said sooner XD

wat
I know that this might not be the right channel, but what would be your thoughts on a discord support bot, that responds to users with ai and if the ai detects, that it cant give a concrete response, it redirects the user to a "real" discord mod?
It probably won't be easy.
But I would imagine it's doable.
The big issue I think is that support servers often contain a lot of people around the world with various levels of English.
It can be hard for even humans to properly understand what is being asked, or if something is even a question.
Leading an ai to give an answer which has nothing to do with the real question of the user.
bot alerta compress
ofc
ufc
ufw
taking a long time to do so tho
ngl
guessing that it isnt fast, but saves alot of space
not too much, still an improvement
man the discord api
[](link of image.png)
I don't know many things about HTML But when I put this in the long description of my bot the name of image only appear and when I click on it the image open, I wnat to make the image appear without clicking on anything
That's not HTML but Markdown
And Markdown just works like

I'll try that
Not sure why you've put some nested images
See https://www.markdownguide.org/basic-syntax/ as well
Thank you
hey in java suppose that this is my structure, and firstParam is a variable of generic type T, in my Add class. Why is firstparam instanceof Constant false?
Expression t = new Add(new Multiply (new Constant (8) , new Negate(5.0)),
new Variable ("x"));``` this is the expression
Owh wow wait
fuck multiply is not a constant.
lang?
const message = await channel.messages.fetch("ID";
// can now do whatever a Message object (on the docs) is allowed to do```
) expected
Mongodb
sqlite
i'll use on my new bot
dam
Just do it
Its the same way as async outside of a setinterval
👀 the error is happening on this line? "let groupInfo = await noblox.getGroup(17082526) "?
does anyone know how to get the @aws-sdk/client-s3 working with a minio s3 server instead of aws? Im just getting SignatureDoesNotMatch
Traceback (most recent call last):
File "C:\Users\mver8\OneDrive\Робочий стіл\aska\__main__.py", line 8, in <module>
from musicbot.bot import MusicBot
File "C:\Users\mver8\OneDrive\Робочий стіл\aska\musicbot\bot.py", line 4, in <module>
from discord.ext import bridge, tasks
ImportError: cannot import name 'bridge' from 'discord.ext' (unknown location)
discord
this full
doesnt help much
what library
theres multiple discord libraries in different languages
py-cord[voice]
aiohttp
beautifulsoup4
spotipy
emoji
SQLAlchemy[asyncio]
alembic
what version of pycord?
0.1.1
what version are you on now
your env is pretty screwed up then
yeahh thats not the official one either
uninstall it and reinstall it
re-install it from py-cord
also whats your python version? pycord v2 requires python 3.7+
it works on computer one, and dont work an another
3.10
bmb
lastest
still the unofficial one or a fork of it
install the official one: https://github.com/Pycord-Development/pycord
Pycord, a maintained fork of discord.py, is a python wrapper for the Discord API - GitHub - Pycord-Development/pycord: Pycord, a maintained fork of discord.py, is a python wrapper for the Discord API
my pip broke
nvm fixed
how to use MY stickers in bot?
in another server
They can actually use stickers?
yes

