#development

1 messages ยท Page 152 of 1

sage bobcat
#

One message removed from a suspended account.

quartz kindle
#

xD

sage bobcat
#

One message removed from a suspended account.

weary ridge
#

or even more

#

so text lenght isnt a problem

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

weary ridge
#

just by text i know he'san ishinoko fan with 3 figures that i even got images as proof

#

he's a ||good guy||

#

and much much more

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

weary ridge
#

well yeah

#

i got the text and everything but i need a summariser

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

weary ridge
#

well i could if had acces to chat logs

#

then i could read every message you got in this server

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

weary ridge
#

so i could if i wanted

#

but i want a bot to summarise things

sage bobcat
#

One message removed from a suspended account.

weary ridge
#

well i got a summariser ai that i trained but i dont think its gonna be usefull

#

or yes idk imma try

#

brb with the results

#

@sage bobcat i gave it a prompt that got 2-3 millions characters

#

it returned this

#

I'm not sure who created the server. I created the streamer role :3 and now I can't ban them. I added MEE6 big mistake. I'm illegally migrating to Italy tomorrow see you soon. I guarantee that I will make your video 10% worst. I can be your co host :Pog.

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

weary ridge
#

this one is just text summary for paragraphs that i use for ww2

#

markov?

sage bobcat
#

One message removed from a suspended account.

weary ridge
#

no?

sage bobcat
#

One message removed from a suspended account.

weary ridge
#

i want to give bit text get important things from it like birth day interests and info from it

all of these were given in the big text

#

wait in hugging caht they got a answer questions ai cathegory

#

or smth like that

#

where you give context and it does its work

#

could work

#

whacah think @sage bobcat

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

winged linden
#

yoo if anyone could help me out i would really appreciate it, i am using chakra-ui, i am tryna center the form control in the middle of the card, but if i try even the names are getting centered idfk why(i want the names to stay on the left of the input)

        <CardHeader
          fontSize="2xl"
          fontWeight="600"
          display="flex"
          alignItems="center"
          justifyContent="space-between"
        >
          <Flex alignItems="center">Create Spl Token</Flex>
          <Flex alignItems="center">
            <SettingsIcon />
            <Box width="8px" />
            <WalletMultiButton />
          </Flex>
        </CardHeader>

        <CardBody as={Flex} direction="column" gap={6} mt={3}>
          <Center flexDirection="column">
            {!wallet.publicKey && (
              <Text fontSize={{ base: 'md' }} fontWeight="600" color="TextSecondary">
                Please, connect your wallet!
              </Text>
            )}
          </Center>
          <FormControl>
            <FormLabel htmlFor="name" fontWeight="600">
              Token Name
            </FormLabel>

            <Input
              value={tokenName}
              onChange={(event) => setTokenName(event.target.value)}
              placeholder="Token Name"
              size="sm"
              borderRadius="md"
              width="50%"
              mb={2}
            />

            <FormLabel fontWeight="600">Symbol</FormLabel>
            <Input
              value={symbol}
              onChange={(event) => setSymbol(event.target.value)}
              placeholder="Symbol"
              size="sm"
              borderRadius="md"
              width="50%"
              mb={2}
            />

            <FormLabel fontWeight="600">Quantity</FormLabel>
            <NumberInput defaultValue={0} min={0} step={1} width="50%" mb={2}>
              <NumberInputField />
              <NumberInputStepper>
                <NumberIncrementStepper />
                <NumberDecrementStepper />
              </NumberInputStepper>
            </NumberInput>

            <FormLabel fontWeight="600">Decimals</FormLabel>
            <NumberInput defaultValue={9} min={0} max={9} step={1} width="50%" mb={2}>
              <NumberInputField />
              <NumberInputStepper>
                <NumberIncrementStepper />
                <NumberDecrementStepper />
              </NumberInputStepper>
            </NumberInput>

            <FormLabel fontWeight="600">Description</FormLabel>
            <Input
              value={tokenDescription}
              onChange={(event) => setTokenDescription(event.target.value)}
              placeholder="Description"
              size="sm"
              borderRadius="md"
              width="50%"
              mb={2}
            />
            <FormLabel htmlFor="isChecked">Freeze Authority:</FormLabel>
            <Switch
              id="isChecked"
              isChecked={isChecked}
              onChange={() => setIsChecked((prevIsOn) => !prevIsOn)} // Toggle the value of isOn
            />
          </FormControl>
          <Button mt={4} colorScheme="purple" type="submit" width="50%">
            Create
          </Button>
        </CardBody>
      </Card>```
frosty gale
sage bobcat
sage bobcat
frosty gale
#

ok

sage bobcat
#

One message removed from a suspended account.

frosty gale
#

๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ

winged linden
#

1sec

frosty gale
weary ridge
# winged linden yoo if anyone could help me out i would really appreciate it, i am using chakra-...
<Card w="full" rounded="3xl" h="fit-content" variant="primary">
  <CardHeader
    fontSize="2xl"
    fontWeight="600"
    display="flex"
    alignItems="center"
    justifyContent="space-between"
  >
    <Flex alignItems="center">Create Spl Token</Flex>
    <Flex alignItems="center">
      <SettingsIcon />
      <Box width="8px" />
      <WalletMultiButton />
    </Flex>
  </CardHeader>

  <CardBody as={Flex} direction="column" gap={6} mt={3}>
    {!wallet.publicKey && (
      <Text fontSize={{ base: 'md' }} fontWeight="600" color="TextSecondary">
        Please, connect your wallet!
      </Text>
    )}

    <FormControl textAlign="left">
      <FormLabel htmlFor="name" fontWeight="600">
        Token Name
      </FormLabel>
      <Input
        value={tokenName}
        onChange={(event) => setTokenName(event.target.value)}
        placeholder="Token Name"
        size="sm"
        borderRadius="md"
        width="50%"
        mb={2}
      />

      <FormLabel fontWeight="600">Symbol</FormLabel>
      <Input
        value={symbol}
        onChange={(event) => setSymbol(event.target.value)}
        placeholder="Symbol"
        size="sm"
        borderRadius="md"
        width="50%"
        mb={2}
      />

      {/* Add other form controls here */}

      <FormLabel htmlFor="isChecked">Freeze Authority:</FormLabel>
      <Switch
        id="isChecked"
        isChecked={isChecked}
        onChange={() => setIsChecked((prevIsOn) => !prevIsOn)}
      />
    </FormControl>
    <Button mt={4} colorScheme="purple" type="submit" width="50%">
      Create
    </Button>
  </CardBody>
</Card>

#

here dude it wasnt that hard

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

frosty gale
sage bobcat
#

One message removed from a suspended account.

weary ridge
#

i fixed what he needed no need for that

sage bobcat
#

One message removed from a suspended account.

winged linden
sage bobcat
#

One message removed from a suspended account.

weary ridge
sage bobcat
#

One message removed from a suspended account.

winged linden
frosty gale
#

thats pretty cool actually

weary ridge
#

and card to stay in place?

frosty gale
#

so it kinda attempts to predict the next word based on existing words that are based on weights from your sentences?

winged linden
sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

frosty gale
#

mini machine learning

#

yeah thats pretty cool

weary ridge
# winged linden yea yea card is fine dw about that
import { Center } from '@chakra-ui/react';

// ...

<Card w="full" rounded="3xl" h="fit-content" variant="primary">
  <CardHeader
    fontSize="2xl"
    fontWeight="600"
    display="flex"
    alignItems="center"
    justifyContent="space-between"
  >
    <Flex alignItems="center">Create Spl Token</Flex>
    <Flex alignItems="center">
      <SettingsIcon />
      <Box width="8px" />
      <WalletMultiButton />
    </Flex>
  </CardHeader>

  {/* Center the content inside the card */}
  <Center>
    <CardBody as={Flex} direction="column" gap={6} mt={3}>
      {!wallet.publicKey && (
        <Text fontSize={{ base: 'md' }} fontWeight="600" color="TextSecondary">
          Please, connect your wallet!
        </Text>
      )}

      <FormControl textAlign="left">
        <FormLabel htmlFor="name" fontWeight="600">
          Token Name
        </FormLabel>
        <Input
          value={tokenName}
          onChange={(event) => setTokenName(event.target.value)}
          placeholder="Token Name"
          size="sm"
          borderRadius="md"
          width="50%"
          mb={2}
        />

        <FormLabel fontWeight="600">Symbol</FormLabel>
        <Input
          value={symbol}
          onChange={(event) => setSymbol(event.target.value)}
          placeholder="Symbol"
          size="sm"
          borderRadius="md"
          width="50%"
          mb={2}
        />

        {/* Add other form controls here */}

        <FormLabel htmlFor="isChecked">Freeze Authority:</FormLabel>
        <Switch
          id="isChecked"
          isChecked={isChecked}
          onChange={() => setIsChecked((prevIsOn) => !prevIsOn)}
        />
      </FormControl>
      <Button mt={4} colorScheme="purple" type="submit" width="50%">
        Create
      </Button>
    </CardBody>
  </Center>
</Card>

#

this?

winged linden
#

let me try

sage bobcat
weary ridge
winged linden
weary ridge
#

the librarie is called chatter bot or smth like that

winged linden
#

my brain is freezing i hate frontend ngl

weary ridge
#

hmmm weird

#

lemme try an other way

winged linden
#

gonna try smth 1 sec

frosty gale
#

did you get a bot to go through them and add them or

#

like your existing ones on discord

weary ridge
weary ridge
# winged linden gonna try smth 1 sec
import { Center } from '@chakra-ui/react';

// ...

<Card w="full" rounded="3xl" h="fit-content" variant="primary">
  <CardHeader
    fontSize="2xl"
    fontWeight="600"
    display="flex"
    alignItems="center"
    justifyContent="space-between"
  >
    <Flex alignItems="center">Create Spl Token</Flex>
    <Flex alignItems="center">
      <SettingsIcon />
      <Box width="8px" />
      <WalletMultiButton />
    </Flex>
  </CardHeader>

  <CardBody align="center" justify="center" as={Flex} direction="column" gap={6} mt={3}>
    {!wallet.publicKey && (
      <Text fontSize={{ base: 'md' }} fontWeight="600" color="TextSecondary">
        Please, connect your wallet!
      </Text>
    )}

    <FormControl textAlign="left">
      <FormLabel htmlFor="name" fontWeight="600">
        Token Name
      </FormLabel>
      <Input
        value={tokenName}
        onChange={(event) => setTokenName(event.target.value)}
        placeholder="Token Name"
        size="sm"
        borderRadius="md"
        width="50%"
        mb={2}
      />

      <FormLabel fontWeight="600">Symbol</FormLabel>
      <Input
        value={symbol}
        onChange={(event) => setSymbol(event.target.value)}
        placeholder="Symbol"
        size="sm"
        borderRadius="md"
        width="50%"
        mb={2}
      />

      {/* Add other form controls here */}

      <FormLabel htmlFor="isChecked">Freeze Authority:</FormLabel>
      <Switch
        id="isChecked"
        isChecked={isChecked}
        onChange={() => setIsChecked((prevIsOn) => !prevIsOn)}
      />
    </FormControl>
    <Button mt={4} colorScheme="purple" type="submit" width="50%">
      Create
    </Button>
  </CardBody>
</Card>


winged linden
weary ridge
#

import { Center } from '@chakra-ui/react';

// ...

<Card w="full" rounded="3xl" h="fit-content" variant="primary">
<CardHeader
fontSize="2xl"
fontWeight="600"
display="flex"
alignItems="center"
justifyContent="space-between"

<Flex alignItems="center">Create Spl Token</Flex>
<Flex alignItems="center">
  <SettingsIcon />
  <Box width="8px" />
  <WalletMultiButton />
</Flex>

</CardHeader>

<CardBody width="100%" as={Flex} direction="column" gap={6} mt={3}>
{!wallet.publicKey && (
<Text fontSize={{ base: 'md' }} fontWeight="600" color="TextSecondary">
Please, connect your wallet!
</Text>
)}

<FormLabel htmlFor="name" fontWeight="600">
  Token Name
</FormLabel>
<Input
  value={tokenName}
  onChange={(event) => setTokenName(event.target.value)}
  placeholder="Token Name"
  size="sm"
  borderRadius="md"
  width="50%"
  mb={2}
/>

<FormLabel fontWeight="600">Symbol</FormLabel>
<Input
  value={symbol}
  onChange={(event) => setSymbol(event.target.value)}
  placeholder="Symbol"
  size="sm"
  borderRadius="md"
  width="50%"
  mb={2}
/>

{/* Add other form controls here */}

<FormLabel htmlFor="isChecked">Freeze Authority:</FormLabel>
<Switch
  id="isChecked"
  isChecked={isChecked}
  onChange={() => setIsChecked((prevIsOn) => !prevIsOn)}
/>

<Button mt={4} colorScheme="purple" type="submit" width="50%">
  Create
</Button>

</CardBody>
</Card>

#

now dont worry about form control

winged linden
#

if i make the width 100%, it looks centered, but its bulky like that i would say

weary ridge
#

use what i gave you

winged linden
#

lol๐Ÿ’€ trust me, i tried everything, fking frontend is annoying

#

just gonna use 100% width

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

weary ridge
oak vector
#

@winged linden what type of ur project is about

#

?

weary ridge
winged linden
sage bobcat
#

One message removed from a suspended account.

oak vector
sage bobcat
oak vector
#

Seems intresting

winged linden
sage bobcat
#

One message removed from a suspended account.

weary ridge
#

hey any one with some good anime recommandations?

sage bobcat
#

One message removed from a suspended account.

oak vector
weary ridge
#

anything im down for everything

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

sage bobcat
weary ridge
#

watched all of them sadly

oak vector
weary ridge
#

how cassandra manages millions of discord messages per second

sage bobcat
#

One message removed from a suspended account.

oak vector
#

I'm waiting for getting bot Developer

#

Role..

#

When they will verify

weary ridge
#

how do you get that role?

oak vector
sage bobcat
#

One message removed from a suspended account.

oak vector
#

I have added my bot

weary ridge
#

oh so i got it without even knowing

sage bobcat
#

One message removed from a suspended account.

oak vector
#

It's about monitoring projects

weary ridge
sage bobcat
#

One message removed from a suspended account.

oak vector
weary ridge
#

your bot

#

its a good bot idea ngl

oak vector
#

24/7 online

#

But monitoring

weary ridge
#

looks complicated

#

i just made an all in 1 bot thaat got everything i could imagine in it

oak vector
#

1st all in one

sage bobcat
oak vector
#

2nd lyric bot - music bot

weary ridge
oak vector
#

And 3rd bot - uptimer - uptime bot which i want to vrow

#

Grow*

weary ridge
#

noice

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

weary ridge
oak vector
#

?

weary ridge
#

me

#

@oak vector what features were in your first bot

#

@sage bobcat what bot have you develloped

sage bobcat
#

One message removed from a suspended account.

weary ridge
#

idc what was your first accepted bot?

sage bobcat
#

One message removed from a suspended account.

weary ridge
#

bruh

winged linden
winged linden
sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

winged linden
#

exactly lol

sage bobcat
#

One message removed from a suspended account.

winged linden
weary ridge
sage bobcat
#

One message removed from a suspended account.

sage bobcat
#

One message removed from a suspended account.

winged linden
lyric mountain
sage bobcat
weary ridge
winged linden
weary ridge
#

imma invite the bot and check it out

sage bobcat
#

One message removed from a suspended account.

lyric mountain
weary ridge
#

i watched a 36 minutes video about a video of how discord manages millions of messages per second

winged linden
lyric mountain
#

...36 minutes

weary ridge
#

its the way how they manage the data

oak vector
sage bobcat
#

One message removed from a suspended account.

weary ridge
#

int here servers

sage bobcat
lyric mountain
#

it's fairly easy to handle millions of events per second if you know how to write efficient code

sage bobcat
#

One message removed from a suspended account.

winged linden
oak vector
#

Created*

oak vector
#

Its in 186 servers

lyric mountain
#

also moving away from single-threaded langs gives u a lot of room for processing

weary ridge
#

@sage bobcat there are some sus command in there

sage bobcat
#

One message removed from a suspended account.

winged linden
lyric mountain
#

java

sage bobcat
weary ridge
#

why is there a PP comand

sage bobcat
#

One message removed from a suspended account.

oak vector
weary ridge
#

a yo mama comamnd

#

and a bible verse gen

sage bobcat
winged linden
lyric mountain
#

I keep a thread pool exclusive to events, while everything else (commands, sched actions, db operations, etc) is ran on another pool

sage bobcat
#

One message removed from a suspended account.

winged linden
lyric mountain
#

couldn't say that I "started" tho, the bot was barebones

weary ridge
#

why do poeple always just make each command in a separate file like i dont see any advantages to it

lyric mountain
#

the actual usable version of my bot was started in java

oak vector
sage bobcat
weary ridge
sage bobcat
#

One message removed from a suspended account.

weary ridge
#

i got it organised

lyric mountain
weary ridge
#

i can find any command i need easily

lyric mountain
#

it's easier if u go js -> groovy tho, as both are dynamically typed

winged linden
sage bobcat
weary ridge
#

anyone knows perl here?

winged linden
#

i know how java work and can migrate to it my own code easily, the only problem i will have to write my own code for the current packages i use

lyric mountain
sage bobcat
weary ridge
lyric mountain
#

also there's an upper limit on how big a file can be

#

the soft cap starts around 1m lines

winged linden
sage bobcat
#

One message removed from a suspended account.

lyric mountain
lyric mountain
digital swan
#

anyone have experience with digitalocean & vultr and which is generally better?

lyric mountain
#

unless it's is-even

winged linden
weary ridge
digital swan
#

im not

sage bobcat
#

One message removed from a suspended account.

winged linden
digital swan
#

what ive seen is that digitalocean has a nicer interface but vultr has better cpu performance

lyric mountain
# weary ridge nor really

it is, it might not be for your specific case because it's a small codebase for now, but at some point it becomes extremely hard to find stuff or maintain

digital swan
#

but idk if its that impactful

weary ridge
lyric mountain
winged linden
lyric mountain
#

that's called "technical debt", it's not recommended to let it snowball

#

I had the bad habit of allowing it, now I'm rewriting my bot for the 4th time

winged linden
weary ridge
lyric mountain
#

this time I'm making sure I don't leave bugs alive however small they are

winged linden
lyric mountain
#

and that no shortcuts were taken

oak vector
#

Hmm

weary ridge
sage bobcat
#

One message removed from a suspended account.

weary ridge
winged linden
lyric mountain
#

I use the MVC structure for all my projects

#

easier to keep organization

weary ridge
#

i use python so i use less lines for same thing

lyric mountain
#

less lines isn't technically better

winged linden
weary ridge
#

for me yes

sage bobcat
#

One message removed from a suspended account.

winged linden
#

how easy can u make the same command for slash & prefix

weary ridge
#

i focuse in code golfing more than the important thing

winged linden
#

it takes 1 min out of my life, u will have to rewrite the code for both of them

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

lyric mountain
#

large golf field KEKW

weary ridge
#

its a all in 1 bot

#

every idea that pops in my mind i put it in

lyric mountain
#

and I suppose no command handler

weary ridge
#

yep

rustic nova
#

my bot is unique, le multipurpose

sage bobcat
#

One message removed from a suspended account.

lyric mountain
#

did u write a if-else chain for each command?

winged linden
#

i even have a 2k line file, but thats for the functions and its well organized so its easy to manage, if i ever have to rewrite my bots code i just copy paste that file cuz it wont change a damn thing

winged linden
weary ridge
sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

quartz kindle
#

i have a 5k line .d.ts file :^)

winged linden
oak vector
#

@rustic nova How many days taken to accept u as bot reviewer ? Even i also had applied for it

weary ridge
#

i didnt get what ha was saying at first

lyric mountain
weary ridge
#

tell us

quartz kindle
#

you have a big filรฉ

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

lyric mountain
#

tbf, I HAD a big file

#

largest I have now is 2.4k lines

#

which is my whole game

spark flint
oak vector
lyric mountain
#

hm, it was smaller than I thought

#

only 3.5k lines

oak vector
#

And how can i also get it

spark flint
#

i contributed to one of the top.gg open source things

#

why do you need it lol

weary ridge
spark flint
#

which is not often

oak vector
lyric mountain
# weary ridge only

yeah, not really big given my whole bot is nearing half a million lines total

spark flint
#

you will only get the role if you contribute to something on the github

weary ridge
spark flint
#

and you probably won't get the role if you are doing it just FOR the role

lyric mountain
sage bobcat
oak vector
#

Yes for role but i have done to help other beginners

lyric mountain
#

every single card has a snippet of code embedded in it

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

lyric mountain
#

shiro, no its not in english (yet)

weary ridge
#

what language?

lyric mountain
#

portuguese

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

weary ridge
#

i know spanish i think they're close enought

oak vector
#

Okay bye guys

#

Let's meet tomorrow

neon leaf
#

KuuHaKu, do you know how to fix tsserver sometimes taking up to 8min for intellisense? I gave it 6gb ram

lyric mountain
#

the rewrite is taking a lot of time cuz I'm too lazy to convert the damn 2k cards to the new engine

weary ridge
#

wait inst shiro the guy from no game no life

oak vector
#

I have to go for my collage lectures

neon leaf
#

yes

lyric mountain
#

for running TS?

neon leaf
#

the language server for js and ts

copper saffron
#

โ˜น๏ธ

neon leaf
#

so that you can get intellisense

lyric mountain
#

well, 8min is a lot, did u exclude the folder from antivirus?

neon leaf
#

yes

lyric mountain
#

x64 I suppose?

neon leaf
#

amd64 if you mean that, yes

lyric mountain
#

hm, the processor maybe? is it getting close to 100% often?

neon leaf
#

nope

#

pretty close to 20% at all times

#

its a remote host

lyric mountain
#

the tsserver is there or local?

neon leaf
#

I think it runs there

#

idk how vscode handles it

lyric mountain
#

ah, vscode, I thought u were talking abt intellij for some reason

#

idk how to help, but coding remotely incurs some latency to all operations, maybe it's why it's taking 8min

neon leaf
#

well my internet should definitely handle that though

#

I could understand like 10sec latency

#

but not 8min

lyric mountain
#

tim would be more appropriate for helping with this

neon leaf
#

@quartz kindle ><

winged linden
lyric mountain
#

I am

winged linden
#

Ah wonderful

lyric mountain
#

the only parts that still need translation are the card descriptions

winged linden
#

Are u just using google translate or u got someone to do the translations?

lyric mountain
#

all were done manually, though crowdin

#

got some voluntaries earlier into the project, but will need to find more again

#

the text in the bot was not much far from that

eternal osprey
#

in djs v14, how would i not reply to an interaction at all?

#

I just don't want those stupid interaction failed shit

rustic nova
#

Just don't reply

#

Do nothing literally

eternal osprey
#

then i get the interaction failed

wheat mesa
#

iirc thereโ€™s no way to do that for a slash command, but you can acknowledge other types of interactions (someone correct me because itโ€™s been a hot minute)

craggy pine
#

Defer update no?

eternal osprey
#

really, so interaction.acknowledge()? Seems reasonable to me.

eternal osprey
wheat mesa
#

deferUpdate

#

โ€œSilentlyโ€ defers

craggy pine
#

^ ye i knew it was something like that

eternal osprey
#

that's hot asf never knew that

#

can i still use editReply after deffering?

#

deferring

wheat mesa
#

I believe so

craggy pine
#

editReply assumes you have already replied. So im unsure if it would let you. Personally if I defer update itโ€™s because my function took longer than the default 3 seconds before interactionfailed

wheat mesa
#

I usually have a nice little editOrReply function that I write

red wadi
#

what is the algo for this search query rank:

spark flint
#

wdym algo

#

top.gg won't share how their algorithm works

#

but from what it looks like, its probably based on a mix of things such as votes, server count, etc

frosty gale
#

jk topgg would never add such a complex algorithm

#

๐Ÿ’€

#

(its not even relevant in this case)

sterile brook
sterile lantern
#

how come the bot isnt finding the channel even after i fetch all channels before checking (the channel exists) (discord.js v13)

wheat mesa
#

Are you sure that fetch gets run? You should always use semicolons to end statements especially when it involves return

#

Try adding a semicolon to the return statement

sterile lantern
#

still doesnโ€™t work

solemn latch
#

Another thought, this sometimes wont work right?

sterile lantern
#

wdym

solemn latch
#

usernames can be longer than the max char length of a channel

#

Even without the buddy-

sterile lantern
#

oh wait

#

itโ€™s because I have a period in my username

#

which you canโ€™t add to channels

#

aaaa thank you

#

maybe Iโ€™ll just use the channel topic

solemn latch
#

Is this like an assigned channel thing?
Most bots use a database to figure out what channel belongs to what user, not their username.

sterile lantern
#

yeah this is just assigned channel so Iโ€™m not using a database

#

I can just put their ID in the topic probs

oak vector
#

Hoi

hidden moth
#

How can I make a command tag for the bot? that is, if I click on the writing /help, does it write the command in the chat?

wheat mesa
#

You mean slash commands?

deft wolf
#

Yeah, he means something similar to user or channel ping

#

I guess it was </command_name:command_id>

#

But I don't remember exactly

slender wagon
#

do yall still use filezilla

deft wolf
#

I'm using WinSCP for ftp connections

#

I was using filezilla but for some reason it would never send one command so I decided to look for something else

slender wagon
#

on my windows i use filezilla and putty

#

it's a nice combo but i feel like i can do better

deft wolf
#

I honestly don't know if it matters that much. I just like WinSCP better when it comes to the interface

shadow storm
#

hi

deft wolf
#

Yo

hidden moth
deft wolf
#

When you write a command in the chat, a box with the name of the command will appear at the top

#

Above the text box

#

You need to click on it with right mouse button

#

Something like this

hidden moth
#

Thanks

oak vector
#

Hi

eternal osprey
#

hey, i am trying to make my site a bit more responsive:

@media only screen and (max-width: 768px) {
    [class="test"] {
        width: 25%;
        font-size: 10%;
        background-color: red;
    }    
  }

  .test{
    width: 100%; display: inline-block; font-size:500%; background-color: rgb(178, 55, 11);
  }```

I just creates this rq to test, but my background color is not changing at all
#

i set up a live server and tried sizing down my window, still remained orange (as declared in .test)

#

I am 100% sure html file linked the right css file, meta tags are intact and i am using the right test class on the p.

#
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel = "stylesheet" href = "../styles/home.css">
    <title>Document</title>
</head>
<body>
    <p class ="test">testing</p>
</body>
</html>```
#

owh so i found out media queries can get overwritten, they have the same css prioirty as normal class markups.

oak vector
#

@eternal osprey hmm

#

I refer u to use

#

Chatgpt

#

It will get ur code

#

More responsive

#

Evern i have created my some of codes with the gpt itself

#

And it's much reliable

slim void
#

chatgpt isnt 100% reliable

oak vector
#

@slim void yea

#

But atleast it's 80% reliable

#

20% alteast the Developer should give

eternal osprey
#

i don't really gain anything useful when using chatgpt

lyric mountain
oak vector
oak vector
#

The ai powered by google

#

Itself

eternal osprey
#

on desktop this is how the page looks like. Can i get some advice on how i would scale this down? Should i stick with this exact design for mobile too (assuming on the white part there'll be text), or should i make a top-to-bottom view, where i first have the main image and then the text below it

eternal osprey
oak vector
#

An best app for beginner learner

lyric mountain
#

prod, he wants to learn through problem-solving

#

if u dont struggle u dont develop your programming skills

oak vector
lyric mountain
#

he's not a beginner

lyric mountain
oak vector
#

Hmm

sage bobcat
oak vector
eternal osprey
# lyric mountain wdym?

Right now, i have above design set for desktop. I want to make my site work on mobile as well. but what design should i go for? Should i stick with this exact design, but smaller (to fit the phone screens), or shall i change the design a bit, to put the left image solely on the top of the screen, and the right static white color part below it.

lyric mountain
#

mobile will be vertical, as the aspect ratio < 1

eternal osprey
lyric mountain
#

so there'll be no empty space on the right

#

your best option would be to use flexbox and let it adjust placement automatically

sage bobcat
#

One message removed from a suspended account.

lyric mountain
#

a popup

eternal osprey
#

sirry i showed wrong code. So i actually use right: 30%.

#

this is the outcome (for mobile)

lyric mountain
#

the text wont be readable

#

too little space

eternal osprey
#

i see, so this is the design i created in figma (i heard its smart to first have a design set).

#

but this means i should rather have the left image just on top, and the right part under it?

#

as indeed, i think there's a bit too less space.

lyric mountain
#

with flexbox u can move the content below the image

#

on mobile, that is

eternal osprey
#

yeah indeed, i could in the media query set the flexbox to column right?

#

idk, what do you think? Would it still look good to a certain extent? (in this new phone design)

lyric mountain
#

I think so, it's the only option u have

eternal osprey
#

alrighty thank you, so would you think it's. good practice to have all mobile designs top to bottom?

lyric mountain
#

yep, you don't have much space on the horizontal axis

#

check for aspect ratio (width / height) instead of whether it's mobile or not

#

if it's below 1, then it's vertical

#

since users could browse on a table too, which is landscape mode by default

eternal osprey
#

owhhh i see, i used a bootstrap css chart that i found

#

kuu you are the best, thank you for all the help

lyric mountain
#

yw

frosty gale
#

you have to ask these questions

weary ridge
#

guys got any ideas i could add to my bot

deft wolf
#

Wait for feedback from your bot users

#

Alternatively, find a similar bot and read their suggestions and try to add it to yours

weary ridge
#

i dont think there is a similar bot to mine

nocturne flint
#

how to add this type of reaction

deft wolf
#

You mean buttons?

#

It's very old, I don't know how you didn't find it before

#

Ofc if you use discord.js

nocturne flint
slender wagon
#

webhooks are annoying to set up fr fr

nocturne flint
nocturne flint
slender wagon
slender wagon
weary ridge
#

wait no im a fox http cat

hidden moth
lament rock
#

Alright. No need to get too crazy over cats

limpid rain
#

Hi all

oak vector
slender wagon
#

So i applied a font to this:

 <Typography variant="h1" className={styles.westernBigBang} component="div" sx={{

when i run dev it is just fine, but on production it loses the font for some reason

#

I am using nextjs btw

north cairn
#

hey so
what i want it to do is
const runs = ["0","1", "2", "3", "4", "6"]
const x = Math.floor((Math.random() * runs.length));

now what i want it do is send a message with buttons,when the user clicks it,it should re appear.

now till the time x is not equal to 5 and user clicks the buttons,i want him to send same msg

quartz kindle
#

so you want a person to click and button, and every time they click the button, a random number is generated?

#

and the user has to click again and again until the number is 5?

slender wagon
north cairn
north cairn
quartz kindle
#

and which part are you having trouble with?

slender wagon
frosty gale
#

is it server side rendered the font?

#

also can you maybe use the react debugger to look at the actual element and compare it with dev and prod mode

slender wagon
#

seems like it's going for monospace instead

frosty gale
#

maybe its falling back because it cant load "roboto/helvetica/arial/sans serif"

#

wonder if theres a way to get a more detailed look

slender wagon
#

I got rid of monospace i was passing it accidentally with another library

#

now i gotta find where roboto is coming from

#

using this btw

north cairn
slender wagon
quartz kindle
# north cairn i alr told u

you said what you wanted to do, so i asked which part you are having trouble with, because it should be pretty easy to do what you described

sage bobcat
#

One message removed from a suspended account.

quartz kindle
#

fish

sage bobcat
#

One message removed from a suspended account.

north cairn
quartz kindle
#

then you update the message

#

you can either use the interactionCreate event for that, or you can use something like awaitMessageCompontent or whatever the library you are using supports

north cairn
#

dont get it

#

can u explain again pls

quartz kindle
#

you have the message with the button right? to detect when the button is clicked, you use either the interactionCreate event, or you use something like awaitMessageCompontent, or a collector

#

which library are you using?

north cairn
#

yea yea bro i have all that thing
user clicks the button and get the output

#

i want it to send the message again after buttonclick

quartz kindle
#

what are you using to get the button click event?

north cairn
#
   const sentMessage =  message.channel.send({ content: ` ${randomdelivery} Delivery Is Coming.`, components: [row,dsrow] });
  
     

   const filter = (interaction) =>
              interaction.user.id === message.author.id;
            const collector = message.channel.createMessageComponentCollector({
              filter,
              max: 1
            });

    
quartz kindle
#

so a collector

north cairn
#

yes sir

#
collector.on("collect", (interaction) => {```
#

this to reply

quartz kindle
#

well, you can restart the collector after sending the message

#

but thats pretty inefficient

quartz kindle
#

it would be better to use awaitMessageComponent

north cairn
#

like?

slender wagon
#

Is there a way to make custom fonts smaller so it wont affect load time as much

quartz kindle
#

something like this

let result = randomNumber or whateevr
while(result !== "5") {
  await message.edit(...);
  const button = await message.awaitMessageComponent(filter);
  result = random Number or whatever
}
#

im busy rn

north cairn
quartz kindle
#

you replace the collector

#

awaitMessageComponent is the same as a collector but it returns the result in place, and not inside a collect event

north cairn
#

so smth like

result = random
while(result  !=5)
await message.edit(same msg)
const button = await message.awaitMessageComponent(filter)```
#

but then how will i reply when user clicks button sir

#

oh doi have to do it with collected.first?

sharp geyser
#

collected.first will just give you the first thing in the collection that was collected

#

so if thats what you want sure

quartz kindle
#

you dont have a collector

#

if you use that

sharp geyser
#

Oh

deft wolf
#

button in this case is the interaction you get when the user clicks the button I guess

north cairn
#

yes

#

?

#
if (interaction.customId == "loft") {
  score = 0
  score1 = score+x
  
    if(x ===5 ) 
    {return  interaction.reply("You Are Out!")
             
    }
    else  {return interaction.reply(`${x} Runs!`) 
     
          }
                 ```
#

how do u replace this

quartz kindle
#
const interaction = await sentMessage.awaitMessageComponent(filter)
north cairn
#

then interaction.customId thing

#

?

quartz kindle
#

yes

north cairn
#

so like will it be directly written

#

or a bracket or smth

quartz kindle
#

awaitMessageComponent returns the same thing as collector.on("collect", interaction)

north cairn
quartz kindle
#

yes

north cairn
#

alr lemme try

#

i'll get back once done

#

thanks

#
no. = random
while(no.!= 5) {
no. = random
message.edit(same message)}

const interaction = await sentMessage.awaitMessageComponent(filter)
if(interaction.customId = "whatever") {
message.channel.send("whatever")
#

correct?

quartz kindle
#

be careful with while loops, you need to make sure you dont have an infinite loop

#

inside the while loop you need to regenerate the number

#

so that you guarantee that you will have no === 5 eventually

#

otherwise the loop will never finish

#

also, if you have mroe than 1 line inside the while loop, you need brackets

#
while(something)
  something

while(something) {
  something
  something
}
north cairn
#

theese are 2 while loops or one

quartz kindle
#

two examples

#

if you have only 1 line inside the loop, you can use the first example, it will work

#

but the first example will not work if you have 2+ lines inside

#
while(something)
  something
  something
``` this will not work
#

because its the same thing as this:

#
while(something) {
  something
}
something
north cairn
quartz kindle
#

no because you are not regenerating the number, so your loop is infinite

#

and you dont have brackets, so your loop only applies to the first line

#

which means it will edit the message forever and do nothing else

north cairn
quartz kindle
north cairn
#

yo man its not working
not just sending message at all

#

it says smth "last few gcs"
"fatal error: ineffective mark-compacts near heap limit allocation failed"

deft wolf
#

I'm afraid you have quite a problem with the bot

quartz kindle
#

you didnt add the random thing again like i said

#

show full code

north cairn
#
const runs = ["0","1", "2", "3", "4", "6"]
const x = Math.floor((Math.random() * runs.length));
    const y = Math.floor((Math.random() * 4));
 const z= Math.floor((Math.random() * 1));
    
    const batsmen  = ["Virat  Kohli", "Sachin Tendulkar ", "Ricky Ponting","Sanath Jayasuriya", "Rohit Sharma", "Chris Gayle"]
const randomdelivery = batsmen[Math.floor(Math.random() * batsmen.length)];
   
      

    const row = new MessageActionRow()
      .addComponents(
        new MessageButton()
          .setStyle("PRIMARY")
          .setCustomId("inswing")
          .setLabel("Inswing"),

        new MessageButton()
          .setStyle("SECONDARY")
          .setCustomId("outswing")
          .setLabel("Outswing"),

        new MessageButton()
          .setStyle("DANGER")
          .setCustomId("yorker")
          .setLabel("Yorker"))
    const dsrow = new MessageActionRow()
    .addComponents(
      
    
        new MessageButton()
        .setStyle("SUCCESS")
        .setCustomId("bouncer")
        .setLabel("Bouncer"),
        new MessageButton()
        .setStyle("SECONDARY")
        .setCustomId("fulltoss")
        .setLabel("Full Toss"),
      new MessageButton()
      .setStyle("DANGER")
      .setCustomId("wide")
      .setLabel("Wide Yorker"),
       
      );


    const sentMessage =  message.channel.send({ content: ` ${randomdelivery}  Is Batting.Click To Bowl `, components: [row,dsrow] });
  
     
while(x!=5)
  {message.edit({content: ` ${randomdelivery}  Is Batting.Click To Bowl `, components: [row,dsrow] })}
    const interaction = await sentMessage.awaitMessageComponent(filter)

  if (interaction.customId == "inswing") {
  score = 0
  score1 = score+x
  
    if(x ===5 ) 
    {return  interaction.reply("Batsmen Is Out!")
             
    }
    else  {return interaction.reply(`${x} Runs!`) 
     
          }
                         
   

  
  





}
earnest phoenix
sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

north cairn
#

still waiting for mistakes

frosty gale
sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

north cairn
#

yea so my mistake?

sage bobcat
#

One message removed from a suspended account.

north cairn
#

yea yea thanks

#

so mistake?

lyric mountain
#

also Math.floor(Math.random() * 1) will always be 0

#

for truncating a value use | 0 instead of floor, it's much faster (only applies to js)

#

like (Math.random() * 4) | 0

frosty gale
frosty gale
#

thats like a js equivalent of casting float to int in c/c++

lyric mountain
#

yep

#

found about it last time I was competing against tim and ben for the fastest algo

#

it's insanely faster than using floor

oak vector
#

hoi

#

guys

frosty gale
#

hoi

oak vector
#

@frosty gale hey

frosty gale
#

hi

eternal osprey
#

hey guys. I recently wanted to step up my front end skills (html, css, js). Does anyone know any good course online with exercises, videos and a good roadmap? I am willing to pay like 100$ or sum

#

the reason why i want such a bootcamp/course is because i am unsure of what content to learn, how much time to devote to it etc

lyric mountain
#

codecademy and mozilla foundation are great too

#

ofc no payment involved

tulip ledge
#

My code works fine on my local machine, but when building and pushing to production and then running the command I get this error and have no clue how I would fix it.

node:fs:2533
      handleErrorFromBinding(ctx);
      ^
Error: ENOENT: no such file or directory, lstat '/home/container/src'
    at Object.realpathSync (node:fs:2533:7)
    at registerFont (/home/container/node_modules/canvas/index.js:48:34)
    at getHexagonGraph (/home/container/util/helperFunctions.js:64:31)
    at PingCommand.showPokemon (/home/container/commands/Statistics/viewpokemon.js:75:63)
    at PingCommand.<anonymous> (/home/container/commands/Statistics/viewpokemon.js:71:18)
    at Generator.next (<anonymous>)
    at /home/container/commands/Statistics/viewpokemon.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/home/container/commands/Statistics/viewpokemon.js:4:12)
    at PingCommand.run (/home/container/commands/Statistics/viewpokemon.js:57:16) {
  errno: -2,
  syscall: 'lstat',
  code: 'ENOENT',
  path: '/home/container/src'
}
rustic nova
#

/home/container/src doesn't exist

tulip ledge
#

oh wait yeah it indeed does not exist

#

haha

#

my bad

#

I thought-

#

nvm

daring abyss
#

๐Ÿ‘‹ Our bot has been stuck in pending for verification for two weeks now, is there a way to re-apply? Apologies if this is the wrong channel to ask in.

deft wolf
#

You can't use mod tags

warm surge
#

damn

deft wolf
#

But you can link message with embed I guess

eternal osprey
#

like i know html, css, and mainly node.js and backend part of js. However... what to do fruther?

#

I am basically an indecisive bitch

neon leaf
#

make some kind of project

#

best way of learning

#

make sure to do something youve not really done before though

#

like 30% new stuff

#

rest old so you dont get frustrated

eternal osprey
#

Just gotta look into front end js now

lyric mountain
eternal osprey
#

might have to check it out then.

#

I mean I spent a few weeks doing static html and css, will continue it for a week and then move on to js for a month or 2. After that bootstrap and react would be the way to go right?

#

maybe tree.js as well, or animate.js

quartz kindle
#

those are all very specific things, its not necessarily the way to go unless you actually want to learn them

#

like react for example, yes its popular and there is a lot of demand for it, but there are dozens of other frameworks out there you can chose from that are not react, as well as everything react does you can do without it

#

so go there if you like it or feel like it, otherwise there is no need

eternal osprey
frosty gale
#

i find react a tiny bit bloated and overcomplicates simple projects so i stick with vanilla js/html

lyric mountain
#

personally I liked flutter

eternal osprey
#

haven't seen lots of jobs that only want you to know js, hrml, css

lyric mountain
#

forced formatting apart, it's kinda better than react in a sense

frosty gale
#

svelte looks kinda cool but isnt as popular hence less support

eternal osprey
#

thanks for all the advice guys, i guess i will just stick with html, css and js and that's it. Might learn some frameworks later on.

frosty gale
#

love how basic it is while embracing the html/js style

lyric mountain
#

w3 is quite comprehensive if u don't judge a site by its "fanciness"

#

(like battle)

frosty gale
#

battleless ๐Ÿ˜ข

lyric mountain
#

they were there since the start of the internet, will probably be there till the end of it

eternal osprey
#

What's Haskell used for?

lyric mountain
#

bless you

eternal osprey
#

๐Ÿ˜ญ

#

is it hard

frosty gale
#

its weird

eternal osprey
#

fuck my life

frosty gale
#

why?

#

are you locked into haskell for whatever reason

eternal osprey
#

๐Ÿ˜ญ this looks nothing like java, c++, js or whatever other language

lyric mountain
#

well, haskell aint a c descendant

eternal osprey
eternal osprey
#

But js isn't, and to be fair i find js similar to java to a certain extent

#

like the object class methods that are inherited such as equals, tostring, map etc

lyric mountain
#

js is a c descendant

eternal osprey
#

HUUH

#

really

lyric mountain
#

yes, you can identify which are by looking at the syntax

eternal osprey
#

owhh that's pretty cool ain't gonna lie

frosty gale
#

idk volt said so but I have some doubts

#

regardless

lyric mountain
#

there's a reason they're called c-like

frosty gale
eternal osprey
#

i really like these courses but tbh i feel like it ain't enough. In computing science we don't really go in depth. We finish a langauage within 2 months, which leaves us in a weird spot between knowing a language and being good at the language. I wished they went a bit more in depth.

lyric mountain
#

courses are supposed to teach you how to learn

#

not how to code

#

which is why people think college teaches nothing

eternal osprey
#

that's why i try to better myself in html, css, js (especially js) so that i atleast can be good at one language lmao

eternal osprey
lyric mountain
#

try to make some mini projects, increasingly difficult

#

like, make an agar-io

#

or a r/place-like site

eternal osprey
#

the theoretical part is fun tho, and in my opinion college brings experiences you wouldn't get on your own.']

eternal osprey
#

Then i will create as many projects as possible.

lyric mountain
#

also remember u can fiddle with html on the browser

eternal osprey
#

I mean i already have 2 years of experience with js, but mainly node.js.

#

i already made some cool html css designs btw. Do you want to check it out? Hollup lemme get some pictures

#

i talk a lot but it's because this shit gets me hyped

#

i made a one pager (the white one) that eventually on scroll snaps to the red page, and then into the blue.

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

deft wolf
#

Mad man

scenic kelp
#

I FUCKING LOVE SVELTE

#

frontend is FUN with svelte

wheat mesa
real rose
#

highly likely

spark flint
#

or

#

what about

real rose
#

topgg status bot, online online when the site is

spark flint
#

online = site online
dnd = site down

real rose
#

i rate it

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

rustic nova
#

le decline

spark flint
#

wtf

#

brb

#

contacting ntts

#

mod bias !!!

rustic nova
#

its approval was all the way back in 2021 KEKW

spark flint
#

lol

frosty gale
scenic kelp
#

yuuuuh

earnest phoenix
#

Hello, how are you all, one question, how do I get this or how do I get this? someone answer me

earnest phoenix
#

me bot

solemn latch
earnest phoenix
rustic nova
#

-servercount

gilded plankBOT
gaunt echo
#

dpy, sqlite dont create a tables,help plz (create a db file and nothing)

gaunt echo
rustic nova
#

no

gaunt echo
earnest phoenix
#

i know its possible to create a speech recognizing bot that responds on a voice command but is it yet possible for the bot to directly respond in the vc itself, for example: asking the bot in vc to search for a meaning of the word, the bot could reply in the vc itself as like Google Asst. does?

wheat mesa
#

Sure you could do that

#

I imagine it would be annoyingly difficult, but not impossible

hidden moth
#

can i do this?

lament rock
#

Your bot has to be verified by Discord to get suggestions like that

deft wolf
#

Yea, can confirm

#

It's cool, but it's a shame that as a developer you don't have much control over it

spark flint
#

Itโ€™s also automatic

earnest phoenix
sour fractal
#

My bot got rejected because its commands were not showing in the slash command tab, why is that? The bot is in 5 other servers and it works normally

deft wolf
#

Even with this permission there is no commands

#

So he programmed something wrong

sour fractal
#

is there a reason for it to work on other servers then?

#

I really dont know where I messed up

frosty gale
#

pretty sure topgg adds this automatically when invited to verification server

frosty gale
#

if your commands do show up then the reviewer might have messed up

deft wolf
#

They don't show up, I checked that

frosty gale
#

๐Ÿ’€

deft wolf
#

So it's valid decline

#

Question is: why they don't show up

frosty gale
#

probably cleared his commands using the api accidentally

#

but because of cache theyre still showing up in existing servers?

deft wolf
#

Imagine what would happen if instead of creating global commands, the bot would create commands on each server separately

#

Oh, now they working

#

Just like the bot got online

#

Sus, not gonna lie

#

This is strange because even though the bot is online and I added it to the new server, the commands did not appear, but they appeared on the previous one after it was turned on. That's not how global commands work i guess

eternal osprey
#

Ive done node.js for around 2 years now. Would I be able to learn the dom part of ja within a month?

#

Like, I already know about objects, arrays, async and await, callbacks, functions, you name it.

#

Cuz I had one guy who told me that even if I knew how to work around node.js and packages, apis, I would still need to spend atleast 6 months learning the dom part..?

sage bobcat
lyric mountain
#

with node u work as a standalone language, but for html you'll use it more as a scripting language (as it was supposed to be)

#

it's by no means hard or complicated, just that you need to remember you're going to use mostly functions that'll be called by html events

#

with very little autonomy on the js side

eternal osprey
#

yeah i've already did quite some projects

#

i know how to for example change the style of an element, how to call it, how i can fetch an api or file etc.

#

thanks! Will just give it a go \0/

sour fractal
rustic nova
#

does your scope also have "create slash commands"

deft wolf
#

It's not the permission's fault. I added your bot with the same permissions as my bot. Your commands are most likely not even global

#

They show up after you put your bot online

#

Even when you add offline bot global commands show up anyways

green kestrel
#

I'm thinking of changing my cookie notice to say that my website uses biscuits

#

because it's a .co.uk site

#

what do you think?

#

I'm betting someone wouldn't find it funny

sour fractal
#

can you test it again real quick please?

#

kick it then re-add it

deft wolf
#

Now they working

sour fractal
#

tysm man

frosty gale
eternal osprey
#
.left_container{
    background-color: red;
    display: grid;
    grid-template-columns: 10vw 10vw;
    column-gap: 10px;
    row-gap: 20px;
    height: 100vh;
    width: 30vw;
}
.inner_container{
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #3363b1;
    height: 10vh;
    cursor:pointer
}```

```html

<div class = "left_container">
    <div id = "container_1" class = "inner_container">
<i class="fa fa-calculator" aria-hidden="true"></i>
    </div>
    <div id = "container_2" class="inner_container">
<i class="fa-solid fa-house"></i>
    </div>
    <div id = "container_3" class="inner_container">
<i class="fa-solid fa-money-bill"></i>
    </div>
    <div id = "container_4" class="inner_container">
<i class="fa-solid fa-temperature-three-quarters"></i>
</div>
<div id = "container_5" class="inner_container">
    <i class="fa-solid fa-coins"></i>
</div>
    </div>```
why is it displaying with so many spaces?
#

like, the row-gap

#

found it

#

so apparently i stretched the container a bit too much

#

by setting its height

frosty gale
#

average flexbox and cssgrid experience

weary ridge
#

i feel like front end should be easy and back-end should be hard but its the reverse just what is this logic

lyric mountain
#

easy and hard are relative

#

also, there's no "logic" in those snippets, they aren't executable code

plucky quail
#

A rarity command and a vote reward command

#

Anyone know how I can appeal this?

craggy pine
#

#support but mainly dm the mod who declined it

lyric mountain
plucky quail
lyric mountain
#

total

plucky quail
#

Hold on

plucky quail
lyric mountain
#

then it's a valid denial

#

u need at least 8 unique commands

#

51% that is

plucky quail
#

Another dex bot got approved for 0

plucky quail
lyric mountain
plucky quail
#

MemeDex

#

I know the owner

#

Heโ€™s toxic AFFF

#

but the bots been dead for a month so. Canโ€™t be proved. But it has no new things

deft wolf
#

Okey

#

But like, what does that have to do with us?

plucky quail
#

Well

#

It should be taken off

#

As itโ€™s a exact ballsdex clone

deft wolf
#

Go ahead, anyone can report any bot

#

But this is even more toxic behavior

#

"My bot hasn't been approved, other bots can't be either"

#

It's such childish behavior

plucky quail
#

Iโ€™m not like that

#

And I did ask for it to be taken down before. And it wasnโ€™t declined that time. Well I applied but made it private and I tried to delete the request but wouldnโ€™t let me

eternal osprey
#

is it possible to get a grid like structure, but then using flex... i hate fucking grid.

plucky quail
#

Iโ€™m not gonna give you a life lesson but you shouldnโ€™t go and judge people before you know them Iโ€™m just trying to help. And while I was talking to a admin or whatever there called of top.gg I was gonna see what they could do. What do you not want them to have a safe platform?

eternal osprey
#

that's the most salty thing you can do

plucky quail
#

For it being against rules

deft wolf
#

For what reason?

eternal osprey
#

nah i am really sorry but you are that type of girl/guy that would remind the teacher to give out homework

plucky quail
#

Ballsdex fork

eternal osprey
#

so... you reported a bot for being a fork of ballsdex, and you then tried to get your own fork approved?

deft wolf
#

I love discord dramas

eternal osprey
#

first of all please talk w/o those gifs. It's childish and annoying to read through.

deft wolf
#

Especially those related to bots

plucky quail
#

Iโ€™m just trying to help top.gg

#

I didnโ€™t even report it

#

I was talking to a admin or whatever there called of top.gg

eternal osprey
plucky quail
#

Did then not now

eternal osprey
#

okay,

#

anyways, anyone that knows how to use a flexbox instead of a grid to display a grid like structure?

#

like element element
element element

rustic nova
#

display: flex

eternal osprey
#

yeah

#

but

slender wagon
rustic nova
eternal osprey
#

one part would be flex: row, other column or..?

rustic nova
#

row if you want it to go like:

element element element element

though if you want it to continue in the next row, consider doing flex wrap

#

this would cause

element element
element element

if the space is not enough/too small

eternal osprey
#

yeah what i initially thought, but that's only if the space is too small

#

yeah

#

so that means i should prob limit the width of my flexbox ig?

#

making it small such that only 2 elements fit in.

#

oehh that's hot af

#

whenever i use grid

#

ffs it's just ripping the structure apart for somre reason

#
.calc_buttons{
    width: 7vw;
    height: 5vh;
    background-color:#3B71CA;
    font-size:14px;
    border:none;
    color:white;
    cursor:pointer;
}```

```css
.right_container{
    flex-wrap:wrap;
    display:grid;
    grid-template-columns: 100px 100px 100px 100px;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0px;
    left: 30vw;
    right:0px;
    bottom: 0px;
}
rustic nova
#

if you have certain elements that are important, just nest them

#

thats the behaviour with flexbox

#

you forgot the flex direction

eternal osprey
#

yeah i know that, but look at the code

#

right_container is a grid

#

also, flexboxes don't need a direction set

rustic nova
#

you cant do that

eternal osprey
#

it defaults to row

rustic nova
#

you cant use flex-wrap when you dont display a flex

eternal osprey
#

oowh yeah forgot to remove it

rustic nova
#

you need to set it as display flex

#

thats plain html what you're doing, right?

eternal osprey
#

no this is css rn

rustic nova
#

plain html/css yes

eternal osprey
#

yeah

eternal osprey
#

It basically adds a column gap to each element that's really big and idk why.

rustic nova
#

lemme start a quick webserver, sec

eternal osprey
#

alr

#

so i know why it happens.

#

because of the position relative

#

but unsure as of why.

rustic nova
#

I am confused on why you're setting positions

#

the top left right etc

eternal osprey
#

will send you an ss

#

one sec

#

trying to get that div right_container more to the right, so that it only stays in the white background part.

rustic nova
#

is that your goal?

eternal osprey
#

set position: fixed and see what happens

eternal osprey
rustic nova
#

I dont need fixed in that case

#

why do you need fixed?