#development
1 messages · Page 1705 of 1
now that discord supports code viewing for large files
oh yeah true
I think its this 👀
yeah dont copy and paste code
Lazy mode is online right now e.e
so the issue is the file couldn't be located, you'll have to redirect it to where the file is located
Oh wait i think i know wheres the problem
yeah
Its at the style of the github file
aight ill fix it and test, thanks!
that kind of code is not copy-pastable
it depends on other things that you dont have
code is often made specifically for a given situation
copying it and applying it in a different situation with a different set of code will never work
that's why it's suggested to not copy and paste
but if you still want to do that, at least adapt to your code structure
keep learning and the process will keep getting smoother
I'm back again, just to say i found the commands doing the whole problem, deleted them and im going to make the command again
@neat beacon you using discord.js?
Yea
was wondering cuz your structure is similar to what we use for detritus.js
a bit too early for that dont you think?
the early bird gets the worms
ina ll honesty
the only issue is typescript
i find detritus a lot easier for noobs to use than d.js
well, that too
but its mainly because you dont have to do most of the work
it has it already done for you lmao
properly*
xd
you make it sound like the end result will change
users from d.js will simply copy shit code from stackoverflow instead
much rather have a lib with competent devs and code do the same function for you
yeah and where are they gonna copy code for detritus from?
in the end the user wont even bother reading what they're copying
People don't learn if they aren't exposed to pain and suffering
function.call :)
people cant really rely on autocomplete all time
Function.prototype.call(myfn, null, args)
run this function pls, kthxbyecya () {
channel.send('hi')
}
wat
well, yeah that was my first impression on it
If I wanted to send a message using d.js and delete it a certain time later using .then(msg => msg.delete what's the max amount of time that would work?
yes, but it would be much smarter to check stuff properly
await for the message to be sent
then start a timeout
before you delete, check if the message is still cached, if not, fetch it
is there a functional limit to the timeout?
what
how long can the timeout be max
setTimeout(() => {}, time/*(in ms)*/)```
i guess MAX_SAFE_INTEGER would be your max
but why would that matter?
unless you plan to delete the message after a couple dozen years, you wont have a "max timeout"
just await the message send to return and then start the timeout right?
anyone use discord.py?
that would work, yes
gotcha thx again
it would actually be better for you to send a raw request in all honesty
cuz otherwise if the message isnt cached, you'll have to fetch it
cuz d.js

I love trying for 30 min to get a server owner DM working only to realize it didnt work cause of Priveleged Intents not being enabled -.-
imagine having methods that dont require stuff to be cached
@sturdy dock
thats not d.js btw, its detritus.js
👀
pov: sketchy command
honestly kinda shit at js to begin with so i'm still working on the basics 🥴
would you like to hear more about our lord and saviour, detritus.js?
but yeah idk if i'll stick with djs once my bot grows some more
I'll look into detritus
Is it more memory-efficient? Just curious
accoridng to @crimson vapor , yeah
he was testing all the libs memory wise
eris, d.js, d.js light, detritus and rose iirc
huh
post your findings
idfk where the paste is
Yesssss
nvm found it
ok that
yea
discord rose by nature will be best for memory efficiency
however, you do most shit yourself
Ew, I want shit done for me 🥴
both libs are similar in that manor
i point out a lot of the good things about it
ex. message collectors
Looks really sweet
https://detritusjs.com/ website/docs
https://www.npmjs.com/package/detritus-client npm
https://github.com/detritusjs/client gh
https://discord.gg/NEq6wws support server
https://github.com/cakedan/notsobot.ts/tree/master/src example of a good bot
if you interested
Are there any template bots in .js? Just curious as thats what I currently understand, want to see the difference
just set the configs to be lax and you good to go, but you will still get the intellisence and error catching in your IDE beforehand
it'll basically be js with extra features
you dont necessarily need to use ts
I'm not worrying, chill. Looks really cool 😁
just letting you know cuz a lot of people see typescript as a monster
its highly customizable, so, its on you how "harsh" it is
Only reason ts looks scary/annoying to me is I have to declare var types 🥴
No
ook
@welcome.command()
async def disable(ctx):
async with asqlite3.connect(db_path) as db:
async with db.cursor() as cursor:
await cursor.execute(f"SELECT enabled FROM welcome WHERE guild_id = {ctx.guild.id}")
result = await cursor.fetchone()
sql = ("UPDATE welcome SET enabled = ? WHERE guild_id = ?")
val = (False, ctx.guild.id)
await cursor.execute(sql, val)
await db.commit()
await ctx.reply("Welcome message disabled!")
i made this disable command but it wont work. plus no errors
help would be appreciated
oop, it died
One message removed from a suspended account.
well thats my first all nighter for a long time
and i finally got my lib sending voice
admittedly it sends white noise, because i really cba to write code to send it a wav... but it works
anyone at all?
dblpy = dbl.DBLClient(client,
gg_token,
webhook_path='/dblwebhook',
webhook_auth='epictog',
webhook_port=6500,
autopost=True)
@client.event
async def on_dbl_test(data):
print(data)
@client.event
async def on_dbl_vote(data):
print(data)```
ip is public
And what happens when you test it? What's the issue?
do you get an error in console maybe with the test feature?
yes, that URL should be completely public
perhaps my webhook path should be the same as webhook url?
as in it should be accessible from outside of your local network
please stop pinging me I'm literally here looking at it
sorry, its become a habit
A very obnoxious one
Where did you get that code, it doesn't correspond to the official top.gg lib docs
my vsc
Because if that's what you mean, that code looks hella different from what you have
yeah no now ive changed it
this is my code in a cog
import dbl
import discord
from discord.ext import commands, tasks
import asyncio
import logging
class TopGG(commands.Cog):
"""Handles interactions with the top.gg API"""
def __init__(self, bot):
self.bot = bot
self.token = 'dbl_token' # set this to your DBL token
self.dblpy = dbl.DBLClient(self.bot, self.token, webhook_path='/dblwebhook', webhook_auth='password', webhook_port=5000)
# The decorator below will work only on discord.py 1.1.0+
# In case your discord.py version is below that, you can use self.bot.loop.create_task(self.update_stats())
@tasks.loop(minutes=30.0)
async def update_stats(self):
"""This function runs every 30 minutes to automatically update your server count"""
logger.info('Attempting to post server count')
try:
await self.dblpy.post_guild_count()
logger.info('Posted server count ({})'.format(self.dblpy.guild_count()))
except Exception as e:
logger.exception('Failed to post server count\n{}: {}'.format(type(e).__name__, e))
# if you are not using the tasks extension, put the line below
await asyncio.sleep(1800)
@commands.Cog.listener()
async def on_dbl_vote(self, data):
logger.info('Received an upvote')
print(data)
bot = commands.Bot(command_prefix='tt')
def setup(bot):
global logger
logger = logging.getLogger('bot')
bot.add_cog(TopGG(bot))
oh nvm
still nothing i forgot to change the dblpy things
alright so at this point, how's it looking? did you make sure to change your port and password?
yeah i forgot to do that, i did it, still doesnt work
so if you open the dev tools (F12) and then click test, there's no error here?
If so... then I guess you're the victim of this particular site issue.
But that's servers not bots so... I dunno
wait let me check
same question
and how to make my bot familiar
you'd probably want to learn basic html/css if you haven't already
assuming you're not going to go with a website builder or whatever
For the top.gg description you want to check https://custom.discord.re/
For a separate website, basically start with googling "How to make a website" to be honest but that's a... like... really wide topic, not a one-day project for usre, just so you're prepared.
@umbral zealot how make top. Gg website soory for ping
I literally just answered that question. Literally.
This
yes, exactly that
yeah well https://github.com/top-gg/python-sdk
A simple API wrapper for top.gg written in Python. Contribute to top-gg/python-sdk development by creating an account on GitHub.
how do you post stats while sharding? do you set an interval in the sharding manager or in every shard spawned?
@jagged surge what's the issue?
It's probably preferred if you keep it in one request where you post an array of guild counts for each shard
So, sharding manager sounds feasible
what
im fairly certain its just 2 ints
no arrays included
shard_count and guild_count
yeah but as far as i know you cant rely on all shards being available so how do send the stats that way? using discord.js
do you have any example?
@slender thistle
yeah shiv is right
Shards should be available consistently though?
I'm not exactly sure why they would be unavailable 
neither i am, but that's what i have read the most on internet
Can't confirm or deny that, never worked with shards myself
😔
What's your code like and what did you enter on top.gg?
shivaco, think you can give my code a look?
thanks here
dblpy = dbl.DBLClient(client,
gg_token,
webhook_path='/dblwebhook',
webhook_auth='epictog',
webhook_port=6500,
autopost=True)
@client.event
async def on_dbl_vote(data):
print(data)
@client.event
async def on_dbl_test(data):
print(data)
so my code
in all honesty
You use replit?
uhuh alright
but how? how do you get total shard count and total guild count on the sharding manager? if you use anything different from discord.js just ignore me
Don't set the port in the URL also
Seems alright, yeah
this is all i got

interesting, here client is the new Discord.Client() which you use this.client.login on, right?
ignore the this, thats just how my shit works. also its detritus, not d.js, but it should be similar
i dont pass a client to the poster
i feed the stats myself as you see there
setInterval(() => {
if (this.client.dbl && this.client.config.branchType === 'genshin_main')
this.client.dbl.postStats({
serverCount: ((this.client.client as ClusterClient).shards
.map(shard => [...shard.guilds.values()])
.flat() as Guild[]).length,
shardCount: (this.client.client as ClusterClient).shards.size
});
}, 3600000);```
whole thing
i see, but seems that you are posting the stats on every shard isnt it? @opal plank
the variable names should be obvious enough even with my different setup
no
im just posting it once
so this is executed in the shard manager?
nyeh
i see your point
but this works because the interval has a very long timeout until it's is called for the first time
if you wanted to post the stats as soon as possible it would be more complex
function postStats(client) {
if (client.dbl && client.config.branchType === 'genshin_main')
client.dbl.postStats({
serverCount: ((client.client as ClusterClient).shards
.map(shard => [...shard.guilds.values()])
.flat() as Guild[]).length,
shardCount: (client.client as ClusterClient).shards.size
});
}
postStats();
setInterval(postStats, 3600000);
this is not going to work @cinder patio
that npm package posts them asap? really?
discord.py, right?
Yeah as soon as all shards are ready
why...
because you will get an error trying to fetch client values while the shards are still being spawned, afaik
it wasn't supposed to be copy-pastable code
you get the idea
you would call the function for the first time after the shards have spawned, and pass the guild count there
and shard count
Topgg autoposter package posts when all shards are ready and then every 30 minutes after that
well that is basically calling the func before the interval we all know that, the point was doing it when the shards were all available and not at the beginning when they were still spawning
ok thanks @rose warren i will go for that solution
crap
having a look to topgg-autoposter code
it was as simple as having an interval every, let's say 5 seconds, and checking if all shards are ready individually
then creating an interval to post stats
lmao
That's what I was going to do originally and then I came across the package and saved myself some time 😂
yessir
i did data[user]
but it prints the function id lol
print(data["user"])?
oh fuck im stupid
Convert that to int and use it as an argument for get/fetch_user
kekw
const { Discord, MessageEmbed, DiscordAPIError } = require('discord.js');
const config = require('../../config.json')
module.exports = {
name : 'avatar',
category : 'Info',
description : 'Shows Your Avatar / Other\'s Avatar',
aliases : ['av'],
usage : '@user / [userid]',
example : `${config.prefix}av\n ${config.prefix}av @</Jaswant >#0001\n ${config.prefix}av 628774680987172864`,
run : async (client, message, args) => {
let user;
if (!args[0]) {
user = message.guild.members.cache.get(message.author.id).user;
} else {
if (!isNaN(args[0])) {
user = message.guild.members.cache.get(args[0]).user;
}
else {
user = message.guild.members.cache.get(message.mentions.users.first().id).user || message.guild.members.cache.find(r => r.user.username.toLowerCase().startsWith(args.join(' ').toLowerCase()));
}
}
let embed = new MessageEmbed()
.setTitle(`${user.tag}'s Avatar`)
.setDescription(`**Download Avatar : -**\n [png](${user.avatarURL({ format: 'png', size: 4096 })}) - [jpg](${user.avatarURL({ format: 'jpg', size: 4096 })}) - [webp](${user.avatarURL({ format: 'webp', size: 4096 })}) `)
.setImage(user.displayAvatarURL({size: 1024, dynamic: true}))
.setFooter(
`Requested By ${message.author.tag}`,
message.author.displayAvatarURL({ dynamic: true })
)
.setTimestamp()
.setColor("#00ffe3")
return message.channel.send(embed);
}
}
When i use command with user id
it replies with thier av
and also when no one is mentioned or specified it shows authors av
but when i mention someone it doesnt show
what would be the problem ?
ping and reply with your solution
kindly help
Any ideas on what im doing wrong?
Its supposed to check if someone edited their message and if it contains a bad word
client.on('messageUpdate', async (oldMessage, newMessage) => {
if(!message.member) await message.guild.members.fetch(message.author.id).catch(errorFunction);
if (message.member.roles.cache.has("765885271861624843"));
if (message.member && message.member.roles.cache.has("765885271861624843")) return;
let words = require('./blockedWords (1).json');
let args = newMessage.content.toLowerCase().split(/\s/);
args.forEach(w => {
if (words["blockedWords"].includes(w)) {
newMessage.delete()
return message.author.send(`Hey! We dont allow that word here `);
}
})
})
could it be that you have "" around blackedwords ?
wait. nvm. its not defined
sorry. its weird reading that on phone
First time ?
i usually dont read on phone
Wait, what isnt?
just nevermind. i read it wrong
message wont work as you are using oldMessage and newMessage
if you want to check if an updated message contains a blacklisted word then you will need to use the oldMessage and newMessage to check when the message was updated and if it contains a blacklisted word
yt help
Tysm
noice 😄
https://sourceb.in/dcfH2VNgkz
anyone can explain this to me??
if (msg.content === "yr gali") {
let embed = new Discord.Messageembed
.setTitle("Random Gali")
.setDescription("Chutiya", "Bhadwe", "Backchodi")
.setColor("RANDOM")
.setFooter("This is a hindi bot!");
message.channel.send(embed);
}
});```
idk its giving me websocket error
I am also getting the websocket error
name is not defined
wew
MessageEmbed()
atleast the property you want to get name from is not defined
it is defined
o i didnt noticed oof
other commands workk
does all commands have the name property?
since you loop over it
yeahh
so cmd.info.name is a thing?
still giving me the error when I test the command
at Client.<anonymous> (/app/server.js:14:17)
at Client.emit (events.js:196:13)
at MessageCreateAction.handle (/rbd/pnpm-volume/92ffaa29-9b13-43f9-86f5-3043190c49fd/node_modules/.registry.npmjs.org/discord.js/12.5.3/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/rbd/pnpm-volume/92ffaa29-9b13-43f9-86f5-3043190c49fd/node_modules/.registry.npmjs.org/discord.js/12.5.3/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/rbd/pnpm-volume/92ffaa29-9b13-43f9-86f5-3043190c49fd/node_modules/.registry.npmjs.org/discord.js/12.5.3/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/rbd/pnpm-volume/92ffaa29-9b13-43f9-86f5-3043190c49fd/node_modules/.registry.npmjs.org/discord.js/12.5.3/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/rbd/pnpm-volume/92ffaa29-9b13-43f9-86f5-3043190c49fd/node_modules/.registry.npmjs.org/discord.js/12.5.3/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/rbd/pnpm-volume/92ffaa29-9b13-43f9-86f5-3043190c49fd/node_modules/.registry.npmjs.org/ws/7.4.4/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (events.js:196:13)
at Receiver.receiverOnMessage (/rbd/pnpm-volume/92ffaa29-9b13-43f9-86f5-3043190c49fd/node_modules/.registry.npmjs.org/ws/7.4.4/node_modules/ws/lib/websocket.js:825:20)```
you have a typo
did you change it to MessageEmbed()
MessageEmbed
yess sirrr
@wooden rover
console.log your cmdinfo inside the forEach loop and check if all objects have it
okii tryingg
yes I changed
fixed
there was not an error with the name
there was an error with info
i forgot to mention it in one command
nvm thanks tho!!! @lusty quest 
😂😂😂
mah boi needs a bot to curse people xd
what happened?
Gali command😂
ur from India?
good
Hmm


guys
how to do 24/7 ur bot
my bot working only when im typing node . in cmd (node.js, javascript)
You could use pm2
use VPS (virtual private server)
or yes pm2 if you want your computer works 24h non stop
pm2 and VPS
nah,
i think
vps
I have a raspberry pi for my small Bots.
pm2 is process manager
Heh
ur better off using SCREEN
@split wolf please don't advertise
thanks
holy fuck why did nobody tell me using docker is so easy lmao
ive mentioned it a few times
use docker, its so easy. happy now?
lol
Hi
ive worked with pm2 , gave me lots of compile/version errors, wasnt all fun 😛
well if pm2 works great, cool, if it doesnt screen it, thats also cool
i rly dont give it much thought
yes pm2 has issues selecting a runtime version
you have to specify it in you ecosystem file
when upgrading node from 12 to 14 i tried everything and pm2 refused to actually use 14 in the apps until i explicitly put it in the ecosystem file
Wah
hello
Don’t you know how to put addfields online in embed without a giant space between them?
i'm moving from docker back to indiv pm2 kekw
my code
let embed = new Discord.MessageEmbed()
.setColor(color)
.setAuthor(`${utilisateur.username}`)
.setThumbnail(utilisateur.displayAvatarURL({dynamic: true}))
.setTimestamp()
for(i = 0; i < objet.length; i++) {
embed.addField(`**- ${objet[i]}**`,"\u200b", true)
}```

can you show what you have now in a screenshot and show us what you mean by giant spaces ?
i tried this, but the object is on 1 line
I mean... you're adding a field with an empty space, that \u200b is literally your "giant space"
yes
Perhaps you shoudl consider concatenating them all in a single string and putting them in the description instead
ok
Nerds

The answer is "yes"
reponse = requests.get("google.com");
print(response)
then i'll give you the content
and save it as variable
you mean an http get? yes, you can do http requests in nodejs
only thing i managed to get until now is aids
yea u can
and how to save them as variable
node-fetch and axios are popular modules for that
i can console.log it
yea but we're doing a shitty ass school project
and you can't use fetch
ever heard of let and const
Read this I guess: https://js.evie.dev/variables
i can output it
basic JS
but not save it OUTSIDE

However, note that this is promise-based, right, so you need to understand async code
if you want help don't be rude
The closest you'll get to how python does it is using async/await https://js.evie.dev/promises#async-await in node
No
F
hablas espanol en #general-int
if you're using a callback based module like the built in http then you cannot save it outside unless you wrap the entire thing inside a promise
var req = https.request(options, res => {
res.setEncoding('utf8');
var responseString = "";
//accept incoming data asynchronously
res.on('data', chunk => {
responseString = responseString + chunk;
});
//return the data when streaming is complete
res.on('end', () => {
console.log(responseString);
});
});
req.end();
that's the cancer i got so far
but can't use the responseString outside
neither save it outside or return it by using a func
no you cannot
jeez

the built-in http module is a low level module, it only gives you the very basic things to work with
lovely
thats why there are tons of npm modules that are built on top of http
like node-fetch
etc
function makeRequest() {
return new Promise((resolve) => {
// some code
res.on('end', () => {
resolve(responseString);
});
});
}
yea tried that
thats how you wrap it in a promise
like that you can then use it outside the function by awaiting it
let response = await makeRequest()
what error
and since it's fucking garbage
you don't get any infos
welcome to amazon
"Your programm got an erro"
thanks
lmao
if your console lacks error description something is really wrong
its probably not even a console
just an admin panel or status panel or something
there should be an option to access the terminal tho
does not
it's some shit
and to get logs
you need to go on 100 websites
before finding that you have no perms

lol
may I ask, WHERE youre coding?
Okay maybe show us all your code
i mean
also, you can always code on some third-party ide then transfer the code there
if you can see the output of your console.logs
you should definitely be able to see the output of errors
let's not answer that
my brain would explode
like the first time i got asked to code on that
a name would help
so what exactly you want here?
trying something before sending what i got so far with promise shit
lovely error and still no information on what it is
function makeRequest() {
return new Promise((resolve) => {
var options = {
host: weatherApiHost,
path: weatherApiPath,
followAllRedirects: true,
redirect: 'follow',
method: 'GET',
};
var res = http.request(options, res => {
res.setEncoding('utf8');
var responseString = "";
//accept incoming data asynchronously
res.on('data', chunk => {
responseString += chunk;
});
//return the data when streaming is complete
res.on('end', () => {
resolve(responseString);
});
});
});
}
let kekw = await makeRequest();
you want a car mechanic without showing your car nor who you are basically
shit i got so far
You can only use await in async functions
because that's not where you put it
it is
not first time i use async/await
well first time on js but not python
and it's unnecessary there
You don't need async there, that function isn't doing anything async, just returning a promise
won't change anything
you will if you want to fix the code
won't make it work
var gets hoisted on start

console.log(a)
var a = 12;
// prints 12
var might mess that up
blaming the lang won't get you anywhere
anyways
you don't even need to assign the result of http request to anything
changed the var and the name
so, any error?
or press F12 and use chrome console
Doesn't work
no http module on chrome
meh
and you can't run the code locally because the way you need to code this shit is online
That doesn't stop you from running it locally so you can see the errors
what prevents you from coding locally then rewriting on the site?
not your fault they don't give you the errors
why?
because they use fuckign random ssdks
sdks*
and u need a shitty amazon alexa to test that shit
i'm a bit confused on how to fix this. How can it be fixed?
#youcan't
jeez
whatever
if you don't understand the words
"You can't"
it's okay
youre coding then
bblocked
google do u know how to fix this?
ohh ok
is it able to be fixed
did u install those first?
welp, can't help much when it comes to npm errors
btw, why are you using a library for that?
levelling is simply saving a table/document where the user has an ID, XP and level
yes
u execute bot as root?
thats not safe 😛
my favorite xp-per-level algorithm is xp = level ^ 2 * 100
Shiros is so much more complicated
its pain
you need a real one?
i got a equation right here
no no no

cause we dont store the level in the database
just look at the code i got, its easier
luke how are u a certified dev?
shiro
easy =/= good
funny enough, my shiro is more complicated
^ what he siad
cause I own shiro
that's the same heckin algorithmn I use
pog
that bot dosen't have any of the features
it does
xp = level ^ difficulty * scale

considering I revived the bot and started working on it with Xig I think I know the feature set
level = sqrt(xp / scale)
is it here? stinky
yes
How to make a bot send a photo not from url, but from my photos in storage?
which library?
All of em.
discord.js, discord.py, jda, dotnet
Hmmm i dont think i did that...
what did you do?
Imma serch it
for anyone that needs a leveling code (logarithm) https://pastebin.com/YyQvHzNy
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Are you coding your own bot? Or what are you talking about
Probably bdfd
Yea
What language are you coding in?
But i dunno what engine is it
It has commands like that right
Yep?
then explain how did you create yur first command
You don't know what you're coding in?
which apps/programs did you download
App: Bot Designer For Discord
Oh
yup
called it
bot designer for discord
It's short for Bot designer for discord
the initials
Ok
that is a formula for leveling
it makes it gradually harder the higher u get
i was asking Daah lol
Tim do you do CSS?
yes
Goin to use discord.py
my bad lol
But website not found?
Can you explain why darkgray is a brighter shade of gray than gray?
Okie thx
maybe ur monitor uses different color settings?
gfx card/software can do that too
Perhaps most unusual of the color clashes between X11 and W3C is the case of "Gray" and its variants. In HTML, "Gray" is specifically reserved for the 128 triplet (50% gray). However, in X11, "gray" was assigned to the 190 triplet (74.5%), which is close to W3C "Silver" at 192 (75.3%), and had "Light Gray" at 211 (83%) and "Dark Gray" at 169 (66%) counterparts. As a result, the combined CSS 3.0 color list that prevails on the web today produces "Dark Gray" as a significantly lighter tone than plain "Gray", because "Dark Gray" was descended from X11 – for it did not exist in HTML nor CSS level 1 – while "Gray" was descended from HTML. Even in the current draft for CSS 4.0, dark gray continues to be a lighter shade than gray.
O_O didnt know that
bruh
?
y'all have a browser right
whats a browser?
no, I use two AAA batteries to send signals through ethernet cable
whats your upload speed?
lol
2 B/minute
bytes
thats bit
@quartz kindle keeping busy at home I see
b = bit
B = byte
Lowecase b is bit, yes
lowercase is bits no?
im confused
kibi??
Windows standard
this shit always confuses me
blame marketing for that
upper case, lowe case
basically people started using base 10 for bytes
but base 10 is shit for programmers and engineers
so instead of fighting against people to assert base 2 dominance
we went with kiB
isnt KiB 1000 and KB 1024?
nope
TIL there's also KB
so this is right?
public static string ReadableSize(this Int64 input)
{
string[] sizes = new[] { "Bytes", "KB", "MB", "GB", "TB" };
int order = 0;
while (input >= 1024 && order < sizes.Length - 1)
{
order += 1;
input /= 1024;
}
return string.Format("{0:0.##} {1}", input, sizes[order]);
}```
yes because u used KB not kB
gotya
yep
so its wrong?
The byte is a unit of digital information that most commonly consists of eight bits. Historically, the byte was the number of bits used to encode a single character of text in a computer and for this reason it is the smallest addressable unit of memory in many computer architectures. To disambiguate arbitrarily sized bytes from the common 8-bit ...
both KB and KiB are the same
KB is windows standard
PORTUGAL CARALHO
oh
Welp confusing but i can do it?
xD
br
Bruh thats not portu
well... fk me
tl;dr: blame the users for confusing filesizes
fascinating
im still not getting the Kibi thing, when was that introduced ?
cats-per-football fields
come to metric system
dude im from EU 😛
doesn't EU use both?
i cant know that for sure
but as far as im concerned NL uses metric
the rest ... i think does too?
except for UK ofc
these fellas measure weight in stones
lol
ah yes, stone system
and foot ...and feet
i have a feature in my bot that shows both yards and mtrs coz u never know when ur bot is being used in whatever part of the world
i dont like it, but you gotta be broad on delivering
i do know i always setup the right culture in my apps, coz there are some nasty hiccups if u dont
especially when you do expression evaluation, the comma's and dots
fkn headache right there
@lyric mountain
?
Haw i make a bot
haw haw? 😛
Haw?
Hawdie
I bont no haw to do a bot
learn a programming language, then refer to one of those libs #development message
Can you make for me?
Beth
If you want to make a bot, here's how:
Step 1) learn a programming language
Step 2) choose a library in that language
Step 3) actually start writing the bot
Step 4) ask for specific help if you need it
Breh
i was waiting for that one
Make it yourself @wide hull
"can"? yes sure
"will"? no
Fack you
kuuh i thought u had a magic wand for these moments? 😛
Or go steal a GitHub bot
@wide hull you see, bots are basically softwares
and softwares arent generally free
not that I'd make one even if paid
As you were told: <#general message>
We don't make bots for people, so if you want a dev, find one and pay them
refer to fiverr or freelancer for that matter
yeah that's what the link is to 😛
my price is NaN dollars
Fack you
🖕🏿🖕🏿🖕🏿
thats not nice :<
@drowsy crag wanna take this guy? Please? ^_^
Fack youuu
-m 809939073451819049
🤐 Muted رمضان مبارك 🌙#2267 (@wide hull)
Well i kinda say java is more tiring than python
we out here
nom!! 😄
Thanks nom! 

nom to the rescue
wait until you need to debug
java is more verbose, but DEFINITELY easier to debug than python
i find debugging async tideious
Ohhhhhhhhhh
debugging = finding the bug
🇪 🇽 🇦 🇨 🇹 🇱 🇾
usually debugging comes right after "ive optimized my code" and then you go "oh no...i wish i never done that"
-.-
Uuuuuuu
imagine getting a bot for free 
Imma use java for debug and python for code
nonono
Uhhh yes

Wait so ur saying
They cant work each other?!?!?!?!?11!?!?!1!?!?!111?!?!!1
and the other swahili
And if u translate the swahili
that's called embedded coding
hahahaha
Fun fact: dont translate swish in swedish
but they still dont mix
I see...
you can make both work together, even in the same runtime
TRANSLATE IT IF U DARE
but they'll never become one
nah ?
No it doesn't, I speak Swedish brother
Swish
isvitzerland
LOL
Ok imma show u the true meaning of swish in swedish
Shoud i send it here or i send in general
took me a long time to find out "Swi" isn't spoken like "Sui"
Pls trans it
its french ?
Swish in swedish
РРРРРУУСКИЕ БООООГАТЫРИ ВОТ ИЛЮША С ЛЕГКА РАЗМИНАЕТСЯ А ПРИДУРОК УЖЕ ТУТ КАК ТУТ
It literally doesn't mean anything mate
It's sus
silent sw'ish
Lol yyesp
hahahahahaahahhahahahahahahahahahahahahaahhahahahah sususususu very funny.
anyway
wronk even ...thats the worst kind of wrong u can have
And then swedish
Yep
back to topic, choose one lang and stick to it
Oki sry
And pls dont post badd words?
lol Fued
And yea cring it is
i kinda feel sad for him now 😛
Oh imma trans that
Use #general-int for other languages please
Did u say u rape ur dog
@drowsy crag we have a cool rule breaker here
-noes
Para otros idiomas además del inglés, use #general-int y use #support para obtener ayuda con top.gg.
Uh oh
🤐 Muted chrome 5#7300 (@half iron)
I get u
can someone help, my footer wont go to the bottom of the page
position: absolute;
bottom: 0;
}```
and my body has 100vh body { margin: 0; padding: 0; font-family: 'Ubuntu'; width: 100vw; height: 100vh; }
doesn't 100vh need to be in quotation marks?




?


