#development

1 messages · Page 110 of 1

hushed robin
#

i like English too

spark flint
#

i like coding in french actually

rustic nova
#

agreed

hushed robin
#

french is hard

#

english is easier

spark flint
#

maybe because

#

you know english better

hushed robin
#

which is easier to learn

#

english or french?

wheat mesa
#

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

hushed robin
#

someone told me english is actually hard to learn

#

i thought i did something impressive

#

:(

wheat mesa
#

And that’s not very true

#

English is one of the easier languages to learn

hushed robin
#

did you learn english and french

wheat mesa
#

Most polyglots of any nationality usually say that English is on the easier side

wheat mesa
#

And I trust their word for it given the fact that they’ve learned a lot of languages

wheat mesa
hushed robin
#

but

#

they already know a lot of languages

#

so wouldnt that mean it's easier for them

wheat mesa
#

not how that works necessarily

#

Keep in mind that English also has a surprising lack of gendered words so that definitely helps out

hushed robin
#

yes

#

i think it is

#

a lot of languages are similar

#

so it'll be easier to learn

#

if you learn another

wheat mesa
#

Think what you’d like but that’s not true for every language

hushed robin
#

i didn't say it was

#

but naturally if you already have learned a bunch it'll make it easier

wheat mesa
#

Well yeah but relative to the rest of the languages English is on the easier end

hushed robin
#

true

#

english looks simple compared to languages like Chinese

quartz kindle
#

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

lyric mountain
#

chinese is the most spoken language in the world

#

that's because "most of the world" is in china

hushed robin
#

wow

#

i would have thought it's english

wheat mesa
#

English is 2nd most popular iirc

hushed robin
#

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

quartz kindle
#

mandarin used to be #1

#

but english got more and more globalized because internet and stuff

#

so it overtook mandarin

#

also PORTUGAL CARALHO

rustic nova
#

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

lyric mountain
#

ya trying to setup a mail server?

rustic nova
#

mailcow

lyric mountain
#

I have no idea what mailcow is

rustic nova
#

you dont?

lyric mountain
#

nope

rustic nova
#

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

spark flint
#

You can’t proxy mail servers through CF

#

You have to expose the real IP

#

Unless you pay for enterprise

rustic nova
#

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

rustic nova
#

omw trying to brick my ufw

#

yeet

hushed robin
#

is Vue.js simpler than React

rustic nova
#

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

hushed robin
#

‼️‼️

#

‼️‼️

rustic nova
#

dude

pale vessel
#

I've never tried Vue but React is fairly easy

hushed robin
#

i am trying to get answer

hushed robin
lyric mountain
#

Everything looks hard when your bar for "easy" is below the ground

hushed robin
#

well no

#

vue.js looks easier

dry imp
#

shi ppl do be hatin on battleless

wheat mesa
#

for good reason

feral aspen
#

How about you just ping everyone and maybe you'll get an answer? 👀

spark flint
#

lol

#

did you know, raid alert has the best answers?

rustic nova
#

Dont actually ping it kthx

slender wagon
#

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?

keen scarab
#

@rustic nova Can you help me please?

#

Wht is the bot prefix?

rustic nova
#

??

#

What do you mean with bot prefix? What bot?

keen scarab
#

@pliant gorge

rustic nova
#

It does not have any commands

keen scarab
#

Uh

#

It has to

#

To give people who vote a role

spark flint
#

quite heavily

earnest phoenix
spark flint
#

the ratelimits go crazy

rustic nova
slender wagon
spark flint
#

you could fetch it yourself server side

slender wagon
#

i am doing that

spark flint
#

oh

slender wagon
#

but it seems to have been rate limited

spark flint
#

then cache

#

cache for 5 mins or smth

#

it does not need to be THAT accurate

earnest phoenix
slender wagon
#

true

spark flint
#

or be super funny and use webshare proxies and shuffle between bot tokens 🔥

#

thats how i bypass invite lookup rate limit

slender wagon
spark flint
#

i can do like 2500/s in lookups now (helpful for antiscam stuff, monitoring scam servers)

pale vessel
#

If you're gonna poll then use their websocket

#

No need to spam the API

#

(I do that though)

slender wagon
earnest phoenix
#

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

slender wagon
#

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

pale vessel
#

I didn't need to do all that

#

You're supposed to put the state in a component that doesn't rerender

lethal cipher
#

is there any one who can help me with a code for a ticket modal

earnest phoenix
#

Unless you share your current code and error, nobody can help you with anything

lethal cipher
#

okay

brisk light
#

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

solemn latch
#

Are you getting an error?

brisk light
#

I mean where im hosting the not there the console shows Nothing

solemn latch
#

We'll probably need more info then.

show the code please

brisk light
rustic nova
#

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

lyric mountain
brisk light
#

Sorry can you repeat

lyric mountain
#

it's just what aurel said, you're not doing anything when the user clicks

brisk light
#

It works like i said when i run bot fresh

rustic nova
#

Your button has a label called verify

brisk light
brisk light
lyric mountain
#

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

brisk light
lyric mountain
#

like, does it take a few seconds or several minutes?

brisk light
#

minutes

lyric mountain
#

does the user get added to the list?

brisk light
#

no

lyric mountain
#

this cannot exist

#

user cant have roles

#

put a try-catch around the whole thing, see if any error appears in the log

slender wagon
brisk light
#

so it turns out the button would stop working after 3mins

its in the library

quartz kindle
#

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?

brisk light
hushed robin
#

i simply ask question and get bullied

#

(cyberbullying is a federal crime)

quartz kindle
hushed robin
#

why not

quartz kindle
#

the correct way would be to listen to the interaction event and filter by interaction type (button) and by custom id

hushed robin
#

just make time like 100000000 seconds

brisk light
slender wagon
#

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();
quartz kindle
quartz kindle
slender wagon
#

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

quartz kindle
#

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

slender wagon
#

so basically i need to add the websocket on the component too?

quartz kindle
#

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)
  }
slender wagon
#

it's on the api

#

/api/discord

#

i really don't wanna add it to the component

#

it would make such a mess

quartz kindle
#

then what are you talking about?

quartz kindle
slender wagon
#

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);
});
}
slender wagon
maiden gazelle
#

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] })
    }
quartz kindle
#

i though it was between your server and your client side

slender wagon
#

i am trying to

#

i want to figure out a way to get its data on the client side on real time

quartz kindle
#

then you need to have a websocket on the client side lol

slender wagon
#

but i don't think the previous function will be able to do that

quartz kindle
#

unless you use long polling

slender wagon
#

so basically i keep the connection alive?

quartz kindle
#

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

slender wagon
#

i think i'll just get rid of the api and paste it in the component

quartz kindle
#

lel

#

thats pretty much the only ways to get real time events in the client side

#

websocket or long polling

quartz kindle
#

does it have permissions to delete?

#

do you get any errors?

#

console.log the enabled variable to make sure its actually enabled

maiden gazelle
slender wagon
#

@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();
    };
  }, []);
quartz kindle
#

👍

slender wagon
#

Now i will add a heartbeat to keep it alive

hushed robin
#

guysssss

#

vue.js or react

#

which is easier for a begineer programmer

spark flint
#

next.js

lyric mountain
hushed robin
#

why would i waste my time trying both to see which is easier if someone can just tell me

hushed robin
neon leaf
#

it would be faster since noone is answering you 🥸

hushed robin
#

how easy on a scale of discord.js to the raw discord api?

lyric mountain
#

it fucking depends on you and you alone

hushed robin
#

i dont think so

#

taste is an opinion easy is not

lyric mountain
#

what if I tell you some people think c++ is easy?

neon leaf
#

I can tell you making a discord bot is easy, for you its not though

hushed robin
#

cus theyre nerds

neon leaf
#

dont think so considering you were asking for help on how to cache a variable for 3 days

lyric mountain
#

to me html/css is extremely easy

hushed robin
#

thats not specific to a discord bot

#

lol

neon leaf
#

it still is easier for me

#

so easy is an opinion and also based on skill

hushed robin
#

i guess easiest is slightly an opinion but like in general

lyric mountain
#

there's no "in general"

hushed robin
#

cus you cant say discord.js and the raw discord api are the same easiness level

lyric mountain
#

doctors would say that treating a broken bone is easy

#

can you treat a broken bone tho?

hushed robin
#

no

#

im not a doctor

spark flint
lyric mountain
hushed robin
spark flint
#

I am not

lyric mountain
#

frameworks are easier the most you research and practice

#

you did neither

spark flint
#

Next.js is a react framework that handles routing etc

hushed robin
#

ok

#

i will use next.he

#

js

#

thank you for the answer

earnest phoenix
#

if only top.gg had the "dont be annoying" rule :trollface:

hushed robin
#

bruh

lyric mountain
#

raise your bets, how many days until battle return with next.js questions?

hushed robin
#

annoying is an opinion

neon leaf
#

0

hushed robin
#

🫢

lyric mountain
#

I bet on at most 2 weeks

hushed robin
#

probably

#

realistically

#

i need to make a website for my bot

#

🥲

lyric mountain
#

yes because you'll try to make something complex and fail because you have absolutely no experience in react nor next.js

earnest phoenix
#

next is for ssr

lyric mountain
#

and you'll need both

hushed robin
#

both of what

#

?

#

bruh

lyric mountain
#

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)

hushed robin
#

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

lyric mountain
#

if you want to make sites (and prevent them from being an eyesore) there's no escape from css

hushed robin
#

why cant i just drag and drop stuff

#

🤬

lyric mountain
#

you'll still need to style/code even with drag 'n drop

hushed robin
#

bruh

#

tbh they make coding so difficult for no reason

lyric mountain
#

it is by no means difficult, it's just a skill

#

which u lack ofc

hushed robin
#

bruh

lyric mountain
#

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

hushed robin
#

why can't it be like discord.js

lyric mountain
#

unrelated

#

frontend is frontend, backend is backend

#

the only connection between both is that they require someone to write it

hushed robin
#

it is relatedd

#

discord.js is easier

lyric mountain
#

it's as related as a plane and a boat

hushed robin
#

but its easier

#

why can't it be as easy

lyric mountain
#

"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

hushed robin
#

no

#

i dont copy 99%

lyric mountain
#

ok mb, 98.5%

hushed robin
#

more accurate

#

but still not right

#

🥲

frozen geode
hushed robin
#

so whats a good youtube video for learning next.js

lyric mountain
hushed robin
#

ok

#

is that a video?

lyric mountain
#

without react, you won't be using next.js

hushed robin
#

bruh

#

i am using next.js

lyric mountain
#

it is a react framework

#

follow the arrows

hushed robin
#

ok so

#

i will be using next.js

#

and react

neon leaf
#

ýes, so you need to learn react & nextjs

lyric mountain
#

and no, not in 3 days

hushed robin
#

yah thats why i asked for a good video to start with

lyric mountain
#

official documentation + courses

hushed robin
#

documentation does not help

#

video is helpful

wheat mesa
#

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

lethal cipher
#

my database is not working

#

can anyone help me

solemn latch
deft wolf
#

And what do you mean "not working"

deft wolf
#

What timestamp?

pale vessel
#

It only works with seconds

#

Make sure you round it though as it doesn't accept floats

earnest phoenix
#

@rustic nova as well

pale vessel
#

Aurel also needs a Disney+ account?

#

I could hook him up with one

rustic nova
#

@cold snow this is not the server for that

#

Legally obtain one instead

lyric mountain
#

Every single date-related value in discord is in seconds

#

So simply divide by 1000 if ur working with millis

craggy pine
#

Wouldn’t it be seconds * 1000 for milis unless im being a Pepega

pale vessel
#

They want to convert millis to secs, not secs to millis

lyric mountain
#

Yeah, that's what i meant

pale vessel
quartz kindle
#

wait what

#

is that a new message url system

spark flint
#

yes

quartz kindle
#

nice

#

but still

#

why doesnt discord just let us preview the message content in place

#

instead of navigating us 2878324 years up the chat

gaunt echo
#

how to setup shards?

harsh nova
gaunt echo
spark flint
#

if this is the bot on top.gg, you have 8 servers and 1 shard, not 10 shards

hushed robin
#

why would you shard a bot in 8 guilds

gaunt echo
hushed robin
#

what library are you using?

gaunt echo
spark flint
#

You are not meant to shard until at least 2000-2500 servers uhh

spark flint
#

yes i know

#

i just don't see any benefit in it

hushed robin
#

well there is no benefit

spark flint
#

?

gaunt echo
#

1 screen = shards 2 screen = id shard for this server

quartz kindle
#

show code

sharp geyser
#

that was the most useless super reaction

quartz kindle
#

dafuq is a super reaction

#

lmao

#

discord be throwing new shit at us every day now

hushed robin
hushed robin
#

they've been a thing for awhile

sharp geyser
#

Also no they were introduced fairly recently to prod

#

It has been a thing for a while on canary and their other test branch

hushed robin
#

it gives nitro more value

sharp geyser
#

No the fuck it doesn't

hushed robin
sharp geyser
#

The only thing that gave nitro value was added years ago

sharp geyser
#

everything else is useless gimmicks

hushed robin
#

new pfp

#

looking fire ngl

sharp geyser
#

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

hushed robin
#

why you hating on nitro

#

if your buying it

quartz kindle
#

anything higher quality or more data is pretty much the only things worth paying for

sharp geyser
#

Because I said the only good thing is a higher quality stream

quartz kindle
#

like bigger uploads

sharp geyser
#

which is the only reason I am buying it

#

ah right the bigger upload thing is also nice

#

ig nitro has 2 good things

quartz kindle
#

didnt it also have higher quality audio?

sharp geyser
#

nope

#

everyone suffers the same shitty audio quality

hushed robin
#

it's not shitty

#

it's very high quality

sharp geyser
#

ok buddy

#

and you probably listen through dollar store earbuds

quartz kindle
#

ah i think thats a server boost thing

sharp geyser
#

yup

hushed robin
#

airpod pros

quartz kindle
#

imagine if discord made all messages have a delay, except from nitro users

sharp geyser
#

Apple has only made 2 good products, macbooks and iphones (even iphones are a bit iffy sometimes)

quartz kindle
#

thats arguable

#

lmao

sharp geyser
#

begone peasants

quartz kindle
#

discord would die instantly

sharp geyser
#

airpods are a sorry excuse for wireless earbuds

#

at the price they are going for my 50$ wireless earbuds are better

quartz kindle
#

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

sharp geyser
#

apple throws away quality most of the time

hushed robin
#

wym

#

i am not rich

sharp geyser
#

we know

hushed robin
#

i wish i was rich\

#

that would be nice

quartz kindle
#

i wouldnt buy apple even if i was rich

hushed robin
#

IPhones are better than Androids

sharp geyser
#

I have the JBL Tune 125TWS true

hushed robin
#

ngl

quartz kindle
#

theres pretty much nothing an iphone does better than other comparable phones

#

its just a matter of preference

quartz kindle
#

besides the fact that iphones are more expensive for the same features

hushed robin
#

my iphone is nice

quartz kindle
#

my phone is also nice

hushed robin
#

i think mine is nicer

#

tbh

quartz kindle
#

sure

#

i dont really care tho

#

i paid like 150 bucks for it

#

it does everything i need and more

craggy pine
#

One thing I can say is that androids app store is way less secure. Only bad thing imo

quartz kindle
#

easier to pirate apps

#

:^)

hushed robin
sharp valley
#

R34 one pice

hushed robin
#

must suck tbh

craggy pine
quartz kindle
hushed robin
#

i think i got my iphone for like

#

$400

hushed robin
quartz kindle
#

so?

hushed robin
#

so

quartz kindle
#

thats why i got it

hushed robin
#

cheap = suckier

quartz kindle
#

because it was cheap

#

not really

#

its more than good enough for me

hushed robin
#

hm

#

that's nice

quartz kindle
#

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

hushed robin
#

i wanna get the iphone 14

#

it looks soooooooooooooooo nice

craggy pine
#

Looks like all the iphone in the last 4 years

quartz kindle
#

i'd rather get a fairphone or a oneplus

hushed robin
#

it looks nicer

quartz kindle
#

although oneplus is not as good as it used to be anymore

hushed robin
#

one of my friends has it

#

it's a beauty

sharp geyser
#

Iphone 14 is literally the iphone 13 ngl

hushed robin
#

nah

#

bigger camera

sharp geyser
#

sure go ahead and believe that

hushed robin
#

believe what

#

it's specs are better\

#

lol

sharp geyser
#

every iphone after 7 has been a model copy of the last

hushed robin
#

☠️

sharp geyser
#

they change a few things to make it seem "new"

hushed robin
#

that's very untrue

sharp geyser
#

not really

hushed robin
#

yes

#

it is

sharp geyser
#

ok mr know it all

hushed robin
#

a iPhone 8 will perform much worse than an iPhone 14

sharp geyser
#

forgot I was speaking in the presence of someone who knew everything

quartz kindle
#

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

hushed robin
sharp geyser
#

Who said anything about an iphone 8 performing better than a 14

hushed robin
#

you just said they're a copy

#

?

sharp geyser
#

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

hushed robin
#

if they're simply copying the last

sharp geyser
#

Are you fucking dumb on purpose?

hushed robin
#

no

#

i'm just going by what your saying

sharp geyser
#

And you are getting it entirely wrong

hushed robin
#

no i'm not

sharp geyser
#

what can I expect from a 13 year old tho

hushed robin
#

you just have bad grammar tbh

quartz kindle
#

lmao

lyric mountain
#

Said the dude who writes "your"

hushed robin
quartz kindle
#

watch him say that "your" is correct

hushed robin
sharp geyser
#

tim do you get what I am saying?

quartz kindle
#

yes

#

and i agree

hushed robin
#

i disagree

#

iphones are very good

sharp geyser
#

seems like when I say its a model copy of the last phone it must mean 5 generations behind

hushed robin
#

yes

#

it does

sharp geyser
#

if you wonder why people dont like you, this is why

hushed robin
#

i could care less if someone here dislikes me

quartz kindle
#

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

hushed robin
#

lol

quartz kindle
#

its gonna be MUCH different from the first one

#

after 5+ slight modifications

sharp geyser
#

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

hushed robin
#

question of the day #2
intel or amd?

sharp geyser
#

Ooo wow I can now view my time without having my screen actually on all the way

quartz kindle
sharp geyser
#

I prefer intel over amd when going for a combo build

#

Such as streaming and gaming

quartz kindle
#

currently i prefer amd because of 7nm efficiency

#

lower temps, lower power usage, same perf

#

but once intel gets there, intel is gonna win

sharp geyser
#

isnt amd dropping support for their threadripper cpus?

quartz kindle
#

no idea

hushed robin
#

threadripper rip

#

who needs a cpu that strong anywaays?

sharp geyser
#

A lot of people my guy

hushed robin
#

hm

#

i don't think so

#

mine works perfectly fine

sharp geyser
#

hmmm yes I guess 3d artists just dont exist

quartz kindle
#

theres more people who need a strong cpu than people who need a strong phone

sharp geyser
#

professional level 3d artists

hushed robin
#

3d artists?

sharp geyser
#

Yes

hushed robin
#

blender runs fine on my pc

quartz kindle
#

video editors

sharp geyser
#

Modelers, animators, video editors

#

a threadripper benefits them greatly if they are working on massive projects

hushed robin
#

premiere also runs fine on my pc

quartz kindle
#

dude never tried rendering

hushed robin
#

👀

solemn latch
#

rendering, oo a fun one

hushed robin
#

rendering what

sharp geyser
#

all fun in games until he tries to render an AAA level model on his pc

quartz kindle
#

do you know what is rendering?

solemn latch
#

I had a submission last year for the fall banner contest, I had multiple days of rendering just for a short little animation.

hushed robin
sharp geyser
#

some of those models in triple a games are insane

solemn latch
#

AAA model, not game

hushed robin
#

AAA model is less

#

so easier

sharp geyser
#

pfft

solemn latch
#

👀

sharp geyser
#

go ahead and believe that

quartz kindle
#

dude never heard of rendering

hushed robin
#

game vs model

#

which is bigger?

hushed robin
#

kinda

#

on blender i rendered something once

#

a donut

quartz kindle
#

nice

#

now try rendering an entire 3d animated film

sharp geyser
#

Imagine if he came from a period where rendering took days or months before real time rendering became possible

hushed robin
#

why would you do that\

sharp geyser
#

Because some people do that for work

quartz kindle
#

you know how much it took to render the entire toy story movie?

sharp geyser
#

jeez

hushed robin
#

i don't think people are rendering an entire 3d animated movie

sharp geyser
quartz kindle
#

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.

sharp geyser
hushed robin
#

only 77 minutes?

#

that's not long

quartz kindle
#

77 minutes is the film time

#

it took 800k hours to render it

hushed robin
#

machine hours

solemn latch
hushed robin
#

no way it took 800k hours to render

#

thats 33k days

quartz kindle
#

yes it did

sharp geyser
quartz kindle
#

they split it into multiple machines

sharp geyser
#

You know nothing about the industry

quartz kindle
#

but even then

hushed robin
#

you saying they spent 90 years rendering the movie?

quartz kindle
#

they only managed 30 seconds of film per day

sharp geyser
#

why are we even arguing with him about this

#

he is clueless

hushed robin
sharp geyser
#

his simple brain would never understand

quartz kindle
#

thats an example why poweful cpus are needed in the industry

sharp geyser
#

required is a keyword here

quartz kindle
#

now compare that with powerful phones, nobody actually needs powerful phones, they just want them for the lulz

hushed robin
sharp geyser
#

there are people who do these kinds of things solo

hushed robin
#

what about a serious mobile gamer?

sharp geyser
#

they are insanely good at what they do

quartz kindle
#

there are tons of independent artists and animators

#

who need powerful cpus

hushed robin
#

i don't think so

#

can you source one?

sharp geyser
#

which is why they can afford to pay 3-5k on a cpu

quartz kindle
solemn latch
#

👀 I do

sharp geyser
#

theres shit I wanna say that will definitely break tos

hushed robin
#

woah

sharp geyser
#

woo just casually has a 5k cpu sitting around

solemn latch
hushed robin
sharp geyser
#

How much do they cost?

#

Is it an hourly or monthly

hushed robin
#

i would report you if you said something bad

solemn latch
sharp geyser
#

Is it charged by hour or month?

solemn latch
#

Depends, many offer per request

sharp geyser
#

I see

solemn latch
#

IE if I need a 15 frames rendered I only pay for that time

#

the time it takes for those frames

sharp geyser
#

I wanted to get into 3d modeling but dont have the patience to sit around and make smth with shapes

lyric mountain
#

Did a ton of servers crash for yall too?

hushed robin
#

then why would you want to get into it

sharp geyser
#

nope

#

Because it would of been a cool hobby?

quartz kindle
#

would've

#

:^)

hushed robin
#

but you don't have the patience for it

sharp geyser
hushed robin
#

stick to programming

sharp geyser
#

your parents must be proud of how stupid you are

hushed robin
#

she has kicked me out a few times 🙁

#

very mean

sharp geyser
#

at this point I am sure you have this kind of attitude to get attention

quartz kindle
#

welcome to generation tiktok

hushed robin
#

this is just me

sharp geyser
#

I hope tiktok gets banned in the us

hushed robin
#

i don't have an attitude

hushed robin
#

it will not

#

😁i love tiktok

sharp geyser
#

They are already talking about banning it again so

#

It might happen

hushed robin
#

possibly

#

but there's a very low chance

sharp geyser
#

I hope it does

hushed robin
#

i don't

sharp geyser
#

maybe the world will return to normal

hushed robin
#

tiktok is fun

#

i like commenting funny stuff

#

and making tiktok people rage

sharp geyser
#

except you have to actually be funny

hushed robin
#

hm

#

i think i am kindaa

#

or people wouldn't like them

sharp geyser
#

ok but people's humor on tiktok is broken

#

they laugh at bread falling over

hushed robin
#

maybe you just don't have a sense of humor

#

ever thought about it that way?

sharp geyser
#

I am sad to be part of a generation where bread falling over is funny

hushed robin
#

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

solemn latch
#

a mod

#

They are a long time mod

hushed robin
#

what does that mean

solemn latch
#

theyve been here a long time

hushed robin
#

oh

solemn latch
#

Took a break for awhile though

hushed robin
#

so did they just get tired of chatting here

solemn latch
#

maybe?

hushed robin
#

hm

#

nice

sharp geyser
#

guys

#

who is "woo?"

hushed robin
#

Woo is a nice moderator

somber wigeon
#

Hello

quartz kindle
#

can you describe a bit how your system is setup? or did you already fix it

hushed robin
#

making a website is so hard

#

😖

spark flint
#

ok

hushed robin
swift elk
#

Hi

quartz kindle
jaunty basalt
hushed robin
#

the struggle is real

jaunty basalt
quartz kindle
#

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

hushed robin
#

@solemn latch

#

in a lot of the channels

solemn latch
#

I love discord

earnest phoenix
#

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?

rustic nova
#

By just using it in your description

#

The description supports html

earnest phoenix
earnest phoenix
#

Ah ok that makes sense. Thank you guys!

lyric mountain
earnest phoenix
lyric mountain
#
<style>
    put styles here
</style>
#

Do not write the full HTML structure else it won't work

earnest phoenix
brisk light
#
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fb397d769b0>```
#

Help

#

How long will this last

hushed robin
#

maybe read the URL they sent you

brisk light
wheat mesa
#

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

quartz kindle
brisk light
#

Help idk how to-

quartz kindle
# brisk light 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

spark flint
#

@brazen violet just ask here

#

no point arguing over a channel that is literally next to this one

brazen violet
#

ok help me

#

again say ask to one who made the code

brazen violet
#

i never got that error

spark flint
brazen violet
#

just after using auto poster i got it

earnest phoenix
#

me when people ctrc+v random code

spark flint
brazen violet
brazen violet
earnest phoenix
#

At least try to understand it first

brazen violet
#

so its just auto poster problem?

earnest phoenix
#

No

#

it's your copied code that is causing unnecessary issues

brazen violet
# earnest phoenix At least try to understand it first

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.

quartz kindle
#

chatgpt? lmao

brazen violet
#

ye

earnest phoenix
#

Is that again some pasted response from ChatGPT or what

#

Awesome, so you probably got all of that from ChatGPT

brazen violet
#

i tried to understand XD

earnest phoenix
#

Won't get any help for that

#

peace

brazen violet
#

u said to understand dude

earnest phoenix
#

batleelless 3.0

#

soon there will be 4.0

quartz kindle
#

lmao

brazen violet
#

XD

#

so i need to wait for 4.0?

quartz kindle
#

lmfao

earnest phoenix
#

LMAO

brazen violet
#

XD

earnest phoenix
rustic nova
#

so I shall arrive with a question

#

lets say I make my own backup system

earnest phoenix
#

step 1: don't

rustic nova
#

understandable have a great day

earnest phoenix
rustic nova
#

but lets say

quartz kindle
#

back up to /dev/null

#

unlimited storage

rustic nova
#

I have multiple folders that contain volumes and docker-compose files, aswell as several other related files

brazen violet
#

bruh guys let him help me

earnest phoenix
rustic nova
#

should I compress the zips that I'm backing up or nah

brazen violet
#

pls if u dont want to help just go #general

earnest phoenix
#

Aurel is asking a more relevant question KEKW

quartz kindle
earnest phoenix
rustic nova
#

so there's like no data loss associated with it iirc correct?

quartz kindle
#

nop

earnest phoenix
#

nop

rustic nova
#

coolio

earnest phoenix
#

Choose the right compression algorithm and you can save more space than a usual zip compression

quartz kindle
#

@brazen violet ok, so, tell me what you are trying to do, and what you did until now

spark flint
#

they are trying to hack the mainframe

earnest phoenix
#

by copying code trol

brazen violet
#

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!

spark flint
#

yes but the stats are posted

#

it is your anti crash causing an error that wiill not cause the bot to crash

brazen violet
#

ya i know why why multiple resolves error?

quartz kindle
brazen violet
quartz kindle
#

show the code you did

brazen violet
rustic nova
#

whats better? using tar or just zip

earnest phoenix
#

for backups, i'd use xz honestly

hushed robin
#

how can i check a files size in linux

quartz kindle
rustic nova
#

is it still possible to open xz-zipped ones using winrar or 7zip? KEKW

earnest phoenix
#

probably 7zip yeh

brazen violet
earnest phoenix
#

pretty sure it supports that

brazen violet
brazen violet
#

i did module.exports

quartz kindle
brazen violet
#

ya it is

#

should i make a sourcebin file or just show the ss?

quartz kindle
#

btw this suggests its working properly

spark flint
#

yes

#

it is just catching errors that do not need to be caught

brazen violet
spark flint
#

the bot will not crash if you remove the multipleResolves catcher

brazen violet
#

oh

#

then i will just remove it :/

#

O_O and it fixed it :/

#

should have said sooner XD

earnest phoenix
rustic nova
#

jesus

#

from 500 mb down to 75kb

earnest phoenix
rustic nova
#

cc compression

#

chad compression

quartz kindle
#

wat

heady dagger
#

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?

solemn latch
#

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.

civic scroll
rustic nova
#

ofc

quartz kindle
#

ufc

rustic nova
#

ufw

rustic nova
#

taking a long time to do so tho

#

ngl

#

guessing that it isnt fast, but saves alot of space

rustic nova
#

not too much, still an improvement

earnest phoenix
#

man the discord api

earnest phoenix
#

[![image name](/assets/images/shiprock.png "Shiprock, New Mexico by Beau Rogers")](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

![Image alt name](image_url)
#

I'll try that

#

Not sure why you've put some nested images

#

Thank you

eternal osprey
#

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.

rustic nova
#

lang?

wheat mesa
#
const message = await channel.messages.fetch("ID";

// can now do whatever a Message object (on the docs) is allowed to do```
sharp saddle
#

what's the best database to use?

#

i mean, i'm used to use postgres

rustic nova
quartz kindle
#

sqlite

rustic nova
#

Well

#

It depends on what type of database you want

#

Key value ones is mongo good

sharp saddle
#

i'll use on my new bot

sharp saddle
quartz kindle
#

been using sqlite for years, never had issues

#

its blazing fast™️

digital swan
#

Just do it

solemn latch
#

Its the same way as async outside of a setinterval

#

👀 the error is happening on this line? "let groupInfo = await noblox.getGroup(17082526) "?

neon leaf
#

does anyone know how to get the @aws-sdk/client-s3 working with a minio s3 server instead of aws? Im just getting SignatureDoesNotMatch

gaunt echo
#
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)
rustic nova
#

more input please

#

what library for example

gaunt echo
gaunt echo
rustic nova
#

doesnt help much

#

what library

#

theres multiple discord libraries in different languages

gaunt echo
#

py-cord[voice]
aiohttp
beautifulsoup4
spotipy
emoji
SQLAlchemy[asyncio]
alembic

gaunt echo
rustic nova
#

update

#

lol

#

very old

quartz kindle
gaunt echo
#

also dont work

rustic nova
#

what version are you on now

gaunt echo
rustic nova
#

your env is pretty screwed up then

rustic nova
#

yeahh thats not the official one either

quartz kindle
#

uninstall it and reinstall it

rustic nova
#

re-install it from py-cord

quartz kindle
#

also whats your python version? pycord v2 requires python 3.7+

gaunt echo
rustic nova
#

still the unofficial one or a fork of it

gaunt echo
#

nvm fixed

#

how to use MY stickers in bot?

#

in another server

rustic nova
#

Bots cant use stickers iirc

#

Only emojis

spark flint
#

they can use stickers

#

but only in the same server

#

not cross server

rustic nova
#

They can actually use stickers?

spark flint
#

yes