#development

1 messages · Page 1111 of 1

ripe wasp
#

oh

#

nice

#

thats sick

#

hmmm

digital ibex
#

hello php developers

strange trout
#

Lookin' good Sammy

ripe wasp
#

im going to make deep learning program later on this year

earnest phoenix
#

php 🚮

quartz kindle
#

@earnest phoenix are those real? lmao

earnest phoenix
#

yeah

strange trout
#

Did you already create a mockup design?

earnest phoenix
#

his own tweets

ripe wasp
#

to merge anime characters

quartz kindle
#

hahaha

ripe wasp
#

ill try that

digital ibex
#

tf

quartz kindle
#

welcome to programming

knotty steeple
#

i have it in my bigbrain

digital ibex
#

yay i was the 3rd star

ripe wasp
#

is anyone even new to programming here

digital ibex
#

i dont think rn

knotty steeple
#

hard to believe ive been doing this shit for 5 years

ripe wasp
#

facts

digital ibex
#

but normally every other 10 minutes

ripe wasp
#

you ever get that urge of motivation

#

and then when you click new file

#

and then you start working your way through it

#

you start to feel lazy

knotty steeple
#

same

ripe wasp
#

it gets kinda boring after a while

#

thats why

#

you have to divide it

#

into like

unreal bluff
#

Try learning 28 programming and web dev languages.

ripe wasp
#

different time periods

#

what

#

yk 28 languages?

unreal bluff
#

Everything looks the same. Very boring lol.

ripe wasp
#

ik only 5

#

wow

#

ok thats cool

#

Stocks stocks stocks, stocks stocks stocks stocks; stocks stocks stocks. Stocks stocks stocks stocks.

unreal bluff
#

shots is the song.

#

Shots, Shots, Shot shot shot shots

ripe wasp
#

i feel kinda useless compared to these geniuses

lusty quest
#

i started about a year ago with javascript. but i know what you mean

ripe wasp
#

i play video games and program dumb projects

#

these people are crazy smasrt

#

smart

earnest phoenix
#

you can always dive deeper into this

ripe wasp
#

ive been doing this for 4 years

lusty quest
#

sometimes you have 0 Motivation but start anyways and then get a Idea and want to make it work

unreal bluff
#

NodeJS is a very powerful tool for 2020+

ripe wasp
#

and im still fucking retarded

earnest phoenix
#

no it isn't stocks :omegalul:

#

node is just overused

ripe wasp
#

:stocks:

unreal bluff
#

it is already doing more for me than an apache server could.

earnest phoenix
#

especially with desktop apps because of electron

lusty quest
#

i started to learn c# bcs i was bored and unable to get motivated to write something

unreal bluff
#

NodeJS is twitch and youtube.

earnest phoenix
#

im aware

#

there's no other option for that except wasm which is still in it's early days

#

they're web apps

unreal bluff
#

It's a memory game if you do not handle the proper coding and store to many vars and values.

earnest phoenix
#

however twitch & youtube aren't just node

#

the frontend is

#

the backend isn't

#

same for discord

lusty quest
#

meanwhile i have plans to edit a npm libary to use redis for caching instead of ram

earnest phoenix
#

their frontend is electron while backend is py + rust

lusty quest
#

it does it anyways ik but you can offload it to a different server

earnest phoenix
#

no sane person would use node all throughout their workflow

unreal bluff
#

NodeJS backend with websockets or any other method is faster than anything else out there. Ajax used to be the go to. Realtime became more fluent with NodeJS as a backend web hosting future. Ajax get and post are much slower results.

earnest phoenix
#

i will have to disagree with that

unreal bluff
#

Javascript is just key to the future.

earnest phoenix
#

no it isn't

lusty quest
#

you never went into the it infrastructure if larger companies right? they are lazy AF. like they would still use windows 2000 if they could

unreal bluff
#

I enjoy centos 8 lately.

ripe wasp
#

im so fucking lazy

#

i dont do that much

lusty quest
#

would be pretty dope if larger companies would switch to Linux

earnest phoenix
#

a huge part of the market share is windows

ripe wasp
#

or ubuntu

earnest phoenix
#

and they'll target that

ripe wasp
#

using vms are better

#

like lubuntu

lusty quest
#

yea it got a steep learning curve but can help to cut down on fees for maintanance

ripe wasp
#

if they switched

#

info wouldnt be leaked

#

etc

unreal bluff
#

as a LAMP stacks dev from the old days. I always forced anyone to use a Linux without a desktop as a server. Purely SSH and FTP access only.

lusty quest
#

like there are companies who pay easy 10k$/month to keep windows XP running

amber fractal
#

Larger companies use things that arent available on linux by default without wine or similar software

unreal bluff
#

well SFTP*

amber fractal
#

And they probably also make or have their own software that was developed specifically for windows

lusty quest
ripe wasp
#

not rlly

#

its still related

#

bc we understand how others think

#

and how we can improve

#

ourselves

#

im learning alot actually

#

even though you only learn js a year ago, im learning things from you

#

and it's pretty beneficial tbh

unreal bluff
#

;p

slender thistle
#

it got kinda off-topic so

unreal bluff
#

nothing is off topic in dev on nodejs

#

Discord bots love nodejs ;p

restive furnace
#

Javascript is just key to the future.
at web development

unreal bluff
#

I wish embed would get more in-tune with a few extra features. I need to do more with it.

#

I need in-lines to work on a smaller scale when using them in the array.

restive furnace
#

or ubuntu
ubuntu is linux

unreal bluff
#

I also would like columns added to embed. Aligning text with \t and tab is not working out.

#

NodeJS is purely javascript and webhook's are mostly required some know how. So kindly remind yourselves this is development. @restive furnace & @slender thistle as any web dev process is required for web hooks related to bots and other things no?

lusty quest
#

use canvas to generate a image with the stuff you want

earnest phoenix
#

if you want columns use inline embed fields

#

you get 3 max iirc

#

they'll get squashed into less depending on the screen resolution though

unreal bluff
#

Already confirmed that a few times. The only other alt is using tab right?

earnest phoenix
#

which still isn't going to get rendered accordingly depending on the screen resolution, but yes

unreal bluff
#

As nothing does in embed anyways. Any context is smashed up and that's not my issue. In any other case it would be if it was preventable.

#

The only way to avoid that is to place images in the embed the same size of the text.

earnest phoenix
#

best bet would be to generate an image

#

i used to do it on my old bot

#

just generate the image with whatever content you'd like and send that, no dealing with discord's inconsistencies

worn zephyr
#

For verification only the leader of the developer team must be over 14 years old? Can other developers have 13 years?

unreal bluff
#

I am making a chart for the stock market which most already do. which will basically be just that. Although I do not want to use a desktop Linux OS. Which brings us back to nodejs and javascript working together frontend and backend web dev on the bot.

#

Generating a image based off a url qued by the bot without ever visiting the website is most common search results but php handles this easier.

#

I sadly do not want to use php.

pure lion
#

Then use ejs

#

¯\_(ツ)_/¯

unreal bluff
#

it's the same result ejs is only a html file which relays info back and from with nodejs if handled properly.

#

To generate a image without visiting the url with a browser. You have to have a desktop installed with chromo or some other snapshot desktop application for linux

#

or windows.

pure lion
#

Use a .ejs file for templating if you wanna send data to the frontend from the back, and use a form to lost data

unreal bluff
#

w.e

ripe wasp
#

bro this is so fucking intellectual rn

unreal bluff
#

i use ejs already. It's my main go to. Generating images is the issue.

pure lion
#

Like actually making an image

unreal bluff
#

I would relay some other info about it but it's more or less going off topic. I wanted to just buzz the brains of all ;p

#

Yeah generating a image based off data.

placid iron
#

bro this is so fucking intellectual rn
@ripe wasp XDDDDDD

ripe wasp
#

im trying to keep on

earnest phoenix
#

It's big brain time

ripe wasp
#

and pay attention

pure lion
#

My head is very waitWhat

ripe wasp
#

goddamn it i wish i was smart

pure lion
#

@unreal bluff use canvas

#

:3

unreal bluff
#

you would have to visit the url as stated I want to avoid doing.

#

Even if you use nodejs canavas you need chromo or a snapshot application installed on a desktop.

pure lion
#

You realise

#

You can pass in data from the backend and use the <canvas> tags

lusty quest
#

@worn zephyr its possible that everyone needs to be in the legal age for this, also its possible that you need a adult to verify

pure lion
#

Shit my CPU is at 100% usage because system interrupts

lusty quest
#

wtf are you doing?

pure lion
#

Nothing

#

I just booted

#

Someone donate so I can get better laptop :'3

quartz kindle
#

^ same

#

my touchpad is broken

pure lion
#

This is just non functional

worn zephyr
#

@worn zephyr its possible that everyone needs to be in the legal age for this, also its possible that you need a adult to verify
@lusty quest it's a question for a friend. Thanks

pure lion
#

But at least it's waterproof

quartz kindle
#

my touchpad its permanently stuck in drag mode lmao

unreal bluff
#

I do not think you understand what I've been saying. Maybe you have but you cannot generate a image without a desktop installed on linux. You need chromo extensions mostly. Otherwise you have to visit the url with your browser to pull the image request even if you coded up the bot to try and do it. It;s not a browser based request.

pure lion
#

Oh shit

earnest phoenix
#

For verification only the leader of the developer team must be over 14 years old? Can other developers have 13 years?
@worn zephyr How tf are you even submitting to verification if the leader is 14 years old or something, don't you guys need an ID

pure lion
#

@unreal bluff

unreal bluff
#

this is browser based.

pure lion
#

Stonks

stray portal
#

can

quartz kindle
#

@unreal bluff canvas is browser, but node-canvas is not browser based wtf are you talking about

stray portal
#

somone rate my bot

unreal bluff
#

I can't argue with ya mate sorry. Gonna have to end this here. It;s not related to anything i've been stating as facts.

pure lion
#

@earnest phoenix I used passport

earnest phoenix
#

@pure lion i know, you can use id, driver's license and passport

pure lion
#

Then stonks

earnest phoenix
#

I was talking to that guy

unreal bluff
#

NodeJs needs a desktop to generate anything with the canvas extentions. To generate a image file based off canvas. You need to visit the url or have the proper desktop installed on linux OS.

earnest phoenix
#

Let's see what he will say

pure lion
#

Yeah but I thought it was a valid point because ID

quartz kindle
#

no you dont?

#

unless you're talking about nw.js or electron

#

but node.js doesnt need a browser nor a desktop environment

unreal bluff
#

Prove me wrong then. I would enjoy finding out new info.

quartz kindle
#

my bot uses node-canvas

#

and runs in a headless ubuntu server

unreal bluff
#

Your server has a desktop and chromo.

quartz kindle
#

no

#

its headless

#

i interact with it through terminal ssh

unreal bluff
#

So you visited the url prior to showing the image?

quartz kindle
#

what url?

#

there is no url

solemn latch
#

Canvas can run headless

unreal bluff
#

Show me your generated image queued by your bot please.

pure lion
torn ravine
#

5Head

pure lion
#

NODE CANVAS RUN ON SERVER PC OOGA BOOGA

unreal bluff
#

If i use PHP i can code a nice headless generator. NodeJs requires me to use a desktop so far on centos 8.

pure lion
#

Ooga canvas desktop booga

unreal bluff
#

I have attempted work arounds but haven't got it yet.

solemn latch
#

Made via canvas headless server ^

pure lion
#

Woo that's sick

quartz kindle
#

here's a pseudocode: for a discord bot @unreal bluff ```js
const Canvas = require("canvas");
const canvas = Canvas.createCanvas();
const ctx = canvas.getContext("2d");
ctx.fillRect(0,0,200,200);
message.channel.send({files:[{attachment:canvas.toStream(),name:"bla.png"}]})

earnest phoenix
#

How can I delete a spefific msg in dms? msg.author.createDM().then(m => m.delete('id')); <- doesnt do anything

pure lion
#

@earnest phoenix fetch then delete

#

Also author.send()

earnest phoenix
#

no

#

why would i send the msg

unreal bluff
#

oh now you've proven me right. It;s got chromo and a desktop.

pure lion
#

Idk why would you

unreal bluff
#

canvas.getContext("2d");

earnest phoenix
#

there aint no reason to do so

quartz kindle
#

@unreal bluff ???? what chromo and what desktop?

unreal bluff
#

cant be processed without a desktop on the server.

solemn latch
#

Lol

earnest phoenix
#

but your telling me to do so

pure lion
#

@unreal bluff it's not like we told you literally 50 times

quartz kindle
#

it can? what the fuck are you on about

earnest phoenix
#

🤦‍♂️

solemn latch
#

My vps has no desktop

pure lion
#

I have a legit headache

sinful belfry
#

@sinful belfry alright its fully working for me now with 400k members (and much faster than djs), check the latest commit
@quartz kindle wow ok, thanks a lot. it's working great for me too. tysm for this

unreal bluff
#

I will just let you all carry on lol.

#

Don;t mind me.

pure lion
#

Stop trolling please

#

And thank you

#

:)

#

:))))))

solemn latch
#

I think we are being trolled

pure lion
#

:))))))))))))))))))))

solemn latch
#

🤔

earnest phoenix
#

monkaHmm Wtf is going on

pure lion
#

Pain

inland aurora
#

anyone know thiscannot read property 'execute' of undefined error when using js client.commands.get('ping').execute(message, args); sometimes

quartz kindle
#

@unreal bluff dude, have you read their documentation? node-canvas is a Cairo-backed Canvas implementation for Node.js.

unreal bluff
#

I will figure out a method to it without installing a desktop extension that requires chromo files to generate a snapshot.

quartz kindle
#

it uses the Cairo library to SIMULATE a canvas environment OUTSIDE of a browser

earnest phoenix
#

@inland aurora means the command isn't loaded

quartz kindle
#

its everything a simulation

#

its not a browser

inland aurora
#

Thanks

pure lion
#

I'm moyaing so hard rn

unreal bluff
#

snapshots are normally what you lookup when googling these things.

quartz kindle
#

there are no snapshots and no browser involved, i can assure you that, otherwise how is my bot generating complex images in < 10ms

earnest phoenix
#

monkaW Tim is going full big brain mode

quartz kindle
#

while being fully synchronous

#

the entire library is a simulation of the browser's canvas

slender thistle
#

two bosses meet up

quartz kindle
#

please read about the meaning of the word "implementation"

pure lion
#

No no

#

Please just learn to read

restive furnace
#

^

unreal bluff
#

The problem with the package you shown. It requires a chromo extension to work.

quartz kindle
#

it doesnt

#

show me where it says it does

pure lion
#

@unreal bluff shut up and just try it and see

earnest phoenix
#

Let's be nice here

pure lion
#

Excuse my harshness but tim should be charging you $84

unreal bluff
#

could be the OS centos 6-7-8 that doesn;t work with this properly.

quartz kindle
#

how are you installing it?

pure lion
#

sudo apt-get new-brain

solemn latch
#

I need one of those dice

quartz kindle
#

it requires native libraries such as Pango and Cairo to work, which are native C/C++ libraries, which require build tools to be compiled when installing

slender thistle
#

well let's keep this channel on topic guys

solemn latch
#

Mb

quartz kindle
#

for example if you want to install node-canvas on ubuntu, you need these dependencies to build it:
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

unreal bluff
#

Any of the canvas packages have suggestions on how to do these packages. Normally copy and paste the recommended. npm i or npm install or something the other options -g

quartz kindle
#

what package manager does centOS use? yum?

#

then sudo yum install gcc-c++ cairo-devel pango-devel libjpeg-turbo-devel giflib-devel

unreal bluff
#

yeah I will give this a shot much like php extensions required. could be the underlining issue.

#

Thanks @quartz kindle

earnest phoenix
#

Tim finally resolved the headache of Everyone

faint prism
#

Man, made a SQLiteDataContext. Gotta write some stored procedures now.

unreal bluff
#

I will let you know if that was the issue @quartz kindle just having had issue with any canvas packed prior was bugging my brain. Did not want to code up anything less than nodejs offered without a desktop. dblCertified So either way I'll have to dig deeper if it's not just gotta say thanks for remaining somewhat calm ;p

gilded dawn
#

hi. ok so a long time ago I made a discord bot with python and deployed it with git to heroku. bc i had a heroku free account sometime it would go offline until the the beginning of a new month. recently my bot hasn't come online even though I added extra hours. I'm also worried because I recently made a new github account and transferred the repository with the bot over. I'm not sure what to do. my bot has been down for days. and it was working for many years before.

earnest phoenix
#

Have you contacted heroku support?

faint prism
#

Why would you transfer the repo instead of just clone it there?

#

Are you implying you don't have a clone of the repo anywhere else? And that you've lost it?

delicate shore
#

Hey guys

#

I'm moving from glitch

gilded dawn
#

ohh yeah I wasn't really sure how to handle having two github accounts and someone told me the best thing to do was to transfer the repo over

delicate shore
#

So I can host 2 more projects currently

#

,24*7

gilded dawn
#

to "merge them"

delicate shore
#

On my account

#

For free

#

As I don't want my money to be wasted

#

So instead I will help

#

It anyone wants

unreal bluff
#

Think amazon offers up free time also for free.

gilded dawn
#

so I do have the repo on my new account now.

faint prism
#

I take it you're not that familiar with how git works?

gilded dawn
#

yeah p much

faint prism
#

I recommend reading up on it, it's a very important tool in the application development community

gilded dawn
#

the having two accounts really confused me. i thought by transferring the repo i could merge the two accounts. but now im just not sure if I have broken anything

ruby talon
#

Is there any way to add a . in a dns record?
EG:
Domain name: example.com
Url: my.prev.example.com

I saw this done by google firebase.
EG:
Domain name: google.com
Url: console.firebase.google.com

gilded dawn
#

how do i go about contacting heroku support? when i looked it up it said i have to be a member

placid iron
#

its called a subdomain and yes

#

@ruby talon what registrar you use?

ruby talon
#

Do you mean the nameserver?

#

Cloudflare

rustic nova
#

also you could technically use VirtualHosts if you need that for your website for example

placid iron
#

i mean the website you use to to edit the settings for your domain

ember lodge
#

why CSS doesn't loads?

earnest phoenix
#

@gilded dawn Honestly I'd just recommend getting a $3 VPS per month from a host, heroku isn't worth using to host a Discord bot on, even if free

placid iron
#

no?

#

its been perfectly fine for me but i do understand it can be hard to set up to begin with

pure lion
#

Nvm

earnest phoenix
#

@earnest phoenix ive seen some mean workflows with heroku and bots before

#

Especially if u do the whole travis into publish type deal iirc

ruby talon
placid iron
ruby talon
#

lemme take a look

earnest phoenix
#

Do you guys use Cloudflare, or no?

ruby talon
#

yeah

#

pretty great

earnest phoenix
#

If Cloudflare is handling ur records, you would just create a subdomain there

#

??

#

no one is going to invite your bot

modern sable
#

-faq 1 -c @fresh matrix

gilded plankBOT
modern sable
#

dont post bot invite links here

fresh matrix
#

Soz

karmic compass
#

how do i check if a command is being used in dms

#

/block it f rom being used in dms

slender thistle
#

check message.type == dm or true value in message.guild

karmic compass
#

kk

#

if(message.type == "dm")?

earnest phoenix
#

isn't it message.channel.type?

jolly quail
#

Hmm won't if(!message.channel) work

slender thistle
#

oops yeah

#

and no, a message always has a channel

jolly quail
#

message.guild

slender thistle
#

but it doesn't always have a guild

jolly quail
#

My bad

karmic compass
#

if(message.channel.type == "dm")?

earnest phoenix
#

yes

slender thistle
#

try it

placid iron
#

in python @commands.guild_only() god i love python

#

or something like that

#

probably is_guild()

jolly quail
#

Well we can have that in js too

slender thistle
#

yeah it's guild_only()

jolly quail
#

guildOnly property set to true

#

For command

#

Just feed that in Command handler i mean

karmic compass
#

wait this is a general javascript question but if i have an if statement and i want something to happen otherwise do i use else or do i not haev to?
ex:

if(message.channel.type == "dm") {
message.reply("You cannot use this in dms!")
}
//Insert other code that happens if it isn't here

or do i have to use an else statment?

jolly quail
#

if(command.guildOnly&&!message.guild) return;

#

U should return with that message

earnest phoenix
#

it's an if statement

placid iron
#

@karmic compass you can put a return after the reply

earnest phoenix
#

so u don't need else

placid iron
#

that way you dont have to use else

karmic compass
#
return
``` then we good
#

oops

#
message.reply()
return
``` would work? (ofc stuff in reply)
placid iron
#

i belive so

jolly quail
#

return message.reply()

#

Better

earnest phoenix
#

Both works

#

yeah

karmic compass
#

do dms register as guilds?

quartz kindle
#

no

placid iron
#

no

karmic compass
#

apparently not

#

alr

obtuse jolt
#

@quartz kindle help me with something

quartz kindle
#

?

obtuse jolt
#

I'm wanting to find an IP address in a users message with a regex

#

but my current thing

#

only works if the whole message is an ip

#

i want it to check if the message contains one

earnest phoenix
#

Ahh yes, regex

obtuse jolt
#

if(message.content.match(ipRegex))

slender thistle
#

search instead of match?

quartz kindle
obtuse jolt
#

i alreayd

#

have

#

an

#

ip

#

regex

earnest phoenix
#

Might wanna include support for ipv6 as well, js

solemn latch
#

Doesn't g make the regex check the whole string

earnest phoenix
#

only works if the whole message is an ip
@obtuse jolt tf, that's not how regex is supposed to work

obtuse jolt
#

@slender thistle i put search and it deletes messages that arent ips

sonic lodge
#

that's elsewhere in your code

obtuse jolt
sonic lodge
#

oh, it's supposed to delete messages that are ips

#

negate the check? !condition

obtuse jolt
#

it does the same thing

#

nope it didnt save

#

it delete all messages now

sonic lodge
#

and you're sure your regex is correct

obtuse jolt
#

it detects ips

#

when you send them with nothing else

sonic lodge
#

what does the regex look like

obtuse jolt
#

let ipRegex = /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;

pure lion
#

The fuck

knotty steeple
#

oh god

sonic lodge
#

besides that wow regex, the ^ and $ assert the positions at the start and end of the string

pure lion
#

!!!!!!!!!

#

Portant

sonic lodge
#

get rid of them

earnest phoenix
#

lol

sonic lodge
#

since the ip won' t always be at the start / end of the string

earnest phoenix
#

how do you get bot develeper

solemn latch
#

bingo

#

once your bot is reviewed and approved, you get bot developer role

obtuse jolt
#

i think i should learn how regexes work

sonic lodge
#

please use \d{1,3} to check for digits instead

solemn latch
#

\d doesnt work

#

when checking for numbers of a specific value

pure lion
#

I stucc

sonic lodge
#

right

#

that matters lol

obtuse jolt
#

it works

#

so

pure lion
#

The regex is too scrambly for my brain hole

obtuse jolt
#

much appreciated

solemn latch
#

i think you could just do the same thing 3 times

pure lion
#

Lmao

solemn latch
#

(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)

#

i fucked up the copy pasta

#

🤷‍♂️

#

you get the idea tho

sonic lodge
#

could replace the [0-9] with \d too

earnest phoenix
#

I have an equation that is not just 1 message per minuite for xp

#

Should it be 1.1x or 1.2x xp per proper messages?

solemn latch
#

i give 0-50xp per message by default, configurable by guild

earnest phoenix
#

No, that is to much

solemn latch
#

my xp is based off a games

#

i liked the math

#

something like 13 million xp for level 99

#

lmao

#

10 woo dollars to the first person to guess the game

earnest phoenix
#

I think that you should do 1.2 or 1.1x times xp for multiplier for each minuite, with at least 12 messages, cause I have a 5 sec slowmode

#

so basically you are having a consistent conversation

sonic lodge
#

why is that function for calculating xp so complex 😮

solemn latch
#

🤷‍♂️

#

it was a different time

uncut vortex
#

Hey anyone know how to check if someone has a role ive been having a hard time with it

solemn latch
#

djs?

uncut vortex
#

Oh yeah sorry i didnt mention that

solemn latch
uncut vortex
#

When I try .hasPermission i get a error saying its not a function

solemn latch
pure lion
#

h a m s p e r m i s s i o n ?

#

<member>.hasPermission(bitfield or flag/flag array)

molten tree
#

how do i let the public add my bot

#

?]

pure lion
#

get an invite link

#

:d

molten tree
#

ok

pure lion
#

that usually helps

molten tree
#

how do i let the public add my bot

uncut vortex
#

rawname = message.author.id;
const ifuser = client.users.cache.get(rawname);
if (ifuser.hasPermission(MANAGE_MESSAGES,)) {
console.log("sucsess")
}

molten tree
#

ok

solemn latch
#

your getting a user, not a member @uncut vortex

molten tree
#

look]

solemn latch
sonic lodge
#

only GuildMember objectes have the hasPermission method

molten tree
#

||||

#

helppp (╯°□°)╯︵ ┻━┻

solemn latch
#

whatcha need help with

#

bots need to be approved before top.gg links are public

molten tree
#

hm

#

ok

pure lion
#

speaking of

#

i hope my bot is processed soon because i submitted it on the 8th

#

and theyre doing that today

molten tree
#

ok but how can the bot be verified?

solemn latch
#

mods manually review it

copper relic
#

whats a hostname

#

and root password

#

like the login detaols

#

right?

solemn latch
#

yeah

crystal socket
#

yep

copper relic
#

can it be alphabets or only numbers?

solemn latch
#

depends on the vps provider and OS

crystal socket
#

i have letters in mine, ubuntu doesn't require numbers

copper relic
#

so like that

crystal socket
#

yep basically

solemn latch
#

sure

#

if thats galaxygate, they have a support server

crystal socket
#

^ I just sent you a invite in dms

copper relic
#

ty

uncut vortex
#

I tried GuildMember.hasPermission and Member.hasPermission and its saying that Member is not defined

molten tree
#

mods manually review it
@solemn latch hm ok ham it can take years right?

solemn latch
#

3+ weeks

honest perch
#

@molten tree current time is 3 years

molten tree
#

wow

#

@molten tree current time is 3 years
@honest perch oh ;-; ok bye

honest perch
#

no

#

im joking

#

its 3 weeks

solemn latch
#

message.member will have the GuildMember object if the message is from a guild @uncut vortex

molten tree
#

yes

#

its 3 weeks
@honest perch ok

uncut vortex
#

It worked thanks

molten tree
#

its 3 weeks
@honest perch wait 3 weeks??? hm so quickly lol

#

bye]

dull terrace
#

On the page of my bot, a box-shadow is created by default, how can I remove it?

solemn latch
#

Or none

dull terrace
#

I tried, none, but it doesn't seem to be working.

#

I may have misselected the class.

solemn latch
quartz kindle
#

inspect element and check the original css rules

dull terrace
#

Ok thx

quartz kindle
#

if the originals have !important in it, you need it too

#

of not, you dont

dull terrace
#

Yeah, but I can't find the class for the shadow x)

#

Ok it work thx ^^

quartz kindle
#

except this is not general chat

scenic kelp
#

@silver dust you're not getting muted just warned

earnest phoenix
#

hey guys. I'm trying to make a command that pulls from randomly from a list of replies. here' the code I have


let random = Math.floor(Math.random() * replies.length);```

```if(command === 'shrooms'){
        message.channel.send(replies[random]);```

However, each time I try, it generates the same reply. If i turn off the bot and turn it on again, it generates a different response. But as long as the bot is enabled, it will repeat the same response. is there any reason for this?
faint prism
#

Nearly have an SQLite db in place to replace my JSON db context
Hype

misty sigil
#

hey guys. I'm trying to make a command that pulls from randomly from a list of replies. here' the code I have


let random = Math.floor(Math.random() * replies.length);```

```if(command === 'shrooms'){
        message.channel.send(replies[random]);```

However, each time I try, it generates the same reply. If i turn off the bot and turn it on again, it generates a different response. But as long as the bot is enabled, it will repeat the same response. is there any reason for this?

@earnest phoenix you need to put the random in the command

earnest phoenix
#

where would that go?

misty sigil
#

in the command.

#

in the if statement

#

lmao

earnest phoenix
#

ohhh

pure lion
#

@misty sigil got any promo codes for oxide.host? (My dad is being fucking tight with my money lmOaoaoaoaoa)

misty sigil
#

nah there is none

pure lion
#

Fuc

misty sigil
#

its only 3.59 a month mmulu

pure lion
#

£3

faint prism
#

Self-host life 🥳

pure lion
#

No ew

slender wagon
#

any clue on how i can make my website show a embed when i send the link

misty sigil
#

any clue on how i can make my website show a embed when i send the link
@slender wagon <meta> tags

#

theres a good guide on reddit afaik

slender wagon
#

do i add them in the header of html?

#

googling rn

#

ty

misty sigil
#

@slender wagon no need

slender wagon
#

yup tysm!

misty sigil
#

np!

earnest phoenix
#

sorry for asking again, but i'm a bit new to this. where would the random go in the if statement?

solemn latch
#

Above where you use it, inside the if statement

misty sigil
#

inside it

#

above where you use it

earnest phoenix
#

where exactly? (really sorry, never worked with discord bots before)

misty sigil
#

if(command === 'shrooms'){
let random = Math.floor(Math.random() * replies.length); < this is above where you use it
message.channel.send(replies[random]); < you use it here

#

get it @earnest phoenix?

pure lion
#

Jeremy this host is fucking amazing ngl

earnest phoenix
#

yes, thank you

slender wagon
#

may i ask which host u talking abt?

pure lion
#

oxide.host

#

Ohno

#

My net

misty sigil
#

heh

#

they have a discord server

pure lion
#

:o send

misty sigil
#

k

pure lion
#

I'll ask for free stuff

misty sigil
#

no

pure lion
#

:c fine

#

I assume all the ports are open

faint prism
#

I hope not

misty sigil
#

all

#

yes

faint prism
#

That sounds dangerous

pure lion
#

Ok cool

misty sigil
#

only ones you need tho

opaque eagle
pure lion
#

3000 + 3001

faint prism
sudden geyser
#

@opaque eagle you could try converting it to text and logging it

#

to see what you get as it looks like html at the moment convo moved to api

topaz fjord
#

its most likely returning an html page

#

which means the api or cloudflare got fucked

still merlin
#

Is it possible to make a discord.js bot inside a html file within <script> tags?

misty sigil
#

maybe

#

but thats web js

#

not nodejs

#

so probably not unless you do some hackermans

slender thistle
#

if you manage to open a websocket connection through frontend js

finite bough
#

shiv

solemn latch
#

I would be interested to see a djs bot running in a browser

quartz kindle
#

djs supports browser btw

#

they have a webpack build

slender thistle
#

oh that's neat

quartz kindle
#

although its kinda not maintained

solemn latch
#

Weird

digital ibex
#

how would you even connect client side???

quartz kindle
#

client side js supports websockets

digital ibex
#

but the data comes from the backend, at least thats how i done it

#

and in this case, there is no backend

quartz kindle
#

everything runs in the browser

sudden geyser
#

the web is painful

glass steeple
#

trying to auto purge some channels but it's not doing, solution??

async def auto_purge():
    cid = [722442867xxxx, 722767457xxxxx, 722767582087xxxxx, 722767758521xxxx]
    for c in cid:
        channel = bot.get_channel(c)
        def not_pinned(msg):
            return not msg.pinned
        await ctx.channel.purge(limit=100, check=not_pinned)
auto_purge.start()```
slender wagon
#

what lib is that

digital ibex
#

d.python

glass steeple
#

py

digital ibex
#

tim im confused

#

then whats the point of runtimes?

opaque eagle
#

Is using the singleton pattern any better for saving memory? Because there's just one instance of the class at any point.
For storing the list of upvotes in memory, I'm considering either a singleton UpvoteHandler class that keeps track of it internally or just a Map<Snowflake, Date> property under the Client class that stores new upvotes.

digital ibex
#

i know about dom and stuff, vanilla js doesnt really lack stuff, node.js just makes it a little bit easier and hides any data

#

from what it seems to me, dont really understand how that works then

opaque eagle
#

Vanilla JS is run in the browser... the browser is sort of the "runtime" there... Node.js lets you run JS on your operating system outside of the browser

digital ibex
#

yes

opaque eagle
#

And also provides APIs to interact with OS-y things like the filesystem, etc

quartz kindle
#

the idea was to run a discord bot in the browser, so when you access a website, the webserver/backend would send you all the necessary js code for the front end to connect to the gateway by itself, using a user-provided token for example

opaque eagle
#

oh

digital ibex
#

you can still interact with apis and im pretty sure u theres an os thingy, yeah, nothing with fs tho

#

why do people do that 😩

#

you want to make a dashboard properly = semi hard
you dont want to make a dashboard properly = easy

#

like.. running your dashboard and bot on the same process is just really bad, you're only utilising probably 10% of the library's features, hackiest shit ever

#

and people who do literally everything client side 😔

quartz kindle
#

there's always the right tool for the job

#

and ideally you want to run as much as possible on the client side

#

to avoid starving your server's resources

digital ibex
#

in all of my projects, most of the stuff is done server side

#

they all run pretty fast, but could be faster if i try doing more client side ig, ever since i found out about inpsect element 😓

quartz kindle
#

lets say you have a webapp that does something like generating canvas images

#

based on some json data

#

lets say in order to get this json data, you need to use some api that requires an api key

#

which means its not safe to give it to client side, you have to do it server side

#

but once you have the json data, you can send the json data to the client, and have the client build the image using browser canvas

#

instead of using node-canvas in the server, and sending the already built image

digital ibex
#

thats why i do most of my stuff server side

#

most of my projects are open source, 80% is done through the backend, even if i can do it client side, idk i just dont like it.

#

well.... i've got two websites open source anyways

terse girder
#

how are you meant to use the javascript api with a sharding bot?

quartz kindle
#

if you get 500 requests and build 500 images on the server side using node-canvas, that will hit your server pretty hard, probably max out your cpu for a minute or two, even with good concurrency techniques
but if all you do is respond with some json data, then the impact on your server is very low, and it will all be processed in less than a second

digital ibex
#

hmm, yeah. never thought about that

quartz kindle
#

thats why almost every api out there returns some kind of json data, and never a finished product/response

digital ibex
#

im still a bit new to web development, like 2-3 months into express and actual web dev. but one of my "rules" is to do as much stuff server side, probably would want to do more client side thinking about it now

#

i just thought apis response is json because they dont know what they want us to do with the data

quartz kindle
#

@terse girder which part are you having trouble with? there is not much difference

digital ibex
#

if it wasnt json, what else could it be 🤔

terse girder
#

oh erm

#

i'm trying to share the api's function with my other shards

quartz kindle
#

for example images, audio/video streams, downloads, svg, etc

#

instead an api will return json data containing urls to static files

terse girder
#

oh i meant the npm package

#

not the website api

quartz kindle
#

which npm package?

terse girder
#

js

misty sigil
#

?!

terse girder
#

isn't there only one?

misty sigil
#

js isn't a npm package its the language

terse girder
#

what

quartz kindle
#

are you talking about discord.js?

terse girder
#

no

#

dblapi.js

quartz kindle
#

then what are you talking about?

#

oh

digital ibex
#

whats the-

misty sigil
#

ok thats the npm package then

digital ibex
terse girder
#

ohh

desert breach
#

-bot info

digital ibex
#

wut

desert breach
#

Fuck idk man

#

How do use the bots 😂

#

@digital ibex

#

Sup woo

solemn latch
#

What bot are you trying to use

desert breach
#

Idk u got any good ones?

solemn latch
desert breach
#

I dead ass got discord today so idk what I’m doing at all

solemn latch
#

Well, this is the development channel.

desert breach
#

Oh sorry

solemn latch
#

#general might be a better place for this

digital ibex
#

but something instead of ! cuz nothing will respond

#

and pick a bot u like

desert breach
#

U got any recommendations

#

?

#

And can u dm the command?

#

Oh it send me here

earnest phoenix
#

whats the difference between

fathom jetty
#

ca ni add my bot

earnest phoenix
#

@discordjs/opus

#

opus

#

opusscript

opaque eagle
#

Does anyone have a microservices-oriented bot? if so how is it laid out

digital ibex
#

/opus is for voice

#

/ is for || ||

earnest phoenix
#

?

#

i couldnt install @discordjs/opus on my vps

#

so i installed opusscript what worked somehow

opaque eagle
#

what vps do u use

earnest phoenix
#

digitalocean

#

i just bought it

peak venture
#
          let db_store = await new Promise(resolve => {
              db.query(`INSERT INTO shipdata (account_id, ship_id, yr, winrate, time) VALUES ('${account_id}', '${ship.ship_id}', '${yrating.to_average()}', '${winrate}', '${now.getTime()}' ) `, function(err, rows) {
              if (err) throw err
              resolve(rows)
            })
          });
          
          let endTimeOne = now.getTime() - 86400000
          
          let queryOne = `SELECT winrate, yr FROM shipdata WHERE account_id = ${account_id} AND ship_id = ${ship.ship_id} AND time = (SELECT MIN(time) FROM shipdata WHERE account_id = ${account_id} AND ship_id = ${ship.ship_id} AND time >= ${endTimeOne} AND time < ${now.getTime()})`
  
          let db_ship = await new Promise(resolve => {
              db.query(queryOne, function(err, rows) {
              if (err) throw err
              resolve(rows)
            })
          })```
#

Got an issue with the part of db_ship

#

apparently my data gets stored

#

but when i ask it to retrieve data the first time i call this it doesnt obtain any row

#

What can i do/should i have done to get a result from the last promise?

ember lodge
#

Why does nginx doesn't loads css and js files in my website?

Here is my nginx config =

server {
    listen 80;
    server_name www.suggestions.wtf suggestions.wtf;
    root /website;
    index index.html;

location / {
    include  /etc/nginx/mime.types;
    if ($request_uri ~ ^/(.*)\.html$) {
        return 302 /$1;
    }
    try_files $uri $uri.html $uri/ =404;
}
}
pure lion
#

How to pm2?

digital ibex
#

wdym

pure lion
#

How do I set up pm2

digital ibex
#

npm install pm2

#

BUT

#

BUT

pure lion
#

It's already on the LoC system

digital ibex
#

is this for loc? if not then ^^

#

yeah

pure lion
#

Idk how it works :d

digital ibex
#

how do u start the app on ur local machine?

pure lion
#

node .

#

From ssh

digital ibex
#

show ur package.json

pure lion
#

Oky

ember lodge
#

sudo npm install pm2 @pure lion

pure lion
#

I can't sudo

digital ibex
#

its already installed

ember lodge
#
sudo apt update
sudo apt install nginx
#

that's what u have 2 do

digital ibex
#

....

pure lion
#

main is index but I'm using server.js

#

So I run npm start

digital ibex
#

theres nothing wrong with pm2

#

then u just pm2 start server

pure lion
#

Okay

digital ibex
#

u can add the .js but it looks ugly!!

pure lion
#

CoOL

#

But how does this run it 24/7?

digital ibex
#

pm2 is a process manager

#

and loc is up 24/7 with little to no downtime

#

its running the script when you close the terminal

pure lion
#

Oh epiccc

digital ibex
#

unless loc's thingies go down, ur thing stays up

pure lion
#

Btw I should probably create a ticket with Ramirez to request peerjs globally :d

digital ibex
#

you can install peerjs

#

why do u need it global?

pure lion
#

To start the server

digital ibex
#

global as in npm install -g peerjs

pure lion
#

Yeah

#

But I can't

digital ibex
#

wdym?

#

what does it say

pure lion
#

-g is blocked

#

So the site is up now but no rooms jajajajaja

#

Or actual calls

#

I'm gonna create a ticket brb

solemn latch
#

Probably not yet

stray sinew
#

E

fresh matrix
#

Idk

small prairie
#

but its never early

#

technically u can shard at 0 guilds

summer torrent
#

he doesn't need that now

digital ibex
#

ram go brrr

#

cpu go brrr

#

other random pc things go brrr

faint prism
#

Depends on the command's calculation. Sharding is just an easy way to cluster bot servers, right?

solemn latch
#

Most people shard on one server iirc

small prairie
#

i think its the only way ever implemented

solemn latch
#

Clustering is a bit more work right?

digital ibex
#

probably

#

well im guessing yeah

small prairie
#

Clusters are a bigger thingies which have smallers shards which have guilds

#

i think

#

;-;

quartz kindle
#

its all the same shit, just a matter of how you split it up

solemn latch
#

Can you use broadcast eval with clustering?

quartz kindle
#

depends what you consider a "cluster"

digital ibex
#

i remember when i was gonna cluster at 188 guilds pogey

quartz kindle
#

if its a process in the same machine, spawned by a master process, yes

#

otherwise if you have a remote ipc connection, still yes

#

otherwise no

digital ibex
#

are clusters like a fixed thing?

solemn latch
#

Hmm

digital ibex
#

like sharding is, one shard cant go past 2.5k guilds

quartz kindle
#

nope, the word cluster has many meanings

#

its not a defined thing

#

just a concept

digital ibex
#

ah

#

i think a reasonable amount, for a discord bot, is 80 - 100 shards per cluster

#

nvm me!!

quartz kindle
#

lmao

solemn latch
#

Lmao 1200k shards

#

Madlad

digital ibex
#

lol

#

:shut:

quartz kindle
#

i was thinking dafuq

#

lmao

digital ibex
#

i was thinking of something completely different

#

im stoopid

#

oh and its still wrong :/

amber fractal
#

Lol, it really depends

solemn latch
#

Your shard count for diffrent servers probably depends on the hardware

#

The way you shard

quartz kindle
#

ideally you would want to fit as many shards in a single process as a single cpu core can handle

digital ibex
#

the word cluster just reminds me of dyno

#

only because of their status page

quartz kindle
#

now you probably dont want your cpu maxed out all the time

#

but i guess 1 core being on like 50% permanently would be ok

#

so as many shards in one process until a single cpu core gets to around that

honest perch
#

Lmao, imagine being efficient

digital ibex
#

this side of dev talk makes me wanna set up a grafana dashboard

quartz kindle
#

same

solemn latch
#

I liked setting up grafana

quartz kindle
#

but too much work

digital ibex
#

yeah

amber fractal
#

Tim saying too much work?

#

Not possible

quartz kindle
#

the pm2 web dashboard is nice

digital ibex
#

lmao

solemn latch
#

Learning about prometheus was kinda intresting

quartz kindle
#

but its limited to 4 processes for free accounts

digital ibex
#

oof

solemn latch
#

I thought the pm2 panel was always paid

digital ibex
#

i got da 0 p's

quartz kindle
solemn latch
#

Like a 30 day trail or something

digital ibex
#

holy

solemn latch
#

0 restarts?

#

Pretty sure I hit 300 on one of my pm2 processes

digital ibex
#

thats some pretty good statisticistitcs u got there m8

quartz kindle
#

well when i make changes to the environment like update node version and shit, i have to reload the entire config

#

so it also resets the counters

solemn latch
#

Aj

quartz kindle
#

but that one's online for a month now

#

which is basically the last time i did that

#

those 82 restarts are because i pushed code with syntax errors lmao

digital ibex
#

nice one

quartz kindle
#

@solemn latch it used to be paid but they seem to have a free version now

#

limited to 4 processes

#

and doesnt keep logs

solemn latch
#

Still useful for quick checks

quartz kindle
#

you can only see the last 5min for cpu/memory activity, and only if you keep the tab open that long

solemn latch
#

Ah

quartz kindle
#

but its cool that you can add your own metrics

digital ibex
#

how long have you guys been into these kinda things?

quartz kindle
#

idk

#

lmao

digital ibex
#

like tech and coding

#

w0w

solemn latch
#

Most of my life

quartz kindle
#

for general tech, basically 15 years

digital ibex
#

damn

quartz kindle
#

ever since my teens

unreal bluff
#

@peak venture you ever get your issue worked out? I can send you a helpful little code that may work out better for you.

solemn latch
#

I was taking apart computers since elementary school

digital ibex
#

aghgjuhf

stray portal
#

im

solemn latch
#

Totally not the reason the family pc kept dying

gritty bolt
#

does anyone know of a way to see if a message contains a URL, and how to pull it out from that message>

digital ibex
#

computers give me headaches

quartz kindle
#

i did a bad bios update and bricked my pc when i was 16, it was traumatizing and i never trusted bios updates anymore

solemn latch
#

Well its bios updates

#

Who knows what will happen

#

Regex @gritty bolt

gritty bolt
#

can you explain that to me

quartz kindle
#

@gritty bolt you can check if the message contains http:// or https:// i guess

gritty bolt
#

oh thats a good idea

#

thanks lol should've thought of that

pure lion
#

How to cheat at internet:
require('http') to require('https')
Free SSL X)

digital ibex
#

?

quartz kindle
#

lmao

knotty steeple
#

quick question is |= an operator in js

digital ibex
#

oh i c lmfao

#

nope

quartz kindle
#

i think it is wait

pure lion
#

:= walrus

solemn latch
#

If it is ill be confused

#

Or equals? Or something?

pure lion
#

'a' | 'b' what does this mean again

knotty steeple
#

bitwise or

#

while assigning

pure lion
#

Is it for TS typing or something

digital ibex
#

well, it wont be for typings

quartz kindle
digital ibex
#

o?

knotty steeple
#

its bitwise or

solemn latch
#

What

knotty steeple
#

or its and

#

idk

quartz kindle
#

yes | is bitwise "or"

unreal bluff
#

Directed the SSL gateway to your domain IP if it's self assigned and your server from any place like google domains or where ever you host that domain. Although I would debate this is off topic.

knotty steeple
#

im using bitfields for my badges

pure lion
#

Oh no this guy again

#

I'm gonna go

digital ibex
#

?

#

who

knotty steeple
#

they work really well

pure lion
#

Stock

unreal bluff
#

They do not allow trolling on here. Just remember to take your daily nap.

pure lion
#

I will, gn :)

digital ibex
#

haha im like that with 50% of people in this chat xD

unreal bluff
#

gn dice ;p

pure lion
#

I think Tim left to get some coffee

#

After what happened last time

quartz kindle
#

im here lol

pure lion
#

Oh hi

honest perch
#

Tim is always here

quartz kindle
#

not always

pure lion
#

Tim is omnipresent

quartz kindle
#

i take a few days off every now and then

#

lmao

pure lion
#

Tim is omniscient

solemn latch
#

Ohhh |= is bitwise or assignment

pure lion
#

Tim is a literal god

solemn latch
#

I was so confused

quartz kindle
#

subscribe to my religion thx, need money to build church

pure lion
#

Woo it makes sense ngl

digital ibex
#

lmfao

solemn latch
#

Yeah

#

I was just being dumb

knotty steeple
pure lion
#

*hug*;a

honest perch
#

subscribe to my religion thx, need money to build church
@quartz kindle what religion is this

pure lion
#

The $42 club

solemn latch
#

Patron religion

unreal bluff
#

A open discussion about canvas to image to show via a bot. Without visiting the url prior or having a desktop. I haven't went and attempted to see if that was correct. I just find communication with those type of things are good FAQ. Flaming someone trying to dev anything here isn't going to get you moderator position.

pure lion
#

Subscribe to mine so I can have a better host

solemn latch
#

Only one of us here who could be mod is tim.
The rest of us goof around

knotty steeple
#

@unreal bluff what

solemn latch
#

I break atleast a few rules a day

urban olive
#

how do i make bot DM users?

knotty steeple
#

..that doesn't make sense

quartz kindle
#

mods have a lot of work and dont get paid afaik

solemn latch
#

User.send

honest perch
#

how do i make bot DM users?
@urban olive read the docs

unreal bluff
#

Although, I did claim to know 28 programming and web dev languages. Not knowing something bugs my mind when all the languages start blending together and you forget a few things here and there.

pure lion
#

@unreal bluff
fuckyou.ejs
res.render('fuckyou.ejs', {suckMyBigBalls: stockValue01 //...})

urban olive
#

link?

solemn latch
#

Depends on your lib

urban olive
#

im using js

honest perch
digital ibex
#

tim, what do you use for use for monitoring?

earnest phoenix
#

How can I replace every number in a string with **number**?

let string = '1 hello 2 world 3';
string = string.replace(/[0-9]/g, "****");
// wanted result -> '**1** hello **2** world **3**.
solemn latch
#

Js has multiple libs

pure lion
quartz kindle
#

currently only pm2

honest perch
#

mods have a lot of work and dont get paid afaik
@quartz kindle they get paid in rice grains

quartz kindle
#

1 rice grain per bot reviewed

digital ibex
quartz kindle
#

yes

digital ibex
#

ohok

unreal bluff
#

I feel like I am babysitting to just watch where I can assist someone actually needing help.

earnest phoenix
#

i use it as well i would recommend it

#

its really easy to use

solemn latch
#

Multiple people have asked questions

#

Lol

digital ibex
#

i just tried to set up a grafana dashboard

#

gave up in like 1 minute

pure lion
#

:r

unreal bluff
#

Need a daycare channel.

quartz kindle
pure lion
#

@unreal bluff if you aren't going to help go to shitpost :)

digital ibex
#

yeah, im trying to set it up rn

unreal bluff
#

Allowing a user like dice to chat openly here is a strong red flag to any mature dev.

digital ibex
#

ook

knotty steeple
#

ok

earnest phoenix
solemn latch
#

@earnest phoenix for some reason I can't think of a reasonable way to do it

unreal bluff
#

I think ima just leave you kids with that.

pure lion
#

Allowing a user like dice to chat openly here is a strong red flag to any mature dev.
I totally agree with you

Except not sike bitch this is some bullshit :D

solemn latch
#

Loop through each word?

unreal bluff
#

Grow on it for a few years.

earnest phoenix
#

yes thats what i thought as well

#

match in

solemn latch
#

IsNaN it

earnest phoenix
#

match it, loop it, and replace it

solemn latch
#

Yeah

knotty steeple
#

@earnest phoenix use regex match

earnest phoenix
#

or what woo says

#

isNaN every caracter

#

might be better

pure lion
#

args.forEach(arg => isNaN(arg))

solemn latch
#

Id isnan each arg

quartz kindle
#

lmao

earnest phoenix
#

no

#

ye depends

#

how you define args

#

if it is 123helloworld321 it wouldnt work

solemn latch
#

Split string by space

#

O

pure lion
#

Allowing a user like dice to chat openly here is a strong red flag to any mature dev.
Ngl this is valid but only for me and nobody else nobody should ever take advice from me