#development

1 messages ยท Page 1445 of 1

drifting wedge
#

^ issa joke

long marsh
#

That port doesn't exist, lol

obtuse jolt
long marsh
#

Does everyone have their own CDN ๐Ÿ˜„

hollow sedge
#

just kill it

#

ez

obtuse jolt
#

can you read?

#

please tell me

hollow sedge
#

i did

#

kill it

#

it dont matter whats there

earnest phoenix
#

is there any problem in it ?
HTML - <div class="best bot">
CSS - best bot{ position: 100px; }

hollow sedge
#

just kill it

#

also dont sue me if something breaks

obtuse jolt
#

its pointless trying to get help from this server

slender thistle
#

class="best-bot"

.best-bot

green kestrel
#

It's good to learn, I couldn't do big bot stuff without it

earnest phoenix
#

@slender thistle i can't use space ?

slender thistle
#

it creates a separate class

long marsh
#

Absolutely great to learn. I work with it everyday, haha

slender thistle
#

basically applying two classes to your element, best and bot

hollow sedge
#

netstat -aon | findstr 6379 @obtuse jolt

outer zenith
#

ok guys

#

today is the day

#

when i convert my leveling system to sql

earnest phoenix
opal plank
#

postgres is better definitively

earnest phoenix
#

whats postgres ?

opal plank
#

the best database?

earnest phoenix
#

no its not

opal plank
#

yes it is

earnest phoenix
#

no

opal plank
#

okay pleb

hollow sedge
#

mongodb is not going to be better for a leveling system

#

thats unnecessary

outer perch
#

guys, how do I load an image from a url to an embed?

earnest phoenix
outer perch
opal plank
#

when you send a message you can use the image property on the payload

#

if you scrubbing with d.js shitty embed builder, use setImage('url here')

earnest phoenix
#

<message>.attachment.cache.first() / <message>.attachment.first() not sure

opal plank
#

FROM a url TO an embed

outer perch
#

ty

#

wait a min

#

I did that

opal plank
#

did what?

outer perch
#

doesn't get the image

earnest phoenix
#

lmao

opal plank
#

syntax looks fine to me

outer perch
#

the mainEmbed is already defined

opal plank
#

you sure that url is fine?

outer perch
#

100%

opal plank
#

looks good to me

#

hmmm

#

try this

outer perch
#

wait forget

#

it's working

earnest phoenix
#

lol

outer perch
#

maybe I mislooked

opal plank
#
channel.send({embed: {image: {url: 'https://imgur.com/Ed2AqAr'}}})```
outer perch
#

I reset the bot to double check

opal plank
#

i'd highly recommend stoping using d.js embed builder btw

outer perch
#

it's working fine

opal plank
#

its absolutely garbage

outer perch
#

why? deprecated?

#

ho

#

which other way so?

opal plank
#

take a look at how poorly performant this is

opal plank
#

send raw payload

outer perch
#

but user-side looks the same, right?

opal plank
#

correct

outer perch
#

aight

opal plank
#

check the pic for examples

outer perch
#

but, what's the difference?

opal plank
#

look at the bottom

#

and look how long it takes for the embed builder to run

outer perch
#

delays

#

right

opal plank
#

you calling constructors, methods, all that garbage just to make an object

#

fuck that, work with the object yourself, its much better

outer perch
#

true, gotta rebuild this

quartz kindle
#

not like you're ever gonna be making 1 million embeds

opal plank
#

performance is performance

#

scaling friendly

quartz kindle
#

xD

opal plank
#

its legit 15x worse

outer perch
hollow sedge
opal plank
#

150% more time needed for no reason whatsoever

outer perch
#

my OCDs ask to get more and more

opal plank
#

since its not reliant on commands

earnest phoenix
#

whats wrong here <div class="best-bot"><h3>Discord's best utility bot</h3></div> .best-bot h1{ top: 350px; left: 500px; color: white }

opal plank
#

its all just spam

earnest phoenix
#

ah

#

i see

#

lol

sterile lantern
#
fa fa-github w3-hover-opacity w3-hover-white w3-button"``` currently this shows a github icon
#

how do i get a discord icon?

hollow sedge
#

use fa's discord icon?

sterile lantern
#

or well, button

#

i tried fa-discord

#

it doesnt show

#

hmm

#

one sec

hollow sedge
#

go to their website

#

they dont all have the same names

#

similar*

sterile lantern
#

o

#

aight

onyx hare
#

anyone got an idea why this wont loop ~ baring a week of tryng to troubleshoot but fails everytime

const opus = require('opusscript');
const ffmpeg = require('ffmpeg')

exports.run = async (client, message, play, args) => {
    if (message.member.voice.channel) {
        const connection = await message.member.voice.channel.join();
        const dispatcher = connection.play('beep.wav', { volume: 0.7 })
        
        dispatcher.on('start', () => {
            message.channel.send('Crystal Test Radio is now playing!');
            console.log('Crystal Test Radio is now playing!');
        });
        dispatcher.on('finish', () => { 
           play(connection);
        }); 
        dispatcher.on('error', console.error);
        
}
}
onyx hare
#

how ive tried defying as a function then it breaks it

outer zenith
#

im more comfortable with sql but i was wondering why mongo db is bettetr\\

earnest phoenix
#

I need help

#

That are my bot files

#

v12

#

How to host them?

opal plank
#

with a vps

slender thistle
#

[93, 48, 88, 50, 78, 76, 28, 21, 17, 5]
This is very sorted.

earnest phoenix
#

i want free vps

hollow sedge
slender thistle
opal plank
#

done

slender thistle
#

I'm supposed to write quick sort manually

opal plank
#

i gave u the answer

outer zenith
opal plank
#

you welcome

outer zenith
#

and just host it on an old desktop

slender thistle
#

Oh, I swear to God

#

indents have fucked me over twice already

opal plank
#

tis what u get for using py and their weird indentation

#

come to ts

outer zenith
#

imagine being fucked by indents

earnest phoenix
#

?

outer zenith
#

yea

earnest phoenix
#

I can't do that

outer zenith
#

python is ingrained in my brain

earnest phoenix
#

To keep pc 24/7

opal plank
#

we have the clusterfuck of js libs while the py stuffies , while maintaining sanity @slender thistle

outer zenith
#

i never mess up indentation ๐Ÿ˜›

opal plank
#

come to ts

hollow sedge
#

you cant get a FREE vps unless you use a trial

outer zenith
#

py >>>

earnest phoenix
#

no

hollow sedge
#

it costs money to run servers

onyx hare
earnest phoenix
#

js >>>>>

outer zenith
#

nah

slender thistle
#

YAY another one done

opal plank
#

c++ > ruby/ts > rest

outer zenith
#

bruh

#

u fucking said

opal plank
#

c++ is awfully usefull

outer zenith
#

c++ was the best language?

#

no bruh

hollow sedge
#

actually that syntax is valid in python

outer zenith
#

smh smh

opal plank
#

yes it is

outer zenith
#

just go with python or java

opal plank
#

java

#

EWW

outer zenith
#

no use for trying to find a middle ground

#

java is useful

opal plank
#

burn the sinner

hollow sedge
#

for what

opal plank
#

for using java

#

java clusterfuck af

outer zenith
#

but its structure

#

and useful

opal plank
#

try c++

hollow sedge
#

there are better structured languages

outer zenith
#

bruh

#

i know c++

#

thats exactly why

#

i said

hollow sedge
#

then why java

opal plank
#

^^^^^^^^

outer zenith
#

because its better than c and their weird cluster fuck of syntax

opal plank
#

using that slow garbo

#

java slow af

hollow sedge
#

LOL what

opal plank
#

c isnt c++

outer zenith
#

c++*

#

i meant c++\

opal plank
#

the fact that you just said that makes me wanna puke

outer zenith
#

bruh smh

#

oh yea

#

i am superior

#

because i can code in latex

hollow sedge
#

do you really know c++ though

outer zenith
#

B)

#

i do

slender thistle
#

heap sort, here we go

opal plank
#

who the fuck knows c++ and calls it c rather than cpp

outer zenith
#

i had to do it for freshmen cs major

#

we had to do it freshmen year

hollow sedge
#

watch them say they know c now

outer zenith
#

it was painful

gilded olive
outer zenith
#

i dont know c smh

#

cpp

#

is what i know

opal plank
hollow sedge
#

do you tho

outer zenith
#

like learning java was fun

#

learning c++ was not

opal plank
#

its not about fun

#

java is just plain shit

hollow sedge
#

lol i was just about to say that

outer zenith
#

nah

hollow sedge
#

people dont use languages based off of how fun they are

outer zenith
#

like if ur gonna make strings

#

well

#

i mena

#

if ur having a headache

opal plank
outer zenith
#

coding in a language

#

its not gonna be ur favorite language

hollow sedge
#

then maybe you should learn

opal plank
#

sounds like a personal issue

outer zenith
#

i did learn

#

its syntax is just a mind fuck

opal plank
#

this language is shit because i didnt have fun, some angry user, leaving a 1* review on google reviews

outer zenith
#

lmao

#

not fun it just has stupid syntax

hollow sedge
#

if you're having a headache, you're probably trying to do something far above your ability

#

you gotta start small

gilded olive
outer zenith
#

yes

#

well

#

i think?

#

yea

#

it is i believe

opal plank
outer zenith
#

lmao

#

i coded it in py

hollow sedge
#

:ooooo

opal plank
#

how dare u make me look at the requirements to do stuff

gilded olive
#

i started with a discord bot in py

opal plank
gilded olive
#

moving onto web dev tho

#

pepega

outer zenith
#

lmao

hollow sedge
#

OK FINE

#

ill hand over the code

#

for your entire bot

opal plank
#

ty

#

next one to call spoonfeeding gets blocked

slender thistle
#

spoonfeed

opal plank
#

beaned

slender thistle
hollow sedge
#

i meant like for actual products

#

in companies

outer zenith
#

yes

#

but like

#

im not a working individual

hollow sedge
#

yes but

#

would you like to be?

outer zenith
#

ye

#

but

#

like

#

its like saying capitalism bad and getting a job

#

u still believe capitalism bad

#

but u need money

sudden geyser
#

Well, does the 'fun' thing get the job done well?

hollow sedge
#

wth

#

where are you going with this

gilded olive
#

sounds shit

outer zenith
#

just like

#

i can hate a language

#

even if i might have to use it

#

to code in a job

gilded olive
#

uh huh

hollow sedge
sudden geyser
#

trust me you'll hate it absrage

outer zenith
#

well i mean i am intrested in ai development

#

so ill prob use a lot of puy

#

py*

#

anyway

gilded olive
hollow sedge
#

no

outer zenith
#

?

hollow sedge
#

ai development first language is math

outer zenith
#

yea ik

#

im pretty good at math

gilded olive
#

1+1?

outer zenith
#

like ive written some simple ai programs

earnest phoenix
#

Can someone help me in html and css ?

outer zenith
#

and neural networks

hollow sedge
#

wait what

#

that escalated quickly

outer zenith
#

i have a vague understand of html and css lol

gilded olive
#

^

hollow sedge
#

so you went from writing simple ai programs

#

to writing neural networks

#

LOL

gilded olive
#

my friend made an ai play sonic

#

its pretty neat

earnest phoenix
opal plank
#

i made aimbots

earnest phoenix
#

Pls

gilded olive
#

for roblox?

hollow sedge
#

TBF its probably easy with stuff like tensorflow

outer zenith
#

i mean

#

lmao

#

i once tried to hand code neural networks

#

it was a pain

#

and ill stick to pytorch

#

ok

hollow sedge
#

ok

outer zenith
#

oh mobile

#

ok

hollow sedge
#

ok

solemn latch
#

ok

outer zenith
#

ah i see ur problem

gilded olive
outer zenith
#

maybe take off the T symbol

gilded olive
#

bruh momento

outer zenith
#

and then

sudden geyser
#

AI development looks boring

outer zenith
#

just show the menu

earnest phoenix
#

@gilded olive mobile

outer zenith
#

when u open

hollow sedge
#

what is tesla bot going to do

outer zenith
hollow sedge
#

buy a tesla?

outer zenith
#

but its useful

hollow sedge
#

from discord

outer zenith
#

intresting*

#

when the results come out

gilded olive
#

mobile looks good

#

its responsive

outer zenith
#

nah

#

click on the menu

#

just show the menu

hollow sedge
#

@gilded olive what does tesla bot do

earnest phoenix
#

And this is not menu @gilded olive

gilded olive
#

oh....

#

i see

outer zenith
#

and dont try to cshow the T symbol

earnest phoenix
#

@outer zenith yes

gilded olive
outer zenith
#

i should add a website

#

for my bot

hollow sedge
#

wait what

#

whose bot is that

gilded olive
#

yea making a dashboard

#

pog champ

outer zenith
#

its shinchans

earnest phoenix
#

Mine

hollow sedge
#

what does it do

gilded olive
#

every page of your website gives me 404

#

don't mislead people

earnest phoenix
gilded olive
#

just tell them it's under mainteance

#

oh shit i cannot spell

hollow sedge
#

it says "or must be under development"

outer zenith
#

lmao

hollow sedge
#

so i think its fine

gilded olive
#

yea but like

#

it is found

earnest phoenix
#

@hollow sedge can u help me ? @gilded olive @outer zenith

hollow sedge
#

idk, can i?

gilded olive
#

remove the Logo class when the size goes to mobile

outer zenith
#

i mean

#

^

misty sigil
#

does anyone know how I can restart just a single shard

#

in discord.js

earnest phoenix
#

Yes pls @hollow sedge

gilded olive
hollow sedge
#

no

#

you cant do that

#

just set it to "display: none"

earnest phoenix
#

Um

gilded olive
#

that's what I meant

hollow sedge
#

although if you were doing mobile first development you could remove the logo class i believe

gilded olive
#

sounded wrong so my b

quartz kindle
outer zenith
#

lmao

misty sigil
outer zenith
#

my only real experience with html is khanacademy

#

but i can do basic html

#

not html + js tho

hollow sedge
#

Html is basic tho lol

gilded olive
#

css is the real thing

hollow sedge
#

Yeah

gilded olive
#

and then you make animations

outer zenith
#

html is basic ye

earnest phoenix
hollow sedge
#

you need to use a media query

outer zenith
#

thats why i learned it when i was like in 5th grade

#

on khan academt

quartz kindle
earnest phoenix
#

@hollow sedge i am using

hollow sedge
quartz kindle
#

otherwise you need to breadcastEval

hollow sedge
#

Breadcast

misty sigil
#

breadcast

#

lmao

quartz kindle
#

yes

#

you have to eat it

#

with milk

earnest phoenix
#

@quartz kindle you develop djs light ?

quartz kindle
#

ye

earnest phoenix
#

Noice

quartz kindle
#

no ice

#

only water

misty sigil
#

so how would i broadcast a message to only one shard?

outer zenith
#

I got ice in the veins

#

i havent used shards much

#

what are shards

earnest phoenix
#

Any ways.. i need help ๐Ÿ™„

gilded olive
#

you're only required too at about 1500-2000 guilds

#

i think

hollow sedge
#

I sent you a link @earnest phoenix

outer zenith
#

@earnest phoenix u got ur code?

gilded olive
misty sigil
#

broadcasteval(code, shardnum)

quartz kindle
earnest phoenix
#

@outer zenith wanna join my glitch project ?

outer zenith
#

?

#

glitch project?

earnest phoenix
#

@gilded olive readed it

outer zenith
#

oh u mean

misty sigil
#

theres also .broadcastEval('code', shardNumber)

earnest phoenix
#

Ye @outer zenith

outer zenith
#

oh

#

what do i jon

quartz kindle
outer zenith
#

join*

hollow sedge
#

Wait what

earnest phoenix
#

@outer zenith glitch project

hollow sedge
#

Why tho

#

Why do they need to join

earnest phoenix
#

To help me

outer zenith
#

yea ik

#

but what do i join

#

some discord server>

hollow sedge
#

Can't you get help here?

outer zenith
#

or somethign?

hollow sedge
#

No

earnest phoenix
#

@outer zenith no

digital sail
#

selamฤฑn

#

alkum

outer zenith
#

then what

hollow sedge
#

It's a service

#

For making web apps

outer zenith
#

we arent joining anything then

#

ill help tho

earnest phoenix
#

@outer zenith my hosting service project

outer zenith
#

wait ur making a hosting service?

hollow sedge
#

NO

earnest phoenix
#

No

#

Lmao

hollow sedge
#

Glitch is a service that hosts web apps

outer zenith
#

damm

#

oh

earnest phoenix
#

Help me

earnest phoenix
outer zenith
#

ill help u after i finish transfering my leveling system to sql

earnest phoenix
#

:(

#

@outer zenith why not now?

gilded olive
#

Keyword "after"

#

Did you not read what he said

hollow sedge
#

never finishes leveling system

earnest phoenix
#

@outer zenith its 11:18pm in indai

gilded olive
quartz kindle
#

i used to do that when i didnt like people

hollow sedge
#

That doesn't mean anything

#

@earnest phoenix

quartz kindle
#

"oh i'll help you when i finish this"
never finishes

hollow sedge
#

Lol

gilded olive
#

11:18pm? lightwork

earnest phoenix
#

:(

hollow sedge
#

Figure it out yourself if you don't have time to wait

outer zenith
#

with all my other commands

hollow sedge
#

Not you

outer zenith
#

oh

rustic nova
#

@lone palm what exactly are you trying to change?

outer zenith
#

join messages were a pain to make tho

lone palm
#

@rustic nova

rustic nova
#

yeah what exactly are you trying to change

#

screenshot it

earnest phoenix
outer zenith
#

?

quartz kindle
#

i hope hope hopes people hope to hope hope

earnest phoenix
#

๐Ÿ˜ญ

#

Help me

outer zenith
#

ok ok ok

lone palm
#

I try the vote button and the invite bot change the color when the mouse is on it

outer zenith
#

im 25% done

earnest phoenix
#

:(

#

Started since yesterday and 25% done

#

100% done after my next birth ๐Ÿ™„

quartz kindle
#

dude it took me 3 months to rework my bot from json to sqlite

quartz kindle
#

of course i reworked everything not only the storage

lone palm
#

Yes, but it doesn't work

lone palm
rustic nova
#

yes

#

because you're not using the proper css selector

#

inspect element is your friend

earnest phoenix
#

i am so boring any one here chat with me then add me

lone palm
#
.entity-header__button-text:hover
{
 background-color: black; 
}
#

Ik

outer zenith
#

we started out with 23

quartz kindle
outer zenith
#

but now

lone palm
#

but it doesn't work

outer zenith
#

we're down to only 4

#

poggers

quartz kindle
#

you actually comment todos in your code? nice

#

i never do that lmao

outer zenith
#

not usually lol

#

but like it was a big scale switch

#

and i cant leave anythign out

rustic nova
lone palm
rustic nova
#

try around with the rules section

quartz kindle
#

when i do larger changes i ctrl+F a bunch of stuff to re-learn what my code is doing

lone palm
rustic nova
#

of inspect element

opal plank
rustic nova
#

or your style tag on your long description is wrong

lone palm
opal plank
#

i do TODO' comments on specific parts of the code, but i also have a separate file for ideas and bigger changes

quartz kindle
#

i try to organize my code by making the code itself clean and readable

rustic nova
#

in your long description field in your bot settings @lone palm

#

that's where you need to set them

opal plank
#

if you were to use Ts for example, its good to add //TODO this for example like using :any in a returned type from a database call

#

before you finalize the shape of it

#

//TODO add interface for table blah

lone palm
rustic nova
#

You're trying to mess around with the css and do not know how to actually apply it to your bot page?

lone palm
#

I know how css works, only if you make things more complicated than it is, it is possible that I have not yet learned something but what you have learned @rustic nova

rustic nova
#

i am not complicating anything

#

this is basic css

lone palm
#

Then enlighten me

#

@rustic nova

rustic nova
#

yeah use inspect element

hollow sedge
# outer zenith

if you're using github, i think there's a board to organize stuff like this

#

that i never use

#

but i want to

outer zenith
#

ah

hollow sedge
#

it's the thought that counts

outer zenith
#

no

lone palm
hollow sedge
#

๐Ÿ˜ฎ

outer zenith
#

that was a bad pun ๐Ÿฅถ

rustic nova
obtuse jolt
hollow sedge
#

that moment when you comment the answer in SO and someone steals that and makes their own answer

lone palm
gilded olive
rustic nova
#

I literally told you what to do: Play around with inspect element. It is the most accurate thing you can use to get the css selectors for your design

#

Inspect element is way more informative than i can explain it.

lone palm
#

Well, when you can't explain better

#

Although you already have the solution to the problem waitWhat

outer zenith
#

lmao

#

i was thinking of adding a plugin to my bot

#

thats basically the free to play model x econ

restive furnace
outer zenith
#

lmao yea

#

its not too hard to get the play funcitonallity although it is a bit hard

#

but dude

#

ive been trying to fix my queue functionallity

#

since early noveember

#

AHHHHHHHHHHHH

#

which is why my music plugin is still in dev

gilded olive
#

patience is key

obtuse jolt
umbral zealot
#

I mean... they're not wrong, mysql itself is bad and phpmyadmin along with it.

crimson vapor
#

Evie rate my code```js
const { MessageEmbed } = require('discord.js-light');

module.exports = {
name: 'ping',
requiredPermissions: undefined,
owner: false,
run: async (message, args) => {
let embed = new MessageEmbed()
.setAuthor(message.author.tag, message.author.avatarURL())
.setTitle(Pong!)
.setColor(message.member.displayHexColor)
.setFooter('Developed by MILLION#1321')
.setTimestamp();

let m = await message.channel.send(embed);

let embed2 = new MessageEmbed()
  .setAuthor(message.author.tag, message.author.avatarURL())
  .setTitle(`Pong! (${Math.round(Math.random() * 100)}ms)`)
  .setColor(message.member.displayHexColor)
  .setFooter('Developed by MILLION#1321')
  .setTimestamp();

m.edit(embed2);

}
};```

outer zenith
#

there we go

umbral zealot
#

yes

#

Here's my justification:
TL;DR: MySQL is a bad database. Don't use it unless you have literally no other option.

Why shouldn't I use MySQL?

  • MySQL has no transactional DDL. This means that if you fuck up creating a table in the middle of a migration, you cannot rollback easily.
  • MySQL has a lot of security issues. New zero-day vulnerabilities are found regularly.
  • MySQL is owned by Oracle.
  • MySQL is slow. It beats Postgres etc at some things, but once you move beyond basic queries it begins to slog.
  • MySQL disconnects you randomly. Unless you setup your connection specially, it will break regularly.
  • MySQL allows all kinds of insane data to be inserted. '0000-00-00' is valid in MySQL.
  • MySQL is not ANSI compliant. You have to turn it on; even then it isn't fully compliant.
  • MySQL has no feature advantage over other databases; PostgreSQL has many more useful features (such as RETURNs).

There is no reason to use MySQL over PostgreSQL, or even sqlite3. See also:
https://blog.ionelmc.ro/2014/12/28/terrible-choices-mysql/
https://grimoire.ca/mysql/choose-something-else

umbral zealot
crimson vapor
#

oh shit

#

one sec lemme do that

#

you're right

misty sigil
#

63ms

obtuse jolt
#

i dont need to

misty sigil
#

db query?

#

what

crimson vapor
#

using atlas or something?

umbral zealot
#

You still calculate in MS and not in nanoseconds? lol

misty sigil
#

thats mysql

umbral zealot
#

so slow

crimson vapor
#

nanoseconds or microseconds?

misty sigil
#

db query 63ms is an insane number

#

so high

obtuse jolt
#

its a select * query

misty sigil
#

even when i was using a irish atlas cluster for my bot in montreal

#

it was lower

obtuse jolt
#

and i dont know why it is now

#

just thinking about it

outer zenith
#

damm

#

but like

#

whats wrong with sqlite

umbral zealot
#

nothing, sqlite is fine

obtuse jolt
#

its interesting how you all bully my query speed also but dont touch the db ping

umbral zealot
#

the only downside of sqlite is that it's filebased and can't natively receive multiple "client" connections from different machines

restive furnace
#

^ if you want to do that use mongo or postgres instead (well there's others too, like mariadb but these are most used)

umbral zealot
#

yeah postgresql is superior to mysql in every significant way

misty sigil
#

db ping is low

#

but thats just connection

#

not querying

opal plank
#

i keep telling them pg is the way to go but its too good for them

obtuse jolt
#

its also connecting to an external server

#

not local host

opal plank
outer zenith
#

but like

#

for a discord bot

#

it should be fine

#

right?

misty sigil
#

yea

umbral zealot
#

Yeah absolutely, sqlite is great for discord bots since it's better for "query often, write rarely" systems, which is usually what discord bots do (like, getting a prefix every message, only writing when someone edits it, for example)

misty sigil
outer zenith
#

well my leveling is constant editing

#

but im changing that

#

to writing to a dict

#

then every so often updating the db

umbral zealot
#

honestly just use enmap ๐Ÿ˜‚ ยฏ_(ใƒ„)_/ยฏ

misty sigil
#

fuckin

#

ads

#

lMAO jkjk

umbral zealot
#

Sue me ๐Ÿ˜‚

#

get the $0 I ever got from anything I've done on discord lol

misty sigil
#

will do

#

i need money

outer zenith
#

lmao

#

im adding in the anilist compatibility

#

after updating

#

the

#

leveling

crimson vapor
#

imagine using a real db

#

smh

umbral zealot
#

Imagine thinking sqlite isn't a real db. smh.

crimson vapor
#

huh

outer zenith
#

lmao

#

i feel like i forgot someehting important

#

in updating this leveling

earnest phoenix
#

How to hide css in ejs while inspecting?

outer zenith
#

thank god

#

im on the final one

opal plank
#

ctrl + f

#

ez pz

earnest phoenix
#

@outer zenith no need of your help

outer zenith
#

oh ok

#

nice

earnest phoenix
#

I fixed ๐Ÿ™„

#

hey

#

Yeh

#

Does someone know this error:

#

Error parsing info: Unable to retrieve video metadata

#

Is from a Play Command Its Js

#

@earnest phoenix google knows everything

#

discord.js

jovial nexus
#

how can i console.log only the guild id and owner name?

earnest phoenix
#

@jovial nexus <guild>.id and <guild>.ownerID i am not sure

jovial nexus
#

all my bot guilds

lone palm
#

Can someone help me and tell me why :hover with the votebutton does not work for me?

Code:

.entity-header__button-text:hover {
        background-color: black;
    }
earnest phoenix
#

@jovial nexus ah thats against tos

outer zenith
#

THERE IM FINALLY DONE

#

now time to test

lone palm
#

Caps off

umbral zealot
jovial nexus
earnest phoenix
sterile lantern
#

how would i go around making an interactive cmd, for example:
;setup
what's your prefix?
;
db.set("prefix", answer1)
what's your channelid
idhere

#

like that

#

i think it has to do with message collectors?

umbral zealot
#

message collectors or simply awaitMessages if using discord.js

earnest phoenix
#

How to make add prefix command ?

sterile lantern
#

yea im using .js

#

discord.js*

umbral zealot
#

What I do is this handy little function: ```js
exports.awaitReply = async ({
message,
question,
limit = 60000,
returnFullMessage = false,
}) => {
const filter = m => m.author.id === message.author.id;
await message.channel.send(question);
try {
const collected = await message.channel.awaitMessages(filter, { max: 1, time: limit, errors: ["time"] });
return returnFullMessage ? collected.first() : collected.first().content;
} catch (e) {
return false;
}
};

#

so I get a single question, single answer

umbral zealot
crimson vapor
#

lmao

crimson vapor
umbral zealot
#

oh no absolutely not

#

only when they're my target audience - when they are beginners and not able to use bigger databases.

crimson vapor
#

so most people that mention that they need a db

#

but not all since some are just upgrading

umbral zealot
#

It's situational

#

Just like anything else I say here, I just try to be as helpful as I can .

lone palm
#
const answer = await message.channel.awaitMessages(res => res.author.id === message.author.id, {
                        max: 1,
                        time: 480000,
                    })
                    if(!answer.size){

                    return
                    }
                    const reply = answer.first().content
message.channel.send(`${reply}`)
``` @umbral zealot
umbral zealot
#

mmmkay?

umbral zealot
lone palm
#

That is clearer

umbral zealot
#

clearer but not as useful, imho.

lone palm
#

xd ok

crimson vapor
#

what is cleaner?

#

imo cleaner means looks nicer and does its job

#

Evie's function pretty hot

#

that collector isnt that hot

outer zenith
#

what is =>

crimson vapor
#

in js it signals an arrow function

outer zenith
#

ik

#

what is an arrow function

umbral zealot
crimson vapor
#

blog post?

umbral zealot
#

more of a tutorial/documentation

crimson vapor
#

ig

#

still looks nice

outer zenith
#

oh do u have a youtube channel or somethin

crimson vapor
#

I like when devs do that

outer zenith
#

?

umbral zealot
#

I do but what's on my channel isn't up to date anyway

outer zenith
#

ah

#

bruh i just remembered

#

what i forgot

outer zenith
vague kite
#

What's the best way to get icons of all the users within a guild??

solemn latch
#

Its actually a bad idea to do that imo, but rather get it the first time you need it. @outer zenith

#

For each item in the db

outer zenith
#

well i regularly update it so...

#

on regular intervavls

#

since updating it everytime a message comes in

solemn latch
#

This is your leveling system right?

outer zenith
#

yes

outer zenith
#

for loop

crimson vapor
#

don't its api abuse

solemn latch
#

Yeah, so if someone deletes their discord account or stops using it, your caching that data in memory still

crimson vapor
#

just cache the entire db

outer zenith
#

ah makes sense

crimson vapor
#

ok ima be helpful now

tired panther
#

Should I fetch the prefix on every message?

lone palm
#

Can someone help me and tell me why :hover with the votebutton does not work for me?

Code:

.entity-header__button-text:hover {
        background-color: black;
    }
earnest phoenix
#

Hi

misty sigil
#

right

snow urchin
misty sigil
#

so i'm trying to make afetch request

#

(to an api i have)

crimson vapor
#

whats the issue

misty sigil
#

but it keeps getting blocked by cors

#

anyone know how i can fix that

#

the api is based in express btw

green kestrel
#

If youโ€™re on it time to move to another distro

misty sigil
#

oh no!

#

anyway

green kestrel
#

I got an email today from cPanel saying theyโ€™re withdrawing support for centos from next year

#

Theyโ€™re moving to ubuntu as a base

opal plank
#

beaned

earnest phoenix
#

how do i check if an argument is a mention?

#

dpy

opal plank
#

@earnest phoenix message payload comes with the mentions already

#

dunno how to do it in py, but its in the message structure

earnest phoenix
#

alr ok

#

I can't get my bot's profile picture to float on top.gg help me ๐Ÿ˜ฆ

umbral zealot
#

Same question as before: What do you mean by "Float"

opal plank
#

just add water under it

earnest phoenix
#

Hey guys my bot is not showing the members for each category, any help?

#

No but you see the profile picture of the bot I saw on the profile pictures of the bots on "top.gg" that we could float them and I would do the same but I do not know how to do it

umbral zealot
# earnest phoenix

In order to see presence data you need to turn on the "Presence intents" in the bot's page on the developer portal.

umbral zealot
#

Show us an example

earnest phoenix
#

OK 2 s

#

Okey*

#

frThere's been more since the last top.gg update

#

.-. @umbral zealot

umbral zealot
#

That doesn't answer the question.

#

"there's a lot of them" doesn't tell me what it is

earnest phoenix
#

He and more there.

umbral zealot
#

If there's so many of them, show us one.

earnest phoenix
#

I can't show you what it is if he's there anymore.

umbral zealot
#

Then we cannot help you, unless you're able to give us more information what you mean by "Float" because we literally have no clue what you're asking, still.

outer perch
#

.catch() still logs โ“

umbral zealot
#

if you make it log yes

outer perch
#

says it wasn't handled

gilded reef
#

does anyone have a annoucement bot

tired panther
#

when I pass a value to module.exports and change them , wll they change is globally?

outer perch
#

cuz, when someone doesn't give a certain permission to the bot in a certain channel for example, the error gets logged and says it wasn't handled. but, doesnt' the empty catch handle it without logging?

stark abyss
#

would querying your db every min a big brain idea

umbral zealot
crimson vapor
#

oh

gilded reef
#

does anyone have a annoucement bot

umbral zealot
umbral zealot
#

if you can provide your full code and error message we can maybe try to figure it out

gilded reef
#

@umbral zealot i mean with the code with it so i can change it up

umbral zealot
#

I mean, an announcement command is literally "tkae the message and send it to another channel"

#

not exactly something that requires thousands of lines of code y'know ๐Ÿ˜„

gilded reef
#

so what do i type in

umbral zealot
#

sounds like you need to learn programming and read the docs, tbh.

gilded reef
#

i am

outer perch
#
2020-12-11T19:48:11.205415+00:00 app[worker.1]: (node:4) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions

2020-12-11T19:48:11.205431+00:00 app[worker.1]:     at RequestHandler.execute (/app/node_modules/discord.js/src/rest/RequestHandler.js:170:25)

2020-12-11T19:48:11.205432+00:00 app[worker.1]:     at processTicksAndRejections (internal/process/task_queues.js:97:5)

2020-12-11T19:48:11.205521+00:00 app[worker.1]: (node:4) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
#

there you go

gilded reef
#

is that a announce bot

willow mirage
#

pls don't use Heroku

#

it is bad

haughty mirage
#

Go use something.host

willow mirage
outer perch
#

ikr

#

I don't want that logged

willow mirage
#

then just ignore it

#

._.

outer perch
#

._.

#

no

willow mirage
#

you can't just stop that from logging

#

or you have to change the source file from discord.js

outer perch
willow mirage
#

in node_modules

haughty mirage
#

You can, just check that the bot has permission to do whatever it is trying to do and ignore it

weary ore
tired panther
weary ore
sterile lantern
#

if i made a command like ;prefix ! how would i make it overwrite a .env file

sudden geyser
#

either set it with assignment (process.env.x = y) or (recommended) check if the prefix exists first and use that if it does.

outer zenith
#

honestly for anilsit compatitbility

#

ill just keep the same commands

#

and have a command to switch from mal to anilist for each user

gilded olive
#

the api is easy to use

earnest phoenix
#

how to convert two emojis with twemoji

const twemote = await twemoji.parse(ax[0].trim())
const twemote2 = await twemoji.parse(ax[1].trim())
const regex = /src="(.+)"/g

console.log(regex.exec(twemote))
console.log(regex.exec(twemote2))
[
  'src="https://twemoji.maxcdn.com/v/13.0.1/72x72/1f602.png"',
  'https://twemoji.maxcdn.com/v/13.0.1/72x72/1f602.png',
  index: 46,
  input: '<img class="emoji" draggable="false" alt="๐Ÿ˜‚" src="https://twemoji.maxcdn.com/v/13.0.1/72x72/1f602.png"/>',
  groups: undefined
]

null
outer perch
outer perch
cloud pebble
#

So I've got this paginator, listens for reactions for a minute before timing out. Works exactly as intended when I run it on my test bot account.

When I run the exact same code on my real bot account (in ~3k guilds), it times out after like 5 seconds. Anyone got a clue what's going on?

outer perch
weary ore
#

how to do you splice objects in a array with mongodb

high berry
weary ore
#

yh

drifting wedge
#

how can i get pm2 ls info?

#

like with code

high berry
#

are u using mongoose?

drifting wedge
#

or just the uptime

#

pymongo

#

same

weary ore
weary ore
high berry
#

there are many ways you can do it through mongoose queries

weary ore
#

but how im confused

winged mulch
#

If I am using cloudflare on my site, will people still be able to get the raw public IP address by pinging it?

hollow sedge
outer perch
#

wat

hollow sedge
#

its really not that hard to understand

#

its ok ill break it down for you

outer perch
#

I checked

hollow sedge
#

aw

outer perch
#

now I know

hollow sedge
#

i was about to define each word

outer perch
#

do you know what's MB Way?

hollow sedge
#

megabytes?

outer perch
#

nah, forget

hollow sedge
#

ok

outer perch
#

it's like a Credit Card manager

#

you can create a temporary credit card with only 5โ‚ฌ

hollow sedge
#

i mean

outer perch
#

with this app

hollow sedge
#

you could just use your credit card

#

or your parents

outer perch
#

what if I enter the temporary credit card?

hollow sedge
#

idk

#

it'll probably work

outer perch
#

will they check if it's expired?

hollow sedge
#

idk

#

why not use just yours

outer perch
#

with a temporary, they won't get any info form my Credit Card

hollow sedge
#

what are they going to do with that info

outer perch
#

and that way, they can't charge me for whatever reason

hollow sedge
#

dude

#

heroku/salesforce is a big company

outer perch
#

who knows

hollow sedge
#

they cant just do that

#

wdym who knows

#

who knows that amazon wont charge you for no reason

outer perch
#

yes

#

that's why I only buy things on the internet with temporary credit cards

hollow sedge
#

oh god

#

ok have fun

slender thistle
#

I've attached my CC to Heroku before

#

and some other services as well

#

Can my laptop revive itself please

drifting wedge
#

how can i get program uptime, and ram usage, and like cpu usage etc with pm2?

#

like i want to take pm2 data

#

and show on my website

slender thistle
#

not a single cent gone without my explicit knowledge

hollow sedge
#

yeah because that would literally be illegal

hollow sedge
drifting wedge
#

like they have a website

#

and im pretty sure there is a way

#

but im not exactly sure

high berry
# weary ore but how *im confused*

I'm not very knowledgeable of mongoose myself, but this is an example you could possibly do:

model.find({
  data: variable
}, function (err, result) {
     if (err) throw err;
    // Alter whatever data here
    model.replaceOne({
      data: variable
    }, {
      data: newData
    }, function (err, result) {
      if (err) throw err;
      // Success
    }).catch(err => console.log(err));
}).catch(err => console.log(err));

Again, this may not be the best method or the most-suited method to what you're trying to do.

outer perch
hollow sedge
#

outsmarting who?

slender thistle
#

Outsmarting who or what lol

outer perch
#

imagine if they try or happens something

hollow sedge
#

if what happens

outer perch
#

I don't have time to lawsuit anyone

hollow sedge
#

class action

slender thistle
#

I haven't lost a single cent from any service I use KEKW

drifting wedge
#

pm2 is better

#

honestly

hollow sedge
#

yeah idk

#

some people are just paranoid

slender thistle
#

Mhm

outer perch
slender thistle
#

Yeah I won't bother trying to reassure you here

hollow sedge
#

you wouldnt have to

#

since when has a company done that

#

these are multi-billion dollar companies that we're talking about

sudden geyser
drifting wedge
#

uhhh

#

using pm2, how can i get the like program data

#

like how can i get the data from pm2 of a program's uptime for example

drifting wedge
#

can anyone help? like with pm2 how can i get proccess data?

#

@green kestrel u use pm2 right?

quartz kindle
#

highly doubt he does

hollow sedge
#

i looked into it a bit and im getting the feeling that pm2 isnt the right tool for what you want to do

drifting wedge
#

what is the best then?

#

i need to be able to get the program's stats

hollow sedge
#

i said you could try psutil

drifting wedge
#

does it allow like getting program stats?

brazen hornet
#

how long does it take to verify a bot

hollow sedge
#

"psutil (python system and process utilities) is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network, sensors) in Python. It is useful mainly for system monitoring, profiling, limiting process resources and the management of running processes."

quartz kindle
drifting wedge
#

like its for a stats page

quartz kindle
#

from outside you would use tools like task manager on windows or top on linux

drifting wedge
#

like i need to get it into like a var

#

or something

quartz kindle
#

from inside you would use whatever libraries there are for obtaining system data and process data

hollow sedge
#

im pretty sure the best way to do that is to use psutil with webhooks

quartz kindle
#

usually building a fully featured monitoring system involves using a time series database and a data collection server such as prometheus

drifting wedge
#

like pm2 has the info i need

#

but i dont know how to get it

quartz kindle
#

get it to where?

drifting wedge
#

like into the database

quartz kindle
#

pm2 has a cli and libraries to interact with it

hollow sedge
#

does pm2 have a python library?

quartz kindle
#

you can run some kind of exec command to call pm2's command line utilities

hollow sedge
#

oh that makes sense

drifting wedge
#

ohoh

#

smorty

hollow sedge
#

still dont understand why you NEED pm2 when there is already a module for this

drifting wedge
#

uhh like if i do

#

pm2 ls

quartz kindle
#

there seem to be many libraries as well

drifting wedge
#

it gives me processes

#

but i need to get the output

#

i have multiple programs

#

so i need to get their stats

hollow sedge
#

lol i dont think any of those libraries will work

drifting wedge
#

pm2 is npm

hollow sedge
#

think about it tho

#

wouldnt there be a py lib if it was necessary

quartz kindle
#

pm2 jlist outputs everything in json format

hollow sedge
#

it just doesnt make sense

#

why use a node package

#

for python

drifting wedge
#

bc it works

quartz kindle
#

i mean if hes already using pm2 as a process manager for other things, it makes sense to access data from pm2

hollow sedge
#

i dont think he is

drifting wedge
#

tim ur a fucking wizard

#

im not tho