#development
1 messages Β· Page 1794 of 1
the emoji should be written as :emoji:
why tf wont discord let me type normally
<emoji:1234>
there
put an extra colon after the first <
okay i will try
i know python but i cant understand
discord.py docs
find root filesystem or simiΓΆar
?
Hey
Yep
@restive furnace after some searching through google i found out that i need to set the mount point as /
but now it says there is no efi system partition
Gparted says i cant create more than four partitions so is it safe to use the windows one?
what stuff do i need to change?
i set it as efi then pressed install
gave me a warning about wiping sda4 but i dont need it anyways
@restive furnace
hmm weird
ngl i haven't dual booted with windows ever
so
you prob better to aks someone else who has
what better person than @quartz kindle
nothing is working
the error message isnt going away
but everything else outside of the installer is fine
im pressing ctrl alt delete
which option did you chose?
From gparted or from the installer?
Can i use sda4 for the ext4 / one?
Yeah
you can try giving 18gb to sda4 as ext4 and / as mount point
and 2gb to sda5 as swap
Is that enough to install flutter?
yes
π great screenshots
wtf happened to the camera lmao
lmao
this ones good
its easier and faster to delete it first
and then create 2 separate partitions
than to resize
resizing is slow
and not needed if you dont have any data
if only windows had native support for screenshoting
PrintScreen button
Snipping Tools
or anything of the sort

hes booting from the ubuntu installer lol
welp how do i create a new partition
the + button and new partition table buttons are disabled
you should be able to format the 2.9gb free space into a swap file
ye but are you really gonna enable network and install discord during installation?
lmao
and stoopid firefox keeps crashing
i said /s, that makes me immune to sound arguments
lel
lmao
Guys I'm looking forward to add a db to my bot, any db recommendations?
quickmongo
is mongodb and quickmongo the same?
quickmongo posts data into mongodb
it uses the same features as quick.db but instead of the data on your pc its in mongodb
20GB should be more than enough
depends on what you do
right tool for the right job
small amount of data? keep it at sqlite or something of the sort
need more malleable data structures? go for mongo or mysql
need something more high end with lots of features? postgres would be my goto
need something absurdly upscale? cassandra or redis
need something that will do thousands of operations per second? keydb
i dont like mongodb atlas
π§
Maria is pretty good, Postgres good though
postgres absurdly pog
keydb > redis
write your own db

no way single threaded keydb beats 8 threads on redis
any region recommendation for the db?
but using redis or postgres for something simple would be like trying to break a thin twig with a chainsaw
have it on the same machine or datacenter as your application
look, im not a db writter
so im trusting what they advertise
specially cuz its widely used
for Discord bots, it is most ideal to have the machine in us east
they def know a lot more than i do
so N. Virginia should be my go to right?
Discord's api servers are located in us east so hosting your bot and database there would be the best option

if you have a discord bot that needs 1 million ops/sec you have some other issues i guess
lol
i think u underestimate the ability of a junior dev to write good code /s

wtf did you want to make that needs this much ops?
Throw the concept of multithreading and memory management at a junior dev
first project: make a discord bot that uses a thread pool to handle commands
i dont wanna roast myself, but i once asked hey, i need a loop to do something in js, how do i do it? and someone answered with just use while(true) {ur code}
lets just leave it at that
i think it was the very first few days of js
(mine)
they grow up so fast 
the first few weeks i dont where in any discord server related to programming, i just tried until it worked, or looked throu 10 years old Stackoverflow pages
isnt while thread blocking
the point is scaling. its better to compare what its ACTUALLY is made for
relatable

topgg had ~330 operations a second on mongo before we started moving things off to postgres so maybe you can chill on that 1M ops a second idea

the most requests i've had was about 112K per minute
which is about 2k requests per second, and that was legit routing basically 95%+ of twitch's global traffic of viewers and chats
realisitcally you'd need to be at discord's scale to even get close to doing that
wdym y
why did you route 95%+ of twitch's global traffic of viewers and chat
cuz i was scaling my private lib
at the time there were https://cdn.discordapp.com/attachments/691759632095379547/793639135436865546/unknown.png
this many users online
oh. You were scraping twitch?
no
theres no good lib for twitch
so i built one ontop of an existing one
and added caching to it
Oh boy.
Can I get a link to said lib for future ref
it handles ratelimiting and some neat stuff, like replying, sending commands, etc
its built ontop of IRC

Oh. Okay. I was referring to yours
I may or may not have wanted to integrate into twitch
i ended up caching a SHIT ton of stuff
to make use of a better system and reduce on requests
what did memory usage look like
,
ah. Right. 300MB no way

That's way less than Discord.js at small scale
at the time, it was storing a good 3 million+ cached entries there
ontop of channel data
but yeah, i was testing how well my lib would handle at such a massive scale
so i implemented my own sharder/workers + caching ontop to reduce ratelimits

twitch is NOT a platform you want to go for if u want a "popular bot", it breaks at scale super easily
you'd need to setup k8 or something
K8 is fun, i might build myself a RPI cluster to play around with K8
also if i get smarter i could work out some fancy way for scaling detritus easy inside k8
The biggest issue you'll have is probably the duplicate instances connected to the same shard
if you wanted it so it was truly un-interrupted scaling
assuming we're looking at the traditional each process has x shards, idk detritus
k8s makes scaling bots reasonably simple
it basically just requires using statefulsets
and thats about it
un-interrupted events is harder because unlike webservers you cant just tell the load balancer or network switch to just ignore that pod till it's ready. But i imagine some shared signal state would work
you might could make a manager ontop of the bot that handles the state signals
could
although at that point i think it would simpler to go with a message broker setup
so you end up with a multithreaded gateway that sits on each machine which unless it's a discord api update wouldnt need to be restarted at all
and then you can just freely restart workers without interuptions
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>```
This is opening from top to down
But I want left to right.
In `ejs`
i havent worked into how detritus handles sharding, but from what i saw for now it could make running it inside K8 rather easy
If its like any other lib
its different than d.js
stateful set and you're done pretty much
if it takes the total shard count and an array of shards to identify with then its the same as everything else really
@opal plank how different does Detritus handle Sharding than D.js?
we bunch shards into "clusters".
theres another top level thats a clusterManager
yea thats what i know already
why do you have 9 lots of connecting to shard 0
well in that case if thats not literal its pretty easy
def shard_ids_from_cluster(cluster, per):
return list(range(percluster, percluster+per))
ye old formula
u fuck
im literally saying this is just the example
detritus doesnt connect the same shard to multiple clients
ik what you mean 
and im not the one who made that either way
tl;dr take the hostname of the stateful set
treat that as the cluster id
generate n shards based off that
happy scaling
you're welcome
wasnt detritus also way faster with starting shards than d.js? i think i have read something about it on the detritus discord
isnt that entirely dependant on discord?
your speed is limited via the ratelimit of identifying shards
cant / shouldnt just slap them up as fast as possible
Discord.js waits for all GUILD_CREATEs to be emitted from all shards with a 5000ms wait time for unavailable guilds to become available before it emits the ready event from the shard manager
theres a 5 second delay between shards
HOWEVER
discord.js does some wacky ass shit in the background apparently
Judging from what papi said likely due to the change discord made to identifies and getting member cache
Discord.js has done this forever though
Man that looks like a pointless benchmark lol
It's always been about caching and "type safety"
benchmarks are evil in general
looks intresting
and now i hope i will never reach 1 Million Guilds, having the need to get over 100GB of Free ram is a bit over the top, unless i get a way to monetise it properly
I'm trying to rewrite LavaLink with node libs and not so difficult so far. Hardest part is probably setting up a thread pool
those are the most useless benchmarks lol
ive found a lib for it a while ago, i used to to run tensorflow on mutiple threads

probably not the most efficent one for the job tho
make better, bet u wont
i will
lol he will
eventually
someday
Everyone knows Djs the worst at memory management
go to detroit
write your own proprietary libs
well the caching behavior is just stupid
yeah just rewrite the whole code simple
devs without at least 2-4 years of development into a lang shouldnt make libs/modules
change my mind
*me with my 69 npm libs
who gets to slave away then
you mean the people who use the is-uneven npm package
π
not only that
fast-discordjs
fast-lib
fast-strings
@quartz kindle had benchmarks showing those fucks claiming their shit is fast, is usually the worst
hence why i like detritus
reimplement Buffer into older node versions using string concatenation
clone the repo > change name > npm publish
boom you have your own module
this

I have people fork my bot just to try to host on heroku and they can't
why call yourself best and be the worst/trash
when you can yourself trash and be the best?
just require a package heroku doesnt allow to be installed

even if you dont use it
Use anything that requires windows-build-tools
you think that's stupid
go to npm > discord-button (not buttons)
a guy literally put a bot code there
not exporting anything
lmao
Open source for transparency
npm should have a report button
it does
report malware
shh, dont argue with my flawled logic
Lemme make a PR to fix it then
had to be french
also
big brain time
command handling
AND checking for permissions before deleting
AND awaiting his promises
AND catching his exceptions
Wow
i guess all the effort went into advertisements
Is noble prize given on programming ?
but guys, look how pretty my thing is
should give this one the darwin awards
are they here?


hmmmmmmmmmmmmm
ping him 
I wanna ping him so badly
same
i dont wanna offend anyone, but from what ive seen, french devs heavily resemble turkish devs
for some reason
lmao
* i want to offend as many as possible, french devs heavily resemble turkish devs fixed for u
i havent seen many french devs, so i cant comment
ye wtf
they have a website
just noticed that
dew it

what the dog doing
Maybe it's the yt
idk it needed password
hol on a moment
lmao
wait there is actuall videos
what is his "Youtube" actually?
lmao
tossed from private youtube 
he just copy pasted the code that enables discord experiments
Yeah who dosen't
isnt that against tos
modifying the client
https://exotique.fr2.quickconnect.to/webapi/entry.cgi/1.mp4?format=raw&api=SYNO.VideoStation2.Streaming&method=stream&version=2&stream_id=%226c10213867da08eb2fcb5c3ecd0ad350_I3Ikxo2s%22&tid=ypPRJ33jEoznID43PeHp6NI4TUAlbyGlKHc3a
Nah I can't take it anymore
@earnest phoenix
lmao
more like open source pishing client
his video about how to create a rest api
LMAO
lmfao
uhm yes seems like rest
and pretending to have all badges

omg
are u shitting me
Private Server Fortnite - All Skin and Item + Infinit V-Bucks - Free 2020
NO WAY

token grabber
@quartz kindle Private Server Fortnite - All Skin and Item + Infinit V-Bucks - Free 2020

lmfao
is there a way to edit the original interaction message and change the ephemeral setting?
e.g. i only want error messages to be ephemeral
i havent tested much with ephemeral messages
me too
because when i use the hook its sending another message with reply on the orginal message like this
but instead i want to edit the original message
also pog, im 90% sure modding epic games launcher is illegal
wait wdym?
oh i see
my bad
You can't edit ephemeral messages
but it seems i have to decide first
and cant change it on execution
yeah
okay, then im making everyone visible i guess
because some command are probaly taking longer than 3 secs and my logic should not be based on hope that it takes less than 3 secs
why does it take 3 seconds?
was about to ask that
u mean its very unlikely that it takes that time?
3 seconds sounds very slow, aka very inefficiently made
The timeout for responding to an interaction is like 5000ms
yeah but then i cant make them ephemeral

idk never actually looked the response time up, some commands require a db query
maybe im finde, should look that up 
yeah thats true
at most you'd be looking at a 250ms if ur db is somewhere else
anything more than that, i'd recommend looking into it
my db queries take 0.13ms
what is the best way to look the times up, just timestamps before and after calling?
mine take prob 20ms or so, i forgot, we timed it a couple months ago
measure it yourself with console.time or performance.now
performance.now is more accurate, no?
i see thanks
im looking at my times
they should be equivalent
i believe both are based on high resolution timers
ie, process.hrtime in node
then its fine
Okay maybe i was a bit pessimistic about my response times 
It seems fine, if im just replying when it runs into an error instead of acknowledge it immediately and edit it
Why not to use repl???
Sorry? 
repl what ?
No thanks
btw it's not repl.it anymore
they're moving to replit.com
oo
rep lit .com
Im just using my raspberry 
The biggest reasons for not hosting bots on repl is FFMpeg doesn't work afaik and the fact that actual node repls are on v12 while deno and bash repls can run node v14 for some fucking reason
"Buying a raspberry pi will be less effective then renting a cheap vps" -someone said
ooo always feels nice finding another raspberry guy
nice to meet ya
replit is still on v12? lmao
plus slow and not meant for bot hosting
uhh, i use python, ppl are saying repl gives them 30 ms ping

rep trash .com
for websites
discord or node ?

isn't Glitch ded ?
comparing garbage to garbage
Sir can u tell why not to use repl for bot hosting?
lmfao
cuz i have 3 fucking phsycicals servers?
they moved to v14
unless you use bash shell
then it's 12
I mean i wanted a pie either way, i didnt bought it just for hosting
They ratelimit it like every 2 week
pretty sure they didnt ask why YOU dont use replit
lmao
J O D
i said why
cuz i have a VPS
a PROPER vps for hosting bots

not a thing that was meant for websites
and that requires uptime bots
or that has limited hours/month
still doesnt answer their question lmao
btw i was asking for myself π
they werent lmao
no
lmao
they were asking you why they
tim was asking that
ain't you like 20 ?
shes 14
jan 98, do the maffs
:^)
you can drink at 20 ?
I thought it was 21 ?
....
i never said i was 20
nvm
i said in that range

in most countries you can drink at 16 lol
except in brozil
In some countries you can't drink at all
still bronzil is 18 not 21
in brozil parents give u booze at very early age, like 11 or so
btw my question...... π₯²
i did tell u that
yes we should use vodka cooled pc instead of repl.it for hosting
not a thing that was meant for websites
and that requires uptime bots
or that has limited hours/month
discord bots use websockets to communicate with discord (unless you use slash commands only, which dont need websockets)
How do they received interaction then ?
websockets need your bot to be always connected
HTTP API
wouldnt cloudflare legit boot you after a while for too many connections? websockets get destroyed after 3 minutes of inactivity, no?
Currently i m using DanBot host, and getting like 130-150ms in tha free server and ppl saying they gat 30ms in repl
how do they know my ip ?
I don't provide them
webhooks
weebhooks
ive gone brain dead:~ how do i make it so if theres no text with the command it'll say "please put input to complete the command"
const Discord = require("discord.js");
const Canvas = require("canvas");
exports.run = async (client,message,args) => {
const text = args.join(separator = ' ');
const canvas = Canvas.createCanvas(460,650);
const ctx = canvas.getContext('2d');
const background = await Canvas.loadImage('./img/sb.png');
ctx.drawImage(background, 0, 0, canvas.width, canvas.height);
ctx.font = '26px sans-serif';
ctx.fillStyle = '#000';
ctx.fillText(text, 50, 100);
const attachment = new Discord.MessageAttachment(canvas.toBuffer(), 'sb.png');
message.channel.send(attachment);
};
if(!text)
cheers
this is ok right? if(!text) return message.channel.send("Please Provide Input: EG `c!sb Hi`")
k i need to add args init
ik-*
π
Finally My Bot Is Approved
congrats
gz

Welcome to the green club

can you please give that poor soul a mentionable nickname
imagine not having Rβ¬ΞΕγ»ππ«πβδΊ₯ in ur keyboard
π©
no need for that
2017 I guess
yall trippingh or what
Really man I am dumb
I don't have experience with fingers
unlike you
on the corner of ur screen
im a hit with the ledies
π₯²
Yea sure
Mobile has it as well
like I have a career

yea found it
btw nice keyboard
sankyu
im feeling kinda dumb, but rn my "hosting" is just running my bot .jar
what would be a better way for a java bot? it doesnt feel right to me
i should add im using a raspberry to host it
Get a cheap VPS
i mean yeah thats of course an option, but i would like to still use my pie for it, but i couldnt find a nice possibility for java
You can actually run your pi 24/7, but you do need to add few things to it
I present to you, raspberry pi watercooling
its already running 24/7, but im not sure if im doing it the right way
Ah lmao
or like how you should do it
I run my own server with a hosting panel on it, so I don't know other than PM2
And I have no idea if you can use PM2 for java
hm 
Time ago I had the chance of creating some pm2 services for NodeJS, but this time I wanted to create a java service and I wonder if that was possible. Well, the answer is yes since pm2 can use a json config file to start the service you want.
sounds good
Forbidden bendy straw
im looking more into it, thanks for mentioning it!

it works without water cooling
It does yes, but depending on usage, it can get hot
Always better to be safe than sorry!
Keeping your components cool also extends their lifespan
Better than my macbook at 80 degree c most of the time
Sometimes reaching 100 degree c
Yep. Thats macbooks for you
Yeah it feels like that sometimes
I put my macbook on my lap once and it felt burning
I'm surprised I still got flesh for legs
Most intel CPUs will perform a safety shutdown at 105c right?
I believe so yes
you got crispy bacon
I've installed mac fan control, so when it reaches like 90 degree c, my fans turn to full blast
kwispy
Generally my liquid cooled system will hit 90c just about at 100%
great in the winter time
Pretty sure the max my water cooling has hit is like 80c while rendering high quality video
my laptop sometimes start fission reactions if i open 2 discord clients
lmfao
you dont need a watercooler for this lol
Asus Tweak be showing my graphics card temp, but not my CPU's 
my pi runs now for almost 2 years with a passive heatsink
It was kind of a joke ngl, but also kinda true. Since not many people have seen such thing 
watercooling is only needed if you overclock the pi
isnt that completely counter intuitive tho?
Who doesn't overclock technology 
there are people who use them instead of a VPS, so they overclock them to get faster clock speeds
If it has a clock speed, people have overclocked it!
you'd be buying a raspberry for small applications, the fact that you need to overclock it or pay for water cooling means its not the right pick, unless you going for bitcoin miners or something where u care about energy costs
would not say only small applications, they can to a lot of stuff
but yea usually either for Home Automation, some networking stuff, or just to play around with it
also there are people who use them as a desktop Replacement
sure not a powerful one, but for browsing the internet all day long its good enough
fair
I used my raspberry pi for exporting a youtube video before 
i use one for Monitoring my Internet connection and pihole
I thought about getting pihole ngl
they cant block the adblocker if the adblocker is not even in the browser
also it gets rid of a ton of Tracker
like Microsoft tried today 10k times to send telemetry back home, on atleast 2 devices
Jeeeeee
Thats a lot
but to be fair, its totally fine to just build a .jar from my botfiles and run it, or? 
like rightnow about 45% of the DNS requests in my network get blocked
When multiple random CMD's starts popping up
Right so, apparently my CPU temp is 60 degree c
is this a memory leak the vps has 6gb ram
hey im getting a really wierd error on my IDE
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host discord.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)')]```
your ssl certificate is invalid
from where are you doing the request?
so its my connection to wifi?
im doing it from my computer on my phones hotspot bc my wifi is down
Did it worked on wifi?
https://github.com/Rapptz/discord.py/issues/4159
its related to this issue
im working on a server info command, and the owner thing isnt working, I think it is ctx.guild.owner, but it always shows up as "None" (python btw)
the owner is probably not cached
either use owner_id or activate the members intent
for this const background = await loadImage(join(__dirname, "..", "img", "RankCardBG_1.png")); would i beable to use a random.math?
id replace "imgname.png" with 'random' right?
Let's say the filename was RankCardBG_1.png but you wanted to select a random card between 1 and 6. You could write it as
let name = `RankCardBG_${Math.floor(Math.random() * 6) + 1}.png`
But you could have other meanings of random.
For example, the names aren't predictable and you want to select a random file from the directory.
o thatll be handy having itlike this to balance how i have the first one to then have an additional numbers from a circle of imgs
for the first part const background = await loadImage(join( id have it be const background = await loadImage(join(RankCards))?
with the file directory part ofc
Math.round(Math.random() * 6) also works
oh nvm
lowest value must be 1
so Math.ceil(Math.random() * 6)?
have i got this right? ```js
let RankCards = RankCardBG_${Math.floor(Math.random() * 10) + 1}.png
const canvas = createCanvas(1000, 333)
const ctx = canvas.getContext("2d");
const background = await loadImage(join(__dirname, "..", "img", RankCards));
can i make a bot using C#?
Of course?
Integrate your service with Discord β whether it's a bot or a game or whatever your wildest imagination can come up with.
const buff = await new Canvas(611, 746)
.addImage(image, 0, 0, 611, 746)
.setTextFont("48px Arial")
.setTextAlign("left")
.addMultilineText(text, 350, 450, 200, 40)
.toBufferAsync();
res.type("image/png");```
if anyone knows how to use canvas what is the problem here lol, im getting this error:
TypeError: (intermediate value).addImage is not a function
const x = await new Canvas(611, 746)
x.addImage()
maybe
or this
.addImage(image, 0, 0, 611, 746)
.setTextFont("48px Arial")
.setTextAlign("left")
.addMultilineText(text, 350, 450, 200, 40)
.toBufferAsync();
res.type("image/png");
await is probably for .toBufferAsync()
what do you all use to host discord bots or what do you recommend?
raspberry pi's or a dedicated paid host
i use ponbus, super cheap host and super nice owner
alright. thanks
node is probably not in the path in the vsc terminal for some reason (but I don't use Windows so I'm not 100% sure).
have you restarted vsc
Computer teacher teaching why useless logic is important for exam marks...
I mean the modulus operator is... sometimes useful...
Try to understand.... Use π§
why check if last digit is even if the number is divisible by 8?
Maybe you have items that stack up to 8 in a game and you need to figure out how many stacks to put them in!
You never know

Never really used it outside of school
It's more about teaching you about the operator
Bruh.... I am not talking about operators....
I am talking about useless logic
Deducted my marks because I just wrote
if(n1%8==0)
Is there a way of getting the colour code based on the user's avatar? I don't want the bot to get the colour based on the member's role. djs btw
Discord extracts the most dominant color in the user's avatar. I don't think they make the value available in the public API, so you'd need to extract it yourself.
if teacher.study.actions = true
then kill
end
I am trying to run a bot but get this error (it's made in python btw). Does anyone know how one would fix it?
Here's lines 1 through 11 btw for reference
split the global declaration in 2 lines
As it says, wrap it in " instead of '
but they're not wrapping it in '
You don't even see their JSON
Line 6 in the JSON Β―_(γ)_/Β―
my bad I didn't see the jsonDecodeError part
Happens
Hmm can anyone make me a giveaway bot
This isnβt the place to ask for someone to make you a bot
We can help you make a bot if you have questions about the code you write for it though!
Ok what is code
Joking
Well, pick a language and start learning about it
The internet has a ton of great resources for that
Youβll need an IDE
Or a text editor, but preferably an IDE
And before making a discord bot, you should learn your language of choice
@wheat mesa I know a language English and kannada
@wheat mesa
@wheat mesa @wheat mesa @wheat mesa
@wheat mesa @wheat mesa @wheat mesa @wheat mesa
@wheat mesa
@wheat mesa
@wheat mesa
What
Are You Indian ?

Anyways is this good for installing ubuntu? @quartz kindle
I can't create more than four partitions so i converted sda4 to an extended partition
Then I created two logical partitions in there
$tu
???
guys can anyone tell why isnt this code working ?
How i get fact api??
we cant find the error if you send the entire file and dont even tell us what's causing the error
search for fact api on google youll find tons
π ok ty
its saying " invalid imports"
for psulin and presence
u messed up your imports probably
hmm i guess so
im not a python expert so i cant help you
OMG i made it through the ubuntu installer!
finally after 4 days of utter torture i can finally say fuck you to windows 7 and hug you to linux
now time to single boot into linux :)
i have a emoji react on one of my commands but it keeps giving me this error and the bot isnt in a server i own (node:46964) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions
start catching exceptions and give the user a message saying its missing xx permission to execute the command :D
you shouldnt rely on hoping that everyone sets up your bot perfectly regarding permissions
Is there a way to replace "image":"image_url" and make it "image":{
url:"image_url"?
}
Does someone know a bot which detects these Guild Voice States ?
They are here: https://discord.com/developers/docs/resources/voice
Integrate your service with Discord β whether it's a bot or a game or whatever your wildest imagination can come up with.
Give a role to the people who go live or turn camera on for example
VOICE_STATE_UPDATE?
If you asking specific bot, no idea. But if you asking some library might have it, I know djs v13 have it. But it still under 'developement'
I'm asking just for know because I don't know if it's possible to make a bot capable of that, but they are in some libraries and I know a private bot which detects it. So I leave my question here in order to find a developer whose bot has that feature or to give ideas of features for developers!!
I get confused if this is a programming channel or a bot searching channel
How Can I Get Total Number Of Votes Of A User ?
is your disk not using GPT?
GPT supports 128 primary partitions, and is a requirement for running an OS in uefi mode
MBR only supports 4 primaries and requires the bios to be set in compatibility mode
but should work fine using logical partitions, you just cant have a boot manager in them i believe
like how many times a user has voted ?
you'll need to use Webhook and save the data in a db
I believe RPC is deprecated? I think you have to use the game SDK now
deprecated β decommissioned
I am getting a module not found error. what is wrong
Did you mean ../db/test.js?
not working
Or, rather, ../db/test

Oh wait
that looks double nested
that test.js looks like it's in denemev2
so you gotta go back 2 i think, JS moment
Yeah
ol
../../db/test sounds like it
ok*
this worked... thx
What classifies a slash command. Since there is a limit im guessing not all commands should be slashes but which ones should be
....a slash command
oh
you want to migrate some of your commands to slash ones?
if that's the case, you probably shouldn't as slash commands are still garbage
but if you really want to, there's no classification per se
do what feels best
it's beginning to take shape
although the CSS code I've had to write for this already brings me anxiety
what are you using to build the app
will pass for now
pretty much nobody sane writes apps in raw css/html/js anymore
primarily because of complexity i guess
cuz its slow as fuck and often people cant write maintainable css
people also write forced css code which fucks up a lot of their margins and shit
which is why you should responsibly be looking at what you're putting in hierarchy as well as the class values
what do you guys use instead of raw css?
CSS frameworks
like saas?
this and jss
I used to use Bootstrap but I got tired of that
does it really make the difference?
moved to Materialize and got tired of it too
it's preference honestly
most hop between Sass and JSS now
didn't materialize drop maintenance like
years ago
years ago
why?
until they gave up
i remember trying to use it but the css was so broken
i had to rewrite a good amount of their framework source to get mine to function
was not a good time
the painful thing about CSS is unlike Sass you have no @extend
this is painful to continuously write which is why I see many prefer Sass since not only does it allow more base features compared to CSS, it's generally easier to build code off of and maintain. https://i.imgur.com/Whjs7D2.png
why the heck you using pixels
No problem using pixels
Why does it matter?
nothing wrong with using pixels although in this case I think you're trying to use absolute positions for layouts which is not good
the only things i use absolute positions on are the boxes that define the structure of the chatroom
like the "sections", ie. navigation bar
there's no reason for navbar to be absolutely positioned
everything else is kept relative and scalable
unless you need it to be on top of all your other content
Hi
the only thing absolute position really makes sense for is overlaying text on top of a background image and dropdowns that need to be positioned outside of the site layout relative to another element
ok
what does your site look like? maybe there's a better way of doing the css
if you're interested ofc
the mockup design or the current state?
the thing you want I guess
MILLION do be kinda right /s
it'll be looking better later on
i just want to get it from the mockup to an actual design being out
so that i can then tweak it further and make better refinements from there
if you spend all your time doing mockups you're not gonna be making a website lol
i'm perfectly aware of that xetera
I know I was agreeing with you
hmm I don't really see anything here that should be absolutely positioned
it's a good start tho
i like the design
well for example, my conversations code has an absolute position
but if i remove that, it's gonna be inline under my navigation bar
but i don't want to determine flexing positions and change the display values per CSS class
this is gonna be a thicc docker image
I can do display: flex; for now but that means i would later have to change how to arrange items
which is a no fun at times
looking at your layout design
that can just be done with a flex box
without much agro
I mean I'd be looking at something like this
the only thing that scrolls is the middle container
i could let you see where it's currently at
yeahh
i was wondering about that
i currently have the conversations css class now on a flex with 100vh
you flex: 1 the chat container to let it take up the most space and give the top bar and chat input bar a fixed height
i think i have the conversations header/title at a fixed height
i'd do the same for the other one
because everything i would like to do rather in sections instead of entirely tables for the top headers
they don't have to be fixed as long as you don't let it grow
also do yourself a favor and use modern-normalize
so you don't have to deal with this box-sizing nightmare
Hi. Sorry, My bad. π
@feral aspen typescript would've screeched at you for that
Excuse me. π Imma run now.
i was about to type a respond lol
sometimes you need a 34.737 look at it, happens everyone 
I sometimes send my entire help message and realise it at the very end.
especially when you're typing your question, you often realize your mistake
Rust
// Print out text for user
print!("Enter array index: ");
// Read user input
stdin().read_line(&mut index).expect("Reading line failed.");
Why does the read_line part execute before print!?
what if I have 4k















