#development

1 messages Β· Page 1336 of 1

drifting wedge
#

the vars arent wokring yet

#

so itll say hello (ur discord name)

#

etc

main trench
#

Yo that's sick

drifting wedge
#

yea

#

we got a big team working on it

#

so we're getting a lot done fast

main trench
#

Hope it goes well for ya

drifting wedge
#

and this is the server selector

tame kestrel
#

Wait that's so cute!

drifting wedge
#

?

#

mine?

tame kestrel
#

ya

drifting wedge
#

thanks πŸ™‚

#

btw we decided with paypal intergration

main trench
#

This makes me wanna redesign my bot dashboard lmao

drifting wedge
#

wuts urs?

#

we're adding darkmode dw

#

lol

#

this is like really basic we've been doing it for like a week now

#

and the other dude whos doing it with me is in australia so we only got a couple hrs per day

#

so itll take a ton of time

#

@main trench wuts urs like?

main trench
#

mine

#

this is page 2 of 3

drifting wedge
#

one of my devs is called goose lol

main trench
#

pog

drifting wedge
#

i deleted it

#

cuz im not supposed to be showing it

#

but thats it

#

u on windows 86?

main trench
#

lol

#

no im on win 10 with a windows xp theme

drifting wedge
#

oh

#

lol

main trench
#

also win 86 isnt a thing

drifting wedge
#

oh

#

i think i meant vista?

main trench
#

lol

drifting wedge
#

do script tags go anywhere?

#

in html?

earnest phoenix
#

head

quartz kindle
#

& shoulders

main trench
#

Pog

white vapor
#

is there a way for my bot to display the amount of servers its in?

#

like in an embed or something

slender thistle
#

do script tags go anywhere?
not in the body

quartz kindle
#

nothing wrong with script tags in the body

sharp thicket
#

hello

#

cuz im trying to use their api

earnest phoenix
#

if you want to create bins just use better alternatives i.e. hastebin and hastebin forks

sharp thicket
#

yes but i want to do it with my bot

earnest phoenix
#

so?

sharp thicket
#

does hastebin have an api?

earnest phoenix
#

yes

sharp thicket
#

whats it called?

earnest phoenix
#

it isn't

sharp thicket
#

what

earnest phoenix
#

you just POST to a url

#

sec

sharp thicket
#

k

earnest phoenix
sharp thicket
#

kk

#

well im too lazy to do that so i found an api

#

thx for reminding me hastebin exists

earnest phoenix
white vapor
#

is there a way for my bot to display the amount of servers its in and put it in an embed?

earnest phoenix
#

of course

drifting wedge
#
  <script>
    window.onload = function(){
      document.querySelector('.btn').onclick = function(){
          if(this.className.match('btn_red')) {
              this.className = 'btn';
          }
          else {
              this.className = 'btn btn_red';
          }
      };
  };
  </script>  ``` this is the js on my head script tag for html
#

what do the classname = mean?

earnest phoenix
#

take a guess

drifting wedge
#

ik its the class name but isnt the id related?

earnest phoenix
#

in this example? no

#

you're selecting a class and working with classes

#

no mention of an id

#

how come you managed to design that dashboard but you don't know the distinction between classes and ids Thonk

#

are you using a template

drifting wedge
#

@earnest phoenix im getting help lol

#

im doing this by myself

#

for the dashboard i do it with some toher ppl

white vapor
#

can an embed use emojis in its footer?

sudden geyser
#

I don't think it can use custom emojis or Twitter emojis, but it can use raw emojis like \πŸ˜„

white vapor
#

ok thanks

viral plover
#

I'm using zombie.js to visit a website (multiple times) to gather data. It almost completes gathering it all before saying there's too many listeners.
It's always when there's two left.
Does anyone know why after visiting 100s of pages it's only on the last two that there's too many listeners?
Or a way to check the current amount of listeners and make sure the limit isn't exceeded?

quartz kindle
#

where are the listeners? what are they attached to?

earnest phoenix
#

+SERVERINFO

#

!play mc pose 80

viral plover
#

I uh, just used browser.visit and executed a function from that.

#

Sorry for the delayed response.

quartz kindle
#

i mean

#

what does the full error say

#

usually its says "too many YYY listeners attached to XXX"

viral plover
#
(node:4532) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 idle listeners added to [EventLoop]. Use emitter.setMaxListeners() to increase limit
(node:4532) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [Browser]. Use emitter.setMaxListeners() to increase limit
(node:4532) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 tick listeners added to [EventLoop]. Use emitter.setMaxListeners() to increase limit
#

Hmm.
Like node line is different than before.

quartz kindle
#

can you show your code?

viral plover
quartz kindle
viral plover
#

So that it doesn't visit the webpages too fast.
I haven't re-tested, but when I wrote this code it caused my bot to crash inconsistently. I guessed it was because the website blocked access due to how fast it was visiting the different pages.

quartz kindle
#

there are better ways to achieve that

viral plover
#

Yeah, probably.

quartz kindle
#

currently your code is basically blocking itself

#

the reason for the warning is that you are executing an async function in a loop

#

so every single browser.visit is done all at once

#

at the same time

viral plover
#

Oh right, I was supposed to move the delay so that doesn't happen, but instead I left it out of the most frequently called loop...

quartz kindle
#

the best approach is to use promises

viral plover
#

Ah yes. I've heard that word and expected it to be useful but uh, foolishly? never looked into it more.

quartz kindle
#

using promises with the async/await syntax allows you to properly queue requests, even inside a for loop

#

so that the next loop only continues once the previous is done, and it does so without blocking your process

viral plover
#

So I should research promises and integrate it into the loop.

Automatic queuing sounds very convenient.

#

Thanks for your help!

ancient nova
#

does anyone know how to get author id from guildDestroy event?

waxen tinsel
#

well cant only the guild owner delete the guild? because then you can just get the guild owners' user id from the guild object or however ur language works

misty sigil
#

^ that

ancient nova
#

no, guildDestroy event is when bot leaves the guild or get's kicked from it

sonic lodge
#

guildDestroy concerns when the guild is deleted as well

waxen tinsel
#

ah, dont think you can find out who kicked it, or why it left unless it was via your own command.

ancient nova
#

@sonic lodge ah I see, didn't know that

waxen tinsel
#

Unfortunately, all you know is that the bot is no longer in the server, cant really find out why or anything

ancient nova
#

I see

#

thanks

clear basin
#
(node:2432) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions
    at RequestHandler.execute (/home/runner/Bot
/node_modules/discord.js/src/rest/RequestHandler.js:170:25)

Hi, I have a problem with my bot that is sending error messages in the console, I went through all the code but did not find the error, could someone help me?

misty sigil
#

well

#

read the error

clear basin
#

It says that permissions are missing, but I have them well configured, even in the invitation administrator is required for the bot

tame kestrel
#

It could be anything the bot is tryna do my dude

I had a similar error, luckily after a LOT of debugging it was the bot accessing the audit log when it doesn't have perms

clear basin
#

mmm it can also be that problem with the audit log because I have a fetch for the messageDelete event

#

but it still enters the audit log

waxen tinsel
#

So if I had: ```py
def test(i):
return i*2

async def test(i):
return i*3

print(test(1))
print(await test(1))

Would this work in theory
reef carbon
#

how do you import views in Django Rest Framework?

#

it's like from something import views

#

I'm not sure what something is

earnest phoenix
#

Wait, what are you trying to import views into?

#

@reef carbon

#

Into urls.py?

reef carbon
#

yeah

earnest phoenix
#
from . import views
#

That should work

reef carbon
#

oh ok

#

Thanks!

earnest phoenix
blissful coral
#

If I am sending a message to a user via dms and it can't send the message how do I catch it

#

I am dumb rn

#

Sorry

earnest phoenix
#

@waxen tinsel test is defined twice, it would error

#

Also, why would you mix sync & async like that?

waxen tinsel
#

I was trying to be lazy in summary

earnest phoenix
#

Sounds like a bad idea to me

reef carbon
#

does anyone know why my Django Rest API says No Module name Webapp but I don't have webapp anywhere in my code?

drifting wedge
#

would i need js to use mongo in html?

misty sigil
#

you can't use mongo in html without a backend

drifting wedge
#

backend is flask

#

we can input data

#

but how do we get data?

#

like for example from an input box

hollow sedge
#

why can't you use pymongo if you're already using flask?

drifting wedge
#

i can

#

but how would i get data

#

like i can use vars in html from flask

#

but how do i give flask data?

hollow sedge
#

🀷

misty sigil
#

@glad charm do the tag

earnest phoenix
#

@reef carbon That's a general error

#

Could be fucked up directory structure, a typo, etc.

inner wharf
#

Anyone know of a good alternative to youtube-dl? I'm trying to use it for my bot but I'm getting JSON parsing issues that make it impossible to use

reef carbon
#

from . import views Cannot import name 'views' @earnest phoenix

earnest phoenix
#

What's your directory tree look like?

reef carbon
#

I fixed the webapp btw

#

@earnest phoenix

#

do you know why it's happening?

earnest phoenix
#

You don't have a file named views.py ?

reef carbon
#

i've only done startproject

earnest phoenix
#

I think you are in a project directory which controls all the apps for Django, you need to create an app

reef carbon
#

it doesn't say to do that so idk

earnest phoenix
#

Honestly at this point, I'd just suggest another guide, with more info @reef carbon

#

Corey Shcafer has a good series about it, plus it gives you LOT more information, like custom domain, HTTPs setup, etc.

#

That guide doesn't even show you how to setup apps, or to serve them

reef carbon
#

oh ok

earnest phoenix
#

It uses Apache instead & SQLite

reef carbon
#

oh

earnest phoenix
#

Its a better guide, but the database it uses isn't as good as Postgres, but you can find a separate guide to set that up v. easily or just use the info in that article

reef carbon
#

isn't nginx easier than apache?

earnest phoenix
#

Honestly, yeah

#

But I'd still say the guide I linked is better

reef carbon
#

oh ok

#

I worked this whole day on this

#

now I have to start from scratch

earnest phoenix
#

Apache config can be hell, but Corey takes care of it in the videos, so it shouldn't be too hard

reef carbon
#

sometimes you just feel like throwing you computer

#

lol

earnest phoenix
#

I know that feeling, lmao

#

But its so satisfying once you finally get said problem fixed & working

reef carbon
#

yeah that's basically what keeps you going

earnest phoenix
reef carbon
#

well, thanks for the help. I'm gonna start tomorrow.

earnest phoenix
#

Np

drifting wedge
#

@slender thistle Ik u said u don’t wanna be part of a bot team, but I was wondering If you’d be interested in working on a dashboard, and server stuff? Lmk!

slender thistle
#

Ain't cut out for any sort of group development, thanks

drifting wedge
#

Aight, thanks anyways

solemn latch
#

group development sucks, the only kind i like is downloading libraries

drifting wedge
#

group development sucks, the only kind i like is downloading libraries
@solemn latch for me it’s been working out great

#

Gotten a ton more work done

solemn latch
#

more work compared to what πŸ€”

#

you solo

#

or compared to what youd each do individually either way

drifting wedge
#

@solemn latch we each have things we r good at

#

I would have NEVER gotten this far without their help

#

It’s like we each do things we r good at

ivory seal
#

can u send a dm message to the user object in discord?

#

ping me when reply plz

unkempt marsh
#

It's possible.

ivory seal
#

i have tried it out but if i do user.send its says cannot send

unkempt marsh
#

Maybe that user DM is closed.

ivory seal
#

no i tried it with mine

#

and mine's not closed

unkempt marsh
#

Error?

#

Show me.

ivory seal
#

client.users.cache.get('<id>').send('<message>'); - This should work right?

#

cause i can get id from the object

unkempt marsh
#

Show me the error, so I can understand it well.

#

I'm using fetch instead of .get

haughty bough
#

is it better to develop a bot using only classes or functions? or does it have no relevant differences?

delicate shore
#

Why error

#

I'm tryna download discord.js/opus

wicked pivot
#

how to check if in an array there is already an element that i want to add?

solemn latch
#

opus is moody about installs

fast trench
#

if I want to only get the 2 and 3rd args in a message to be used in a part of a command how do I weed out the stuff after those arguments? I know how to weed out before but not after

blissful coral
#

Umm?

delicate shore
#

@solemn latch my node isn't latest version can it be reason

solemn latch
#

i just know opus has requirements

#

and you need to look at those requirements to install it

blissful coral
#

Figured it out

delicate shore
#

wait my node is latest version

#

and you need to look at those requirements to install it
@solemn latch where can i find them

solemn latch
#

πŸ€·β€β™‚οΈ

delicate shore
misty river
#

hiya, just wondering if anyone knows some fairly simple eris bots that i could take a look at

delicate shore
#

dank memer

misty river
#

im moving over from discord.js, and i've read the docs, but seeing something actually being used helps me understand it better

delicate shore
#

@solemn latch it worked

#

Developer essential tools something weren't installed on my VPS

sick fable
#

Is there any website that hosts bots for free?

still cliff
#

No, @sick fable. There exists nothing such as free on the internet.

sick fable
#

No, @sick fable. There exists nothing such as free on the internet.
@still cliff πŸ₯Ί Fr?

#

πŸ’”

#

:{

still cliff
#

You can however sign up for AWS which will give you its free tier for one year.

sick fable
#

You can however sign up for AWS which will give you its free tier for one year.
@still cliff thanks <3

solemn latch
#

google f1 micro would be a good small bot vps

#

which is always free

delicate shore
#

Yo woo

ember lodge
#

well i have a bunch of this keys in my JSON https://i.imgur.com/rgpfZvA.png

how do i obtain a key with the object inside it in NodeJS (like searching for the key and then obtaining the name object)

solemn latch
#

yo pg

sick fable
#

Alright, I coded some commands and I am coding this discord.py bot warn command.I really need some help like if a Moderator types ,warn , it should send Please specify a user!.

@client.command()
async def warn(ctx, user: discord.Member,
, reason):
embed=discord.Embed(title=f"Succesfuly Warned {user.name}!" , description = f"User warned by : {ctx.author.name}\n
Reason** : {reason}" , colour=discord.Colour.green())
await ctx.send(embed=embed)
emb=discord.Embed(title = f"You have been warned From {ctx.guild.name}!" , description = f"Reason : {reason}" , colour = discord.Colour.teal())
await user.send(embed=emb)***

Help me asap before I post this query on stack overflow!

silver lintel
#

just see if there are args or no

restive furnace
#

also, i love my old code, its so efficient >.>
my memory usage is like 0-10mb yesh

#

so really efficient is yours mmLol

slender thistle
#

Why would you ever use bold and not specifically codeblocks

sick fable
#

Why would you ever use bold and not specifically codeblocks
@slender thistle idk 😏

slender thistle
#

set reason arg's default value to None and in the command itself check if reason is None

sick fable
#

set reason arg's default value to None and in the command itself check if reason is None
@slender thistle kk

#

set reason arg's default value to None and in the command itself check if reason is None
@slender thistle thank you brother ❀️

sick fable
#

discord.ext.commands.errors.CommandInvokeError: Command raised an exception: UnboundLocalError: local variable 'embed' referenced before assignment

#

What does it mean?

pale vessel
#

you used embed before assigning it

#

check your code

sick fable
#

K

earnest phoenix
#

How do you change a selection's attributes in d3?

#

@pale vessel hey chip bot how are you sending messages outside of testing channels

pale vessel
#

element.attr("href", "https://top.gg")

earnest phoenix
placid iron
#

So what is the difference between horizontal scaling and vertical for databases

cinder patio
#

Of course, only a socket.io client though @earnest phoenix

vestal walrus
#

Does anyone know how to load opus?

Im having trouble setting up my music bot to work with Heroku. It works perfectly fine on my host machine, however, I get an "Opus Not Loaded" error when I run the bot in Heroku. I already have a ffmpeg buildpack(https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git)(https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git) w (https://github.com/dubsmash/heroku-buildpack-opus.git). I also have youtube_dl and discord.py[voice] in my requirements.txt file

Command raised an exception: OpusNotLoaded:

placid iron
#

inb4 people tell you to not use heroku

#

Don't mind them, they don't like free things

vestal walrus
#

@placid iron Is it strange to have a verified bot while hosted for free on heroku then? πŸ˜‰

slender thistle
#

Isn't setting up opus on Heroku a pain?

fluid basin
#

opus is not ffmpeg

#

ffmpeg is not opus

slender thistle
#

(As I'm unfamiliar with the differences, they're both similar to me KEKW)

placid iron
#

Not really I guess, heroku just has a few flaws compared to a VPS @vestal walrus my bot is in 660 servers and still on heroku 😩

Yeah, I have no idea about Opus tho. It could be that you do need to not use heroku to use Opus, or you just forgot to install something else. No idea

vestal walrus
#

Then how am I getting an opus error? when using ffmeg

earnest phoenix
#

Of course, only a socket.io client though @earnest phoenix
@cinder patio so the server can only be node.js but the client can be either node.js or browser javascript

placid iron
#

@vestal walrus how are you trying to stream the music

#

Show codes

vestal walrus
#

@client.command(pass_context=True, aliases=['p', 'pla'])
async def play(ctx, url: str):
global allcommands
allcommands += 1

song_there = os.path.isfile("song.mp3")
try:
    if song_there:
        os.remove("song.mp3")
        print("Removed old song file")
except PermissionError:
    print("Trying to delete song file, but it's being played")
    await ctx.send("ERROR: Music playing")
    return

await ctx.send('▢️``Getting everything ready now``')

voice = get(client.voice_clients, guild=ctx.guild)

ydl_opts = {
    'format': 'bestaudio/best',
    'postprocessors': [{
        'key': 'FFmpegExtractAudio',
        'preferredcodec': 'mp3',
        'preferredquality': '192',
    }],
}

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
    print("Downloading audio now\n")
    ydl.download([url])

for file in os.listdir("./"):
    if file.endswith(".mp3"):
        name = file
        print(f"Renamed File: {file}\n")
        os.rename(file, "song.mp3")

voice.play(discord.FFmpegPCMAudio("song.mp3"), after=lambda e: print("Song done!"))
voice.source = discord.PCMVolumeTransformer(voice.source)
voice.source.volume = 0.07

nname = name.rsplit("-", 2)
embed = discord.Embed(
title = f"Playing: {nname[0]}",
colour = discord.Color.green()
) 
await ctx.send(embed=embed)
print("playing\n")
earnest phoenix
#

@placid iron please stop using heroku πŸ™

placid iron
#

Never

cinder patio
#

@earnest phoenix yes

earnest phoenix
#

@vestal walrus use code blocks and for code snippets larger than 10 lines use an external service like https://hatseb.in πŸ™

#

@cinder patio aweaome

#

I'm making a public among us chat thingy

placid iron
#

One Google search

vestal walrus
#

if not discord.opus.is_loaded():
# the 'opus' library here is opus.dll on windows
# or libopus.so on linux in the current directory
# you should replace this with the location the
# opus library is located in and with the proper filename.
# note that on windows this DLL is automatically provided for you
discord.opus.load_opus('opus')

Where am I supposed to put this?

#

Apparently this loads it??

placid iron
#

I guess in on_ready ?

slender thistle
#

maybe before the .run part

#

as on_ready can fire multiple times

pale vessel
#

is there not something similar to once in node in python

slender thistle
#

Not that I'm aware of, at least

placid iron
#

Its not hard to just make a bool to check if it's already been done though

slender thistle
#

oh yeah I somehow missed the if statement in that snippet

placid iron
#

Comments = reduced readability
Confirmed

slender thistle
misty sigil
#

yea very confirmed

earnest phoenix
#

all hail god emperor trump

placid iron
#

@earnest phoenix I have GitHub student now so I have 24/7 with no restarts now

#

Which is nice I guess

earnest phoenix
#

you must all kneel and give your children wifes and yourselfs as slaves to our holy roman emperor the supreme Trump

placid iron
#

I like the restarts tho. Clears out the cache

#

And my bot turn on in like 4s so it's not a problem

slender thistle
#

@earnest phoenix can you not

sick fable
#

@slender thistle how much time does it take to get your bot verified on top.gg?

slender thistle
#

see pins

placid iron
#

😩

slender thistle
#

Was my point unclear somehow

sick fable
#

@slender thistle I didn't got it lmaoo

#

You can just tell

slender thistle
ionic dawn
#

@slender thistle how much time does it take to get your bot verified on top.gg?
@sick fable a few weeks

slender thistle
#

about 7 weeks

#

+- 1-2 on top of that

sick fable
#

Damn 😦

ionic dawn
#

Relax loLmm

sick fable
#

K

earnest phoenix
#

i love greek pita bread

#

yum yum

hasty mulch
pearl trail
#

invalid user GWslippyPeepoS

ionic dawn
#

i love greek pita bread
@quartz ember Development

tardy hornet
#

i need help

#

discord want my picture id to get verified

#

will they approve me if im not 18+?

misty sigil
#

yes

tardy hornet
#

how old i need to be?

misty sigil
#

13

tardy hornet
#

oh then good

slender thistle
#

at least 13

hasty grove
#

Hi !
Do someone know how can I create a "card" (such as mee6 for departures / arrivals with a member avatar, member name... I use python for my bot.

whole knot
hasty grove
whole knot
#

Oh, got you

hasty grove
#

(I use embeds for send images, but I don't know how create the image)

earnest phoenix
#

canvas bruh

whole knot
#

Well, it is embed.set_image(url=YourInput) for images

ionic dawn
#

Read about canvas, is pretty easy to use

earnest phoenix
#

create a template in ps then just fill out everything else in your code, best way to save resources

whole knot
hasty grove
#

Read about canvas, is pretty easy to use
@ionic dawn Do you know the best library for canvas ?

earnest phoenix
#

lol

ionic dawn
#
let embed = new Discord.MessageEmbed()
  .setImage('http://blabla/bla.png')

msg.chn.send(embed)```
#

@ionic dawn Do you know the best library for canvas ?
@hasty grove huh?

hasty grove
#

for edit my background image to add the member name/avatar

ionic dawn
#

there's a guide that shows how to make canvas with users img/username etc

#

give me a sec ill link it

hasty grove
#

do you have with python not JS ?

ionic dawn
#

Nope

#

only used djs(JS) and JDA(Java)

#

I don't really like python

hasty grove
#

OK

slender thistle
#

Use PIL but be aware of blocking

hasty grove
#

this library block the rest of the bot when it works ?

earnest phoenix
#

@hasty grove web canvas API is supposed to be used with javascript
there are other, better libraries for python

#

let embed = new Discord.MessageEmbed()
.setImage('http://blabla/bla.png')

msg.chn.send(embed)

@ionic dawn it's not chn it's channel

slender thistle
#

this library block the rest of the bot when it works ?
yes

#

There's a small tricky fucky workaround d.py documentation suggests, though

earnest phoenix
#

i smell asynchronous pogeyramming

ionic dawn
#

let embed = new Discord.MessageEmbed()
.setImage('http://blabla/bla.png')

msg.chn.send(embed)
@ionic dawn it's not chn it's channel
@earnest phoenix What?

#

i was making it shorter

earnest phoenix
#

🀦

#

you did not specify that you made it shorter

hasty grove
whole knot
#

Good to hear, good luck! If you need more help I will also look at the article and try to help

ionic dawn
#

you did not specify that you made it shorter
@earnest phoenix isnt msg also, its message scared

stuck scaffold
restive furnace
#

delete packages, reinstall them, make sure you have c++ compiler and python intepreter.

earnest phoenix
#

@earnest phoenix isnt msg also, its message :scared:
@ionic dawn you can rename message to msg and discord.js won't care but if you rename channel to chn discord.js will yeet bean hammer at ya

ionic dawn
#

@stuck scaffold what pckage are you trying to install

restive furnace
#

unless you extend your message class and when it's contructed, make aliases

ionic dawn
#

As far as I knkw that happend with Canvas 2.6.0 or sqlite

earnest phoenix
#

quick.db is fucked up on windows
period

ionic dawn
stuck scaffold
#

ffmpeg-binaries

ionic dawn
#

Show the last prt of the error

earnest phoenix
#

prt

ionic dawn
#

Mate

earnest phoenix
#

what's the point of the last part anyways
isn't that just a bunch of debug log file paths

stuck scaffold
ionic dawn
#

what's the point of the last part anyways
isn't that just a bunch of debug log file paths
@earnest phoenix well, the last part shows the pckage that originates the error, atleast when I has those errors

#

@stuck scaffold izma-native@3.0.8, whats that?

tired panther
#
</style>
.titleandvote > a:first-child {
color: red;
}
</style>
``` @delicate zephyr
#

so?

ionic dawn
#

Try reinstalling that or moving fallback

stuck scaffold
#

🀷

pale vessel
#

<style> </style>

stuck scaffold
pale vessel
#

</style> </style> is invalid

tired panther
#

how should it be?

sick fable
#

Hey πŸ™‚ ! I created this server info command. I am just having this doubt that I coded this thing which will show that on which time you joined this server at:-

member.joined_guild._at.strftime("%a, %d %B %Y , %I %M %p UTC")

Will this command work?

pale vessel
sick fable
placid iron
#

Try it and see?

tired panther
#
<style>
.titleandvote > a:first-child {
color: red;
}
</style>
``` does not work either @pale vessel
placid iron
#

But it won't work

#

Clear cache? @tired panther

tired panther
#

The preview dos not show changed color button

pale vessel
tired panther
#

yes

#

just the invite button, both are okay to

pale vessel
#

the selector is .titleandvote span. if you want to change the background, it's background-color: red;, not color. color is for the text

tired panther
#
<style>
.titleandvote span> a:first-child {
background-color: red;
}
</style>
``` so?
#

@pale vessel

pale vessel
#

read my message

#

you don't need > a:first-child

tired panther
#

ah okay

#

works thx

earnest phoenix
#

how do you set multiple classes for the same tag?

tired panther
#

can u add hover effects?

earnest phoenix
#

can u add hover effects?
@tired panther yes

#

element:hover {}

pale vessel
#

how do you set multiple classes for the same tag?
@earnest phoenix commas

#
a.foo, a.bar {

}```
earnest phoenix
#

So I need to replace the spaces here with commas?

.attr("class","notif success_notif");
pale vessel
#

oh

#

bruh

#

nah, a space

earnest phoenix
#

ok

pale vessel
#

works the same in d3

tired panther
#

@earnest phoenix how to make it biggger?

pale vessel
#

you're just going to be changing the attribute

earnest phoenix
#

@earnest phoenix how to make it biggger?
@tired panther size ig

pale vessel
#

try font-size

#

the button will adjust its size based on the font size

earnest phoenix
#

what should i set the background color for error notifications

#

normal red seems too dark

pale vessel
#

normal red can be fine if you make the text legible

tired panther
#

where can i find the name of the elements?

earnest phoenix
#

inspect element

pale vessel
#

i use ctrl+shift+c

#

i can just click the element that i need

vale garden
#
client.on('message', async (msg) => {
        const args = msg.content.slice(prefix.length).trim().split(/ +/); 
         const isCommand = msg.content.startsWith(prefix);
         const cmd = args.shift().toLowerCase();

           let counter = 0;

client.on('message', async (msg) => {

  const chanID = msg.channel.id;

  if (isCommand) {return}
  else if (msg.author.id === "768011584643268619") {return}

  else if (!(isCommand) && !(msg.author.id === "768011584643268619")) {
  
  
  counter++
  console.log(counter);

  if (counter % 2 === 0 && counter !== 0) {

    client.channels.cache.get(chanID).send('yeet').then(() => {
      counter = 0;
      console.log("new: "+counter);
    })
  }
  }

})
#

hi so i have this

pale vessel
#

hmm

vale garden
#

and for some reason when i send 2 messages

pale vessel
#

yes, you have two message events

#

remove one of them

vale garden
#

the counter goes like this

#

but why does this happen

#

the second 1 comes outta nowhere

pale vessel
#

ignored

vale garden
#

wdym

#

what

pale vessel
#

good luck mate

vale garden
#

uh

#

um @pale vessel

#

its no longer incrementing

#

tf

pale vessel
vale garden
#

i removed that

pale vessel
#

add everything inside the first event to the second one

vale garden
#

its only one event now

#

but now its stuck at 1

earnest phoenix
#

I just deleted the 18000 line stylesheet I stole from discord

pale vessel
#

yes but did you merge the code

#

you need the code inside the event you removed

earnest phoenix
#

gtg use ahk window spy to see discord's color stuff

tired panther
#

xd

pale vessel
#

you also should put the counter outside the event

#

otherwise it'll always be 0

vale garden
#
client.on('message', async (msg) => {
        const args = msg.content.slice(prefix.length).trim().split(/ +/); 
         const isCommand = msg.content.startsWith(prefix);
         const cmd = args.shift().toLowerCase();

           let counter = 0;

  const chanID = msg.channel.id;

  if (isCommand) {return}
  else if (msg.author.id === "768011584643268619") {return}

  else if (!(isCommand) && !(msg.author.id === "768011584643268619")) {
  
  
  counter++
  
  console.log(counter);

  if (counter % 2 === 0 && counter !== 0) {

    client.channels.cache.get(chanID).send('yeet').then(() => {
      counter = 0;
      console.log("new: "+counter);
    })
  }
  }
#

its stuck at 1 not 0

#

idekwhy

pale vessel
#

put the counter outside the event

vale garden
#

oh

pale vessel
vale garden
#

ok cool it works now

#

thx

pale vessel
#

nice

vale garden
#

yea i just realized

pale vessel
#

your bot requires administrator for one of its commands

earnest phoenix
#

I saw admin perm is in most declined reasons, what is t means?
@gray river the bot asks for admin even tho it only needs one perm

#

admin gives all perms

#

so there's no point in giving admin

#

and the bot might use it badly

#

So i cant create a command that requires admin perm?
@gray river admin allows users to bypass some stuff so if you really really REALLY need it then you gotta explain why

#

that's allowed

pale vessel
#

@gray river admin allows users to bypass some stuff so if you really really REALLY need it then you gotta explain why
@earnest phoenix such as?

misty sigil
#

channel overwrites

earnest phoenix
#

literally what Minh said

#
Uncaught ReferenceError: d3 is not defined
    at <anonymous>:1:1

discord noobs they don't use d3

#

yes I'm hacking into discord's stylesheet because yes

thin turret
shy steeple
#

Is cloudflare down?

earnest phoenix
#

Β―\_(ツ)_/Β―

cloud pebble
#

so when you guys say cache the guild prefixes, you mean like locally save to a JSON or something else?

faint prism
#

JSON Database
Is this bait?

cloud pebble
#

Mongo DB for actual storing stuff but reading from that on every command invoke is pretty expensive isn't it?

faint prism
#

Hardly when comparing it to an serializing and a IO operation

cloud pebble
#

hmm so how would you go about caching the prefixes in python sus

faint prism
#

Cache would imply keeping it in memory

umbral creek
#

my bot dont play music why but Δ± set it

faint prism
#

But synchronized with the database preferably

earnest phoenix
#

I'm not approved for priveleged intents so I can't use the guild member events in v8?

#

is there a way to remove al falsy values from an object?

faint prism
#

v8 of what

earnest phoenix
#

api

#

new version

cloud pebble
#

i see, i just see most people saying here it's better to cache guild prefixes but wasn't sure how they were even doing that GWworkshopAkaShrug

opal plank
#

discordum

#

v8 seems fun

#

waiting for d.js 13v so we can cache the amount of atoms in the sun too

faint prism
#

is there a way to remove al falsy values from an object?
@earnest phoenix someone who knows JS maps will reply to this. I'm sure of it

earnest phoenix
#

is there a way to remove al falsy values from an object?
so if i have an object:

{
yeet: "yeet",
lol: null,
potato: NaN
}

it becomes:

{
yeet: "yeet"
}
#

my keboard sees to be havigna bad ie today

#

leme go reload the pae

slender thistle
#

Can you use .filter on maps?

opal plank
#
for(let [key, val] of Object.entries(OBJECTHERE)) if(!value) OBJECTHERE[key] = undefined```
#

300 iq one liner

slender thistle
opal plank
faint prism
#

that wouldn't shrink the obj though right

opal plank
#

im drunk again, pay no heed

#

you are basically setting that object key as undefined

faint prism
#
{
  yeet: "yeet",
  lol: undefined,
  potato: undefined
}
#

oh the key

opal plank
#

yes, though cuz its undefined it should be fine

earnest phoenix
#

it's a falsy value tho

#

so !obj.lol should return true

opal plank
#

you can use delete too i guess

#

well yeah, if (!false) do thing

slender thistle
#

for(let [key, val] of Object.entries(OBJECTHERE))
if(value) OBJECTHERE[key] = value

opal plank
#

to make it true

earnest phoenix
#

oh yeah

opal plank
#

nono shiv

#

one line

faint prism
#

Where is that one guy who recommends maps for everything

opal plank
#
for(let [key, val] of Object.entries(OBJECTHERE)) if(!value) OBJECTHERE[key] = undefined```
earnest phoenix
#
for (let property of object) {
if (!property) delete object.property;
}
slender thistle
opal plank
#

me?

#

i use maps for everything

faint prism
#

idk, what's the map solution here

opal plank
#

its basically a 2.0 object/array with an index

earnest phoenix
#

technically this won't work right

opal plank
#

maps are super handy

slender thistle
#

it will

faint prism
#

doesn't map make a new array with elements from the previous?

earnest phoenix
#

object.property this will alwas remain the same

opal plank
#

no duplicates, can be referenced, has handy methods, has indexes, can have any value, that shit is like VSC when you are in the a place full of notepads and N++'s

#

@earnest phoenix you could do this

earnest phoenix
#

lemme try shiv's solution first

opal plank
#
for(let [key, val] of Object.entries(OBJECTHERE)) if(!value) delete OBJECTHERE[key]```
#

wdym shivs solution

#

he copied my snippet

faint prism
#

heheheh

opal plank
slender thistle
#

not really

opal plank
#

shhh

slender thistle
opal plank
#

you cloning the object rather than removing it

#

technically wrong

slender thistle
#

YOU DID IT IN YOUR FIRST SNIPPET TOO

opal plank
#

sssshhhhhhhhh

earnest phoenix
#

that didn't work lol

opal plank
#

no tears, just dreams

#

shhhh

#

which?

faint prism
#

witch?

opal plank
#

with?

slender thistle
#
l = {1: "a", 2: "b", 3: "c", 4: undefined, 5: null, 6: ""}
for (let [key, val] of Object.entries(l)) if (!val) delete l[key];
Object { 1: "a", 2: "b", 3: "c" }
earnest phoenix
#

erwin's solution

opal plank
#

the delete one?

#

or the undefined?:

earnest phoenix
#

you guys suck at spoonfeeding angeryBOYE

opal plank
#

undefined definetly works cuz ive used that nasty method before

earnest phoenix
#

@opal plank don't really remember

opal plank
#

i havent tried removing properties on a whimp like that though with the delete

earnest phoenix
#

alright

#

RBRAVE JSUT FOFIVE MNUTE WO PROPERLY AD SOP UCIGN MY KEBOARD

restive furnace
#

one thing, JS requires let on variable decl

opal plank
#

yes, words are hard

#

nah

#

make it global

#

like real men

restive furnace
#

eww global scope

earnest phoenix
#

RBRAVE JSUT FOFIVE MNUTE WO PROPERLY AD SOP UCIGN MY KEBOARD
@earnest phoenix i was trying to say BRAVE JUST FOR FIVE MINUTES WORK PROPERLY AND STOP FUCKING MY KEYBOARD

opal plank
#

i use Regex for command parsing, i use EmbedBuilders, i use VARs, i like forEach() loops, and i take screenshots of my code with my phone

earnest phoenix
#

i use Regex for command parsing, i use EmbedBuilders, i use VARs, i like forEach() loops, and i take screenshots of my code with my phone
@opal plank says the guy who yelled at me for VARs

opal plank
#

i also scored a perfect 10 in my iq test, bow before me peasants

crimson vapor
#

no

restive furnace
#

I got 180 score in my "Programming Knowledge" IQ Test

opal plank
#

if the joke didnt get thru, the avarage person iq varies between 85-105

faint prism
#

That's the average?

earnest phoenix
#

oh btw i didn't tell you why i needed to remove all falsy values from an object
this should tell you:

<press F12 and clicks on any message>
<goes to console tab>
$0.style
opal plank
#

i think imma go for more drunk coding

earnest phoenix
opal plank
pale vessel
#

dude add some paddings

#

that looks scary

opal plank
#

you still keps the frciking input type as text and not password?

#

FFS

pale vessel
#

LMAO

#

autocomplete passwords inc

opal plank
earnest phoenix
#

done

#

also what does padding do

opal plank
#

i hate the colors, ngl

slender thistle
#

as a Pythonisteer, I rate it very ugly and non-functional

earnest phoenix
#

it's the vsc atom theme

#

rate how ugly this typescript porn is
@earnest phoenix that actually looks cool

#

it's for IPC communication

#

it's the vsc atom theme
@earnest phoenix time to send mail in the poop to github
(yes mail in the poop)

#

i love typescript generics

opal plank
#

did someone say IPC?

earnest phoenix
#

i took a bit of a different approach with IPC since im communicating with c# so i get to take advantage of the super powerful tasks and threading api

opal plank
#

i love typecasting shit as unkown then as thing, shows a complete lack of proper interfacing when importing your types and promises

faint prism
#

Imagine using dynamic datatypes

opal plank
#

imagine not doing 19 pipes long types for different types of data

faint prism
#

imagine try/catching your own function

opal plank
#

data: type1 | type2 | type3 | type4| type5 | type11 | type12 | type13 = await something

earnest phoenix
#

@opal plank would you rather use <pre> or 1000 <br>

opal plank
#

i would rather not do frontend tbh

#

im having fun with my twitch ddoss project, thank you

#

speaking of which, i cant login on my host

faint prism
#

im having fun with my twitch ddoss project, thank you
@opal plank does your Twitch account that owns the token have PII in it?

earnest phoenix
#

front makes me want to rip my hair out i spent a good chunk of my day yesterday trying to figure out why my flexbox alignment wasn't working

opal plank
#

@faint prism not usre

#

also

#

hilp pliz

earnest phoenix
#

...my container wasn't a flexbox

opal plank
#

hilp

faint prism
#

It's simple

opal plank
#

cant login with neither powershell nor putty

faint prism
#

Twitch DDOSsed you back

slender thistle
#

...my container wasn't a flexbox
KEKW

faint prism
opal plank
#

thats not even twitch doe

earnest phoenix
opal plank
#

thats me host

#

the worst part is: it was working at the morning, i left it on while i took a nap, woke up, boom, gone

#

no changes at all

#

4h and it went from working to non working

misty sigil
#

thats how it works ig

faint prism
#

When you have sudo apt full-upgrade -y in a cron tab zoomeyes

opal plank
#

i have absolutely no idea how to fix that tbh

restive furnace
#

when you compile everything yourself πŸ‘€

faint prism
#

@restive furnace Are you saying you don't use APT?

restive furnace
#

well gentoo is what i use sometimes when im bored and have lots of time

earnest phoenix
#

fixed my keyboard
the usb cable was loose

restive furnace
#

(it doesnt use apt tho)

earnest phoenix
#

how do i force the HTML layout to put element Y on the right of element X

#

css float property

#

time to read MDN

restive furnace
#

or use neat html prop called <align=center>

faint prism
#

Or use the deprecated tag <center></center> mmLol

earnest phoenix
#

honestly i just use flex for alignment nowadays

#

modern and easy

faint prism
#

flexboxes are OP ngl

slender thistle
#

flexboxes are life

earnest phoenix
slender thistle
#

or, rather,
l
i
f
e

earnest phoenix
#

flexboxes are boxes
they're not life

slender thistle
#

you are about to become a squishy box if you don't shut up angeryBOYE

earnest phoenix
#

haha

#

i have netherite armor you can't squish me

balmy anchor
#

Just asking,
Is it an API abuse ?

setTimeout(async function() { res.daily = false; res.save().catch(error => console.log(error)); }, 86400000);
tardy hornet
#

what do i put there?

faint prism
#

24 hrs? no

tardy hornet
#

yes

rancid badge
#

the data you store lol

tardy hornet
#

oh

rancid badge
#

eg if you log stuff

#

i think

tardy hornet
#

like

#

heroku?

earnest phoenix
#

channel IDs

#

user IDs

balmy anchor
#

So is it an api abuse or not lol?

earnest phoenix
#

etc.

rancid badge
#

So is it an api abuse or not lol?
@balmy anchor dont think so

tardy hornet
#

so i need to put heroku?

earnest phoenix
#

everything that you store from discord needs to be written in that box

balmy anchor
#

k thx

rancid badge
#

nono, the stuff you store

tardy hornet
#

idk what i store

#

how do i check

rancid badge
#

bruh

faint prism
#

I store user Ids

rancid badge
#

didnt you make the bot lol

earnest phoenix
#

idk what i store
awhat

tardy hornet
#

i did

#

i dont store any thing

faint prism
#

what does your database store

earnest phoenix
#

then say that

#

lol

tardy hornet
#

ok

rancid badge
#

then say that

tardy hornet
#

ty lol

balmy anchor
#

is it only the data related to Discord or something else?

earnest phoenix
#

yes

rancid badge
#

ye

tardy hornet
#

can i do that?

rancid badge
#

i assume so

#

lol

tardy hornet
#

read the last one

balmy anchor
#

You don't have any database ur using?

rancid badge
#

ahh

tardy hornet
#

You don't have any database ur using?
@balmy anchor no

balmy anchor
#

mongodb or sql?

#

or something else

tardy hornet
#

no

balmy anchor
#

k i guess

earnest phoenix
#

economy system?

tardy hornet
#

no

earnest phoenix
#

tooth repairing?

balmy anchor
#

lmao

rancid badge
#

lol

#

i dont think you need to say stuff like custom prefixes

#

but im not sure

restive furnace
#

You need to say anything that uses discord things

tardy hornet
#

oh so 1 more question

restive furnace
#

How come custom prefixes work without storing GuildID?

tardy hornet
#

what each one of them means

rancid badge
#

How come custom prefixes work without storing GuildID?
@restive furnace ohhh, i see

#

so basically, userids, guildids etc

tardy hornet
#

can someone please help

misty sigil
#

How come custom prefixes work without storing GuildID?
@restive furnace magikck

#

πŸͺ„

tardy hornet
#

im scared i will mess things up

slender thistle
#

-verifybot

gilded plankBOT
#

Hi! It seems like you are looking for information on how to get your bot verified.

Once your bot reaches 75 servers or more, you are eligible for bot verification. On October 7, 2020, bots with 100 servers or more that are not verified will not be able to be invited to any more servers. You verify your bot on your bot's application page, under the "Bot" section in the sidebar.

If you need more information, check out this article written by Discord about The Future of Bots on Discord and you can ask questions in the Discord Developer Server.

We cannot provide support on how to get your bot verified.

slender thistle
#

P.S. read the last bit

tardy hornet
#

oh

#

sorry

#

what if i dont understand a question there?

#

can i ask?

#

@slender thistle

earnest phoenix
#

smh

#

oh my fucking god

tardy hornet
#

put it in ``

earnest phoenix
#

it'll still get detected

tardy hornet
#

is it something for me?

earnest phoenix
#

yes

tardy hornet
#

if yes just dm it

earnest phoenix
#

developers guild

#

but i can't send it

#

because im a whitename

#

smh

slender thistle
tardy hornet
#

ty

slender thistle
#

😎 join the auctions gang and never bid, cry

earnest phoenix
lyric mountain
#

why do I always see a d20 in discord dev's logo

faint prism
#

Same tbh

icy veldt
#

-verifybottr

earnest phoenix
#

trying is what matters

faint prism
#

yeah?

#

-verifymepl0xluca

earnest phoenix
#
Fetching messages for 272764566411149314 between undefined and undefined.

awesome

#
-> $0.style.font
<- ""

but $0 is my message???

abstract coyote
#

How could I change the background image with css on my top.gg page? I know the css flag is background-image: (image), however how do I implement it into the top.gg page?

earnest phoenix
#

bot-img class

#

iirc

tardy hornet
#

@opal plank hey Erwin, sorry for the ping, i just wanted you to know, my bot is getting verified, and i think its only because of you, and i think you didnt even notice, you helped me so much, i had to say ty,
i will never forget you.

earnest phoenix
#

@abstract coyote set the background-image property to the body element

abstract coyote
#

thanks!

#

Ok broken tooth i know i don't have anything to do with it but that was very moving c:

tardy hornet
#

ty

#

i just hope he will see that

abstract coyote
#

sameeeeee

#

that was rly wholesome :3

tardy hornet
#

☺️

unkempt ocean
#

I'm getting this error. it was working this morning and now it doesn't. I didn't change anything in the code.

HTTPError [AbortError]: The user aborted a request.
    at RequestHandler.execute (/root/heimdallr/node_modules/discord.js/src/rest/RequestHandler.js:107:21)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  code: 500,
  method: 'get',
  path: '/gateway/bot'
}
opal plank
#

@tardy hornet AShug

#

np

drifting wedge
#

yo gamers

tardy hornet
#

@abstract coyote he saw it

abstract coyote
#

:D

#

thats so wholesome :o

#

<3

earnest phoenix
#

how do you change the position of an element relative to its container in d3.js?

#

@pale vessel help me daddy

pale vessel
#

yes

#

style it

#

add a class or change the style attribute or something

earnest phoenix
#

i have this in the HTML:

<pre>
<!-- nothing inside yet-->
</pre>

this adds the element:

d3.select("pre").append("p");

but i want to move the appended element to the above of the container <pre>

#

add a class or change the style attribute or something
@pale vessel selection.style("position","top");?

abstract coyote
#

how could i change the detailed description section's background?

lyric mountain
#

css

abstract coyote
#

yeah ik but which bit am i styling?

earnest phoenix
#

how could i change the detailed description section's background?
@abstract coyote press F12 on Chrome, find the div element for that section then use the class of the div element in your CSS

abstract coyote
#

ohhh

#

thanks!

#

:p

sick fable
#

discord.py

What should be the code for my bot to automatically get the server invite by typing a command?

earnest phoenix
#

no one is going to spoonfeed you

sick fable
#

Lol k

earnest phoenix
#

why ain't d3.js changing the styling when i do .style("position","absolute");?
it's changing all other styling properties i say but just not this one

#

cry is (no longer) typing...

#

i'd help you but i never used d3js

#

f

#

@pale vessel daddy i need help again

pale vessel
#

with

earnest phoenix
#

why ain't d3.js changing the styling when i do .style("position","absolute");?
it's changing all other styling properties i say but just not this one

pale vessel
#

thonk

earnest phoenix
#

i just realized i can do .attr("style","my shit") KEKW

pale vessel
#

yea

#

just the css

#

easier

#

change the style attribute or something
oh i did say that

earnest phoenix
#

still not working pandasad

#

IT'S NOT EVEN SETTING THE FREAKING ATTRIBUTE

#

time to workaround it by using an external CSS stylesheet

#

        const market = await fetch('https://ro-webserver.herokuapp.com/items', {
            headers: {
                authorization: 'lol'
            }
        }).then(res => res.json());

            const items = market.filter(x => x.buyable)
                .slice(amount - 5, amount)
                .map(x => `${x.emoji} **${x.name}** β€” ${x.price} \n ${x.description}`)

            if (items.length <= 5) page = 1;
            else if (items.length <= 10) page = 2;
            else if (items.length <= 15) page = 3;
            else if (items.length <= 15) page = 4;
            else if (items.length <= 15) page = 5;```

how can i do this easier?
#

hm

pale vessel
#

time to workaround it by using an external CSS stylesheet
@earnest phoenix you can just style a class

earnest phoenix
#

switch statement

pale vessel
#

add the class to the element on click or something

earnest phoenix
#

@earnest phoenix you can just style a class
@pale vessel that will style every single thing and i only want to do it for one...

pale vessel
#

wdym

#

use a class

#

or id

#

and set the element to that specific class/id

earnest phoenix
#

ok so this is what i'm gonna do:

if there is already a global variable remove the id from it
send notification to user
set a lts_notif id to it
make it a global variable
repeat every time the function is run

yeah i know epic markdown code block styling on plain text

#

the external CSS stylesheet will control the styling for that specific IDed element

#

yes IDed

#

Is there a way to log IP's in HTML, I am maybe going to sell stuff, and I would like to stop scams.

#

no

#

Can I import a function?

#

that can do that

#

HyperText Markup Language

misty sigil
#

use a backend

earnest phoenix
#

^

#

it's for making the webpage if you want to do that logging stuff use smth like JavaScript or PHP

#

haha

#

anything on the frontend can be edited and disabled

#

the user has the right to do so

misty sigil
#

anything on the backend cannot be

earnest phoenix
#

also please put it in your privacy policy why you want to log IPs else karens will wreck you

misty sigil
#

and where you're storing them

pale vessel
#

if you're mining using their browser, tell them too

misty sigil
#

i don't fancy having my IP leaked by an insecure quick.db hosted on repl tbh

#

if you're mining using their browser, tell them too
this

#

a user expects just a site

#

not mining, not an ip logger etc

earnest phoenix
#

it's actually against the law in so many countries to do it and not notify the user of it

#

the entirety of EU disallows that iirc

misty sigil
#

and i see why

#

you can get some sensitive shit from an ip

earnest phoenix
#

if you can get sensitive shit from an ip why is it public

pale vessel
#

you tell me

earnest phoenix
#

thonk

#

answer: smth which probably us can't understand

misty sigil
#

cuz u need it to connect to things

earnest phoenix
#

can you change the container in which the element is in?
like if element #p is inside the first pre element move it to the other pre element

#

via js

#

via js
@earnest phoenix yeah d3.js

#

i know there are DOM methods

#

or normal js will work fine

#
#

wowza

#

that's actually not what i wanted but it's a lot better than my current method of doing shit

drifting wedge
#

my dashboard is 35 mb so far

#

is that too much?

earnest phoenix
#

my dashboard is 35 mb so far
is that too much?
@drifting wedge yes

drifting wedge
#

hmm

#

how much is normak?

earnest phoenix
#

if you don't have a CDN it's too large

drifting wedge
#

so i should get a cdn?

earnest phoenix
#

yes

drifting wedge
#

its not like 1 page tho

#

btw

earnest phoenix
#

how much per page

drifting wedge
#

its like multiple pages

#

1 sec

earnest phoenix
#

1 mb?

drifting wedge
#

less

#

total per page about 100kb?

#

wayy less

#

50 kb

#

20 even

earnest phoenix
#

awesome

#

but you should still use a CDN

misty sigil
#

you don't need a cdn for pages

#

just for the images

drifting wedge
#

i will ig

#

why not lol

#

but it loads fast

#

we just have like a fucking huge dashboard

#

like its 5k files

#

lol

#

too many assets

#

ill use arc

#

yep

#

free munies too

quartz kindle
#

total size of a website is not relevant

#

what matters is the size of each page, how long it takes to load each page

#

idealy, every page should load in less than 2 seconds

earnest phoenix
#

it's why people use SPAs nowadays

#

a bit of a slower initial load however there's no delay loading other pages because of SPA routing

drifting wedge
#

@quartz kindle it loads pretty fast

#

so should be fine

#

ill get a cdn cuz why not

earnest phoenix
#

Does someone knows how to appendfiles in JS? (Without the module, since I am not in a node.js project)

#

Or is that not even possible?

sick fable
#

So, I tried coding the bot which can automatically get the invite of the guild but i failed in it

#

I am sending the code

drifting wedge
#

to

#

tos

sick fable
#

invite = await guild.create_invite()

drifting wedge
#

dont do it

earnest phoenix
sick fable
drifting wedge
#

u cant

#

i mean u can

#

but its bannable

#

privacy breach

sick fable
#

Someone help me πŸ₯Ί

drifting wedge
#

u literally cant do that

#

its anti ios

#

tos

earnest phoenix
#

@earnest phoenix what are you actually doing, cause it seems like an http://xyproblem.info
@earnest phoenix ?

#

what?

#

I am trying to appendfiles

misty sigil
#

@drifting wedge its a command that does it

earnest phoenix
#

from vanilla js?

#

ig

drifting wedge
#

@drifting wedge its a command that does it
@misty sigil you can def do it, but u need to make it disclosed

earnest phoenix
#

why, what are you doing

drifting wedge
#

yea

#

mb

earnest phoenix
#

I am trying to save error logs

drifting wedge
#

sry go on KEKW \

earnest phoenix
#

...

#

...

#

you're not giving me enough context and making me guess

#

I am trying to make a error log system, and I would like it appends all errors in a certain file

#

...but you said you're not working in a nodejs env