#development
1 messages ยท Page 152 of 1
xD
One message removed from a suspended account.
i got 5 years of text on a guy
or even more
so text lenght isnt a problem
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.
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
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.
well i could if had acces to chat logs
then i could read every message you got in this server
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.
One message removed from a suspended account.
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.
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.
One message removed from a suspended account.
no?
One message removed from a suspended account.
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
One message removed from a suspended account.
One message removed from a suspended account.
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>```
wikipedia always manages to have the most overcomplicated explanations on earth
One message removed from a suspended account.
One message removed from a suspended account.
ok
One message removed from a suspended account.
๐ญ๐ญ๐ญ๐ญ๐ญ๐ญ
only a little bit
<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
One message removed from a suspended account.
One message removed from a suspended account.
i know its used to generate sentences which look like they make sense at first but actually dont so im trying to understand it from that perspective
One message removed from a suspended account.
i fixed what he needed no need for that
One message removed from a suspended account.
One message removed from a suspended account.
nopei want the stuff to be in the middle of the card but at the same time the form name to stay on the left of the input not also centered
One message removed from a suspended account.
you want card to be centered but not the things inside?
One message removed from a suspended account.
the things inside to be centered in the middle of the card
thats pretty cool actually
and card to stay in place?
so it kinda attempts to predict the next word based on existing words that are based on weights from your sentences?
yea yea card is fine dw about that
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.
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?
let me try
One message removed from a suspended account.
jsut like thaat one python librarie that lets you make a chat bot if you train it

the librarie is called chatter bot or smth like that
my brain is freezing i hate frontend ngl
gonna try smth 1 sec
how did you collect your messages by the way
did you get a bot to go through them and add them or
like your existing ones on discord
i my bot is a secret spy
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>
btw its the FormControl thats fking things up
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
if i make the width 100%, it looks centered, but its bulky like that i would say
use what i gave you
lol๐ trust me, i tried everything, fking frontend is annoying
just gonna use 100% width
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
it looks goo like this just make the space between the title on the purple buttons lower
why do i feel like you love markovs
Multi Purpose nft related bot
One message removed from a suspended account.
Hmm
One message removed from a suspended account.
Seems intresting
๐ซก
One message removed from a suspended account.
hey any one with some good anime recommandations?
One message removed from a suspended account.
So wanna share some knowledge with me also
anything im down for everything
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
watched all of them sadly
@sage bobcat hmm so wanna become friends ?
how cassandra manages millions of discord messages per second
sus
One message removed from a suspended account.
how do you get that role?
Which ??
One message removed from a suspended account.
oh so i got it without even knowing
One message removed from a suspended account.
It's about monitoring projects
he curses at you if you dont finish in time?
One message removed from a suspended account.
Who ?? And what do u meant
Actually it makes projects of repl, gltich, dom, etc webs
24/7 online
But monitoring
looks complicated
i just made an all in 1 bot thaat got everything i could imagine in it
I have 3 bots
1st all in one
One message removed from a suspended account.
2nd lyric bot - music bot
idc its just for my small community
noice
One message removed from a suspended account.
One message removed from a suspended account.
to post it in acheivements channel i guess
me
@oak vector what features were in your first bot
@sage bobcat what bot have you develloped
One message removed from a suspended account.
idc what was your first accepted bot?
One message removed from a suspended account.
bruh
true, u gotta try a specific niche, i started with a multi purpose bot which barley had 10 servers, then i went to an nft related bot which soon will be verified
u can check on top.gg btw
One message removed from a suspended account.
One message removed from a suspended account.
exactly lol
One message removed from a suspended account.
wait what how is your this your id or thats your 2nd acc?
https://top.gg/bot/767047933572022294
this one just got 4 simple commands
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
ah but if i copy user id it also shows u lol
well-optimized code
One message removed from a suspended account.
not really
oh cool didnt know that
imma invite the bot and check it out
One message removed from a suspended account.
how would you know?
i watched a 36 minutes video about a video of how discord manages millions of messages per second
optimize ur code for the long run then its easy
...36 minutes
its the way how they manage the data
Its ur bot ?
One message removed from a suspended account.
int here servers
One message removed from a suspended account.
it's fairly easy to handle millions of events per second if you know how to write efficient code
One message removed from a suspended account.
yeah but discord security is shit honestly, 2fa is useless ๐
..
๐ฏ
Its in 186 servers
also moving away from single-threaded langs gives u a lot of room for processing
@sage bobcat there are some sus command in there
One message removed from a suspended account.
true, what do you personally use?
java
One message removed from a suspended account.
why is there a PP comand
One message removed from a suspended account.
Hmm late for bot dev badge
One message removed from a suspended account.
did u start your bot with java or u migrated to java? and if u migrated was it easy?
I keep a thread pool exclusive to events, while everything else (commands, sched actions, db operations, etc) is ran on another pool
One message removed from a suspended account.
dang
technically I started with js, but that was way before I got the handle of java
couldn't say that I "started" tho, the bot was barebones
why do poeple always just make each command in a separate file like i dont see any advantages to it
the actual usable version of my bot was started in java
I use js & html sometimes python
organization
One message removed from a suspended account.
i got 1 file that has 3.5k lines and an other with 1.5k and that's all i need
One message removed from a suspended account.
i got it organised
migrating from js -> java is somewhat easy, as most you'd have to do is adding types and access modifiers
i can find any command i need easily
it's easier if u go js -> groovy tho, as both are dynamically typed
oh cool cool, might move to java later this year
One message removed from a suspended account.
anyone knows perl here?
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
however it gets harder to scale such codebase
One message removed from a suspended account.
nor really
also there's an upper limit on how big a file can be
the soft cap starts around 1m lines
honestly i would spread it onto multiple files to make it more organized and more readable
One message removed from a suspended account.
One message removed from a suspended account.

there's a very high chance that whatever u use is also available for java
anyone have experience with digitalocean & vultr and which is generally better?
unless it's is-even
i do that & i have the functions that i use most of the time in other files too so i dont have to have the same code in multiple files, this makes it easier to update for the long run
digital ocean if you're brand new to the field
im not
One message removed from a suspended account.
i dont think so, anyways should be simple the packages that i use are mostly api calls just organized so should be simple
what ive seen is that digitalocean has a nicer interface but vultr has better cpu performance
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
but idk if its that impactful
probably but i wont woryy about that rn imma let future me worry about it
feel free to ask if u need help with something
future you, wont like it lol
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
i was there, i had to re write my own code like 3 times till its organized and easy to maintain & it wasnt fun to re write same shit multiple times
i switched from slash command to prefix command since i had limitations so it wont be a probelm to switch everthing to a new file
this time I'm making sure I don't leave bugs alive however small they are
thanks ๐ซก ! will do once i migrate
and that no shortcuts were taken
Hmm
same i dont finish until its 100% proof and put everything in 1 file : )
One message removed from a suspended account.

look how small my command file is, like that i could use it in both prefix and slash command(this is the slash command file), and if i ever need to update the code i just update the function easily
i use python so i use less lines for same thing
less lines isn't technically better
doesnt mean its better
for me yes
One message removed from a suspended account.
how easy can u make the same command for slash & prefix
i focuse in code golfing more than the important thing
it takes 1 min out of my life, u will have to rewrite the code for both of them
One message removed from a suspended account.
One message removed from a suspended account.
large golf field 
if you saw how many commands i had you would understand
its a all in 1 bot
every idea that pops in my mind i put it in
and I suppose no command handler
yep
my bot is unique, le multipurpose
One message removed from a suspended account.
did u write a if-else chain for each command?
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
๐
no i have a command handler
One message removed from a suspended account.
One message removed from a suspended account.
i have a 5k line .d.ts file :^)
@rustic nova How many days taken to accept u as bot reviewer ? Even i also had applied for it
i didnt get what ha was saying at first
I have a uhhh...big file
tell us
you have a big filรฉ
One message removed from a suspended account.
One message removed from a suspended account.
they review applications every few months
Leave that how u got open source contributer role ??
And how can i also get it
only
it just gives me access to chat in #topgg-open-source about the open source stuff
which is not often
Become cool I can also give it
yeah, not really big given my whole bot is nearing half a million lines total
you will only get the role if you contribute to something on the github
bruh what does that bot even do
and you probably won't get the role if you are doing it just FOR the role
multipurpose bot + actual tcg
Np
One message removed from a suspended account.
Yes for role but i have done to help other beginners
every single card has a snippet of code embedded in it
One message removed from a suspended account.
One message removed from a suspended account.
bot name?
shiro, no its not in english (yet)
what language?
portuguese
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
i know spanish i think they're close enought
KuuHaKu, do you know how to fix tsserver sometimes taking up to 8min for intellisense? I gave it 6gb ram
the rewrite is taking a lot of time cuz I'm too lazy to convert the damn 2k cards to the new engine
wait inst shiro the guy from no game no life
I have to go for my collage lectures
tsserver?
yes
for running TS?
the language server for js and ts
โน๏ธ
so that you can get intellisense
well, 8min is a lot, did u exclude the folder from antivirus?
yes
x64 I suppose?
amd64 if you mean that, yes
hm, the processor maybe? is it getting close to 100% often?
the tsserver is there or local?
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
well my internet should definitely handle that though
I could understand like 10sec latency
but not 8min
tim would be more appropriate for helping with this
@quartz kindle ><
If u are rewriting rn why dont u add english support while rewriting it
I am
Ah wonderful
the only parts that still need translation are the card descriptions
Are u just using google translate or u got someone to do the translations?
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
in djs v14, how would i not reply to an interaction at all?
I just don't want those stupid interaction failed shit
then i get the interaction failed
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)
it's a button.
Defer update no?
really, so interaction.acknowledge()? Seems reasonable to me.
all i know is deferReply(), but that results in the annoying thinking...
^ ye i knew it was something like that
that's hot asf never knew that
can i still use editReply after deffering?
deferring
I believe so
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
I usually have a nice little editOrReply function that I write
what is the algo for this search query rank:
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
pagerank
jk topgg would never add such a complex algorithm
๐
(its not even relevant in this case)
ofc
how come the bot isnt finding the channel even after i fetch all channels before checking (the channel exists) (discord.js v13)
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
still doesnโt work
Another thought, this sometimes wont work right?
wdym
usernames can be longer than the max char length of a channel
Even without the buddy-
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
Is this like an assigned channel thing?
Most bots use a database to figure out what channel belongs to what user, not their username.
yeah this is just assigned channel so Iโm not using a database
I can just put their ID in the topic probs
Hoi
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?
You mean slash commands?
Yeah, he means something similar to user or channel ping
I guess it was </command_name:command_id>
But I don't remember exactly
do yall still use filezilla
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
on my windows i use filezilla and putty
it's a nice combo but i feel like i can do better
I honestly don't know if it matters that much. I just like WinSCP better when it comes to the interface
hi
Yo
How can I get the id of the command?
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
Thanks
Hi
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.
@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
chatgpt isnt 100% reliable
yeah i want to learn tho
i don't really gain anything useful when using chatgpt
more like 60% or so
So use https://bard.google.com/
@eternal osprey similar to chatgpt
The ai powered by google
Itself
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
you don't understand me. I want to learn, i cannot only focus and rely on using ai powered tools to do the work. I want to eventually land a job as a developer, and for that i must do things myself.
wdym?
Hmm so i would recommend to use memo app
An best app for beginner learner
prod, he wants to learn through problem-solving
if u dont struggle u dont develop your programming skills
Yea memo gives questions also
he's not a beginner
nothing replaces real problems
Hmm
One message removed from a suspended account.
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.
mobile will be vertical, as the aspect ratio < 1
aww this is the best compliment i've had so far, thank you
so there'll be no empty space on the right
your best option would be to use flexbox and let it adjust placement automatically
One message removed from a suspended account.
a popup
sirry i showed wrong code. So i actually use right: 30%.
this is the outcome (for mobile)
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.
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)
I think so, it's the only option u have
alrighty thank you, so would you think it's. good practice to have all mobile designs top to bottom?
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
owhhh i see, i used a bootstrap css chart that i found
kuu you are the best, thank you for all the help
yw
is the kuu objectively the best, or subjectively the best?
you have to ask these questions
guys got any ideas i could add to my bot
Wait for feedback from your bot users
Alternatively, find a similar bot and read their suggestions and try to add it to yours
i dont think there is a similar bot to mine
how to add this type of reaction
You mean buttons?
It's very old, I don't know how you didn't find it before
But yes, this is what you need to read - https://discordjs.guide/message-components/buttons.html#building-buttons
Ofc if you use discord.js
no i used discord.py
webhooks are annoying to set up fr fr
yes
you can add buttons to the view https://discordpy.readthedocs.io/en/stable/interactions/api.html#discord.ui.Button
@nocturne flint https://http.cat/
Both
Alright. No need to get too crazy over cats
Hi all
hoi
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
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
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?
Why are your numbers strings?
not exactly numbers but a message
yea that is why x is defined as math.random
and which part are you having trouble with?
anyone faced an issue like this before?
might be some weird optimisation issue where nextjs is breaking it unintentionally maybe
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
I am seeing this in production
seems like it's going for monospace instead
maybe its falling back because it cant load "roboto/helvetica/arial/sans serif"
wonder if theres a way to get a more detailed look
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
i alr told u
found the issue, apperantly i had to override typohraphy
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
One message removed from a suspended account.
fish
One message removed from a suspended account.
i am troubling with that loop part only
i have made buttons and all
just cant figure out how to send message again and again(if button clicked and no. is not 5)
you listen to the intraction event and detect the button
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
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?
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
what are you using to get the button click event?
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
});
so a collector
well, you can restart the collector after sending the message
but thats pretty inefficient
like?
it would be better to use awaitMessageComponent
like?
Is there a way to make custom fonts smaller so it wont affect load time as much
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
all that in filter thing or collector on
you replace the collector
awaitMessageComponent is the same as a collector but it returns the result in place, and not inside a collect event
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?
collected.first will just give you the first thing in the collection that was collected
so if thats what you want sure
there is no collected
you dont have a collector
if you use that
button in this case is the interaction you get when the user clicks the button I guess
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
const interaction = await sentMessage.awaitMessageComponent(filter)
yes
awaitMessageComponent returns the same thing as collector.on("collect", interaction)
so after this
i cna directly continue with if(interaction.customId?
yes
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?
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
}
theese are 2 while loops or one
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
ok so firstof all,this is correct?
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
so i have to random thing again?
now??
yes
is this correct?
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"
I'm afraid you have quite a problem with the bot
that means you have an infinite loop
you didnt add the random thing again like i said
show full code
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!`)
}
}
What is that formatting? ๐
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.
still waiting for mistakes
blud codes in notepad (insert 4k spinning skull APNG here)
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
yea so my mistake?
One message removed from a suspended account.
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
and Math.random() * 1 will always just be Math.random() ๐ญ
interesting pretty cool didnt know that
thats like a js equivalent of casting float to int in c/c++
yep
found about it last time I was competing against tim and ben for the fastest algo
it's insanely faster than using floor
hoi
@frosty gale hey
hi
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
for the html5 kit, w3schools is the way
codecademy and mozilla foundation are great too
ofc no payment involved
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'
}
/home/container/src doesn't exist
๐ 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.
-notified
-notified
bruh
You can't use mod tags
damn
But you can link message with embed I guess
answer is in here โ> #support message
they don't really have a roadmap like paid courses tho
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
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
I have made like 10 professional looking websites so far. Learned to make them responsive as well.
Just gotta look into front end js now
They do, at least the last time I checked
Oowhh really?
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
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
yeah indeed that's true, but like most modern job etc require all fancy js frameworks
i find react a tiny bit bloated and overcomplicates simple projects so i stick with vanilla js/html
personally I liked flutter
haven't seen lots of jobs that only want you to know js, hrml, css
forced formatting apart, it's kinda better than react in a sense
svelte looks kinda cool but isnt as popular hence less support
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.
love how basic it is while embracing the html/js style
w3 is quite comprehensive if u don't judge a site by its "fanciness"
(like battle)
battleless ๐ข
they were there since the start of the internet, will probably be there till the end of it
What's Haskell used for?
bless you
its weird
fuck my life
๐ญ this looks nothing like java, c++, js or whatever other language
well, haskell aint a c descendant
it's for my next semester after the summer vacation
yeah true, java is right?
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
js is a c descendant
yes, you can identify which are by looking at the syntax
owhh that's pretty cool ain't gonna lie
there's a reason they're called c-like
looks like the reincarnation of the devil in code form to me
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.
courses are supposed to teach you how to learn
not how to code
which is why people think college teaches nothing
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
yeah true
try to make some mini projects, increasingly difficult
like, make an agar-io
or a r/place-like site
the theoretical part is fun tho, and in my opinion college brings experiences you wouldn't get on your own.']
oehh that's really cool. I will start a js course in about 3 days once i've completed revising html and css.
Then i will create as many projects as possible.
also remember u can fiddle with html on the browser
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.
One message removed from a suspended account.
One message removed from a suspended account.
Mad man
SVELTE MENTIONED ๐ช
I FUCKING LOVE SVELTE
frontend is FUN with svelte
Yeah most mainstream languages are C descendants of some variety
we'd decline the bot for being offline
highly likely

topgg status bot, online online when the site is
online = site online
dnd = site down
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
le decline
wtf
brb
contacting ntts
mod bias !!!
lol
your page does indeed suggest that
yuuuuh
Hello, how are you all, one question, how do I get this or how do I get this? someone answer me
Do you want to get the server count of a bot on the website programmatically or do you want to post your bot's server count to Top.gg?
me bot
spanish o english
Lmao I was about to send it
I want to obtain for my bot that is to be seen on the website
where can i see that
-servercount
To have your bot's server count displayed on Top.gg, please read the documentation on server/shard posting.
dpy, sqlite dont create a tables,help plz (create a db file and nothing)
sorry for ping, u can help, if i interfere you
no
np
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?
Sure you could do that
I imagine it would be annoyingly difficult, but not impossible
can i do this?
Your bot has to be verified by Discord to get suggestions like that
Yea, can confirm
It's cool, but it's a shame that as a developer you don't have much control over it
Itโs also automatic
if you have any details abt that lemme know, i'm currently trying to figure it out.
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
is there a reason for it to work on other servers then?
I really dont know where I messed up
pretty sure topgg adds this automatically when invited to verification server
can you try make a new discord server and invite your bot to it without admin?
if your commands do show up then the reviewer might have messed up
They don't show up, I checked that
๐
probably cleared his commands using the api accidentally
but because of cache theyre still showing up in existing servers?
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
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..?
One message removed from a suspended account.
it's...different
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
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/
How do I diagnose the issue? The bot has only the necessary permissions in the invite link
does your scope also have "create slash commands"
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
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
I think I managed to fix it. I was using onGuildReady events to handle the commands, now Im using onReady to make it global
can you test it again real quick please?
kick it then re-add it
Now they working
tysm man
lawyer says no unless you clarify you are referring to cookies in the prompt because biscuits and "cookies" are strictly not the same thing website speaking
โ ๏ธ
.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
average flexbox and cssgrid experience
i feel like front end should be easy and back-end should be hard but its the reverse just what is this logic
easy and hard are relative
also, there's no "logic" in those snippets, they aren't executable code
#mod-logs message it has its own features lol
A rarity command and a vote reward command
Anyone know how I can appeal this?
how many commands the bot has overall?
Over over all? Or ones ballsdex donโt have?
total
Hold on
15
Thereโs nothing that needs to be added to be fair
doubt it
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
Nothing
Well
It should be taken off
As itโs a exact ballsdex clone
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
Nope
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
is it possible to get a grid like structure, but then using flex... i hate fucking grid.
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?
why the fuck would you report another one's bot ๐ญ
that's the most salty thing you can do
For what reason?
nah i am really sorry but you are that type of girl/guy that would remind the teacher to give out homework
Ballsdex fork
I fucking hate homework
so... you reported a bot for being a fork of ballsdex, and you then tried to get your own fork approved?
My own has its own commands
I love discord dramas
first of all please talk w/o those gifs. It's childish and annoying to read through.
Especially those related to bots
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

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
display: flex
Stop flexing bruh

one part would be flex: row, other column or..?
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
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;
}
if you have certain elements that are important, just nest them
thats the behaviour with flexbox
you forgot the flex direction
yeah i know that, but look at the code
right_container is a grid
also, flexboxes don't need a direction set
you cant do that
it defaults to row
you cant use flex-wrap when you dont display a flex
oowh yeah forgot to remove it
no this is css rn
plain html/css yes
yeah
but it's not that conveniet to create a grid like structure using flex. Better just use grid, but it gives me above problem.
It basically adds a column gap to each element that's really big and idk why.
lemme start a quick webserver, sec
alr
so i know why it happens.
because of the position relative
but unsure as of why.
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.
set position: fixed and see what happens
yeah


