#development

1 messages Β· Page 1075 of 1

silver spear
#

oH IT WORKED

#

thaT woRKED

#

THAT EMBED WORKED YES

#

finally

#

thank you

#

but its not background unfortunately

earnest phoenix
#

i have a command folder and im using a serverinfo command and the bot isnt responding when i use the command this is what i used
do i need to put anything in main.js or just keep it in my serverinfo.js command

#

if it lets me upload the file

#

can anyone help or know the reason it wont respond

silver spear
#

aHAHA

potent dagger
#

Hi guys anybody wanna help me stresstest my server ?

earnest phoenix
#

anyone have pokedex code i need!πŸ˜…

finite bough
#

how do u force end a collector

silver spear
#

that not workin

earnest phoenix
#

how to register font on canvas

silver spear
#

YES

finite bough
#

@earnest phoenix if its a custom font u need the font tts file in ur project and then require it

earnest phoenix
#

oft

#

file

finite bough
#

text file

earnest phoenix
#

no oft

#

i have oft

#

file

#

i got it from google fonts

finite bough
#
 ` [text](LINK) ` 

@low orbit

#

try it

#

i dont know if canvas supports oft files

earnest phoenix
#

it does

#

i think

finite bough
#

then do it

earnest phoenix
#

i dunno hoiw toh

#

thats why i came here to ask

finite bough
#

u cant

#

if a normal message is this

wild adder
#

I need some more help on discord js (java)

pale vessel
wild adder
#

E

earnest phoenix
#

-dotpost @wild adder

gilded plankBOT
#

@wild adder

Please do not post dots to clear your messages/get attention. It adds absolutely nothing to the conversation and just causes spam.
If you need to get attention, then say hello everyone. If you need to clear your messages, then press the Esc key. If you do not follow these instructions you will be muted.

silver spear
#

how do i make that the background image

#

for my bot page?

#

pls someone

wild adder
#

Bruh

#

I'm just asking

#

Does anyone kbiwb

thin turret
#

If you know html and css, I think <section> tags call out the page itself

#

So just set the styles of section to have background: url('') to your image

#

Havent tried it though

earnest phoenix
silver spear
#

lol

earnest phoenix
#

There's a certain tag that DBL uses for it. You'd have to inspect element the page to find out

silver spear
#

😦

#

im on a mac

#

i cant

sudden geyser
#

Yes you can

silver spear
#

how then

earnest phoenix
#

Zoro can you help me register a font on canvas, lib: discord js

#

Right click on the page -> Ibspect element

#

Inspect*

sudden geyser
#

If you can't see Inspect Element, go Preferences -> Advanced -> Show Develop menu in menu bar

earnest phoenix
#

@earnest phoenix I sadly don't have any canvas knowledge

#

oh ok

silver spear
#

ok i got inspect up

#

but im not a coder

#

i use ghostbot

#

i dont know how to interpret, what do i look for

thin turret
#

Youre submitting a ghostbot clone?

sick fable
#

.

silver spear
#

so whatdoilookfor

thin turret
#

Before you do anything, if all you did is submit a bot clone with no modification its going to be rejected

silver spear
#

its not a clone.

#

it has many custom commands

#

i used ghostbot to build it

earnest phoenix
#

Then it's fine

silver spear
#

yeah

#

so how do i make a background....

#

i just need to know

#

a snippet of code

thin turret
#

Then youd want to hover over elements until the background gets highlighted

silver spear
#

ok

thin turret
#

The element you hover over when bg is highlighted is the snippet that defines the background

silver spear
#

ok

#

ok i get </body>

#

😦

#

not WORKINNGGG

thin turret
#

Body refers to the entire page

#

You have to look specifically for the image

silver spear
#

i did...

#

couldnt find

#

div.columns.is-tablet.is-desktop

#

i got that

#

has anyone ever made a bot page background before?

thin turret
#
<style>
  section {
      background: url('YOUR_IMAGE_URL') no-repeat;
  }
</style>
<body>
  <section>
   </section>
</body>
#

Insert that

silver spear
#

thank yoy

#

πŸ™‚

thin turret
#

just make sure your image url is there

silver spear
#

k

#

oh it needs a repeat

#

its not big enough, oofity

thin turret
#
<style>
  section {
      background: url('IMAGE_URL') no-repeat;
      background-size: cover;
  }
</style>
<body>
  <section>
    
   </section>
</body>

#

try that

#

just replace my image url

silver spear
#

ok

#

thanks so much

thin turret
#

πŸ‘

silver spear
#

πŸ˜„

sick fable
#

has anyone ever made a bot page background before?
@silver spear lol, I dont know coding much

earnest phoenix
#

anyone have pokedex code i need😭

thin turret
#

Why do you need the code?

earnest phoenix
#

my is not working @thin turret

thin turret
#

You're better off in the long run learning yourself

earnest phoenix
#

Code

#

pokedex code

thin turret
#

What doesnt work about yours

earnest phoenix
#

my?

thin turret
#

Yes your code

summer torrent
#

anyone have pokedex code i need😭
@earnest phoenix spoonfeeding is not allowed

#

no one will give a code

thin turret
#

Pokedex might not even be open sourced

#

Even if it was you wont learn by just copying

earnest phoenix
#

@thin turret no error is showing but bot say No data

thin turret
#

?

#

Whats your goal and what does your log return

earnest phoenix
#

Wait

marble geode
#

put this on package.json

thin turret
#

You have to set up node

earnest phoenix
#

I'm just waiting 30 min but not installing

thin turret
#

Also

#

You need atleast node v12 for discord.js

marble geode
#
node: '12.x'
},```
#

^
put that on package.json

#

i using glitch too for my bot

slate oyster
#

@low wasp what is the parser.py file you are working on?

marble geode
#

now my bot on 50 server :)

slate oyster
#

Mine is on 59 :)

thin turret
#

Mine still in queue

small peak
#

Mine too .-.

slate oyster
#

Mine is not in queue

earnest phoenix
#

Mine is in 7 lol

#

I only made it yesterday and it isn’t done so I can’t be disappointed

#

I have an issue with the pinging command:

if (message.content === `!Sun hug <${user}> `) {
ReferenceError: user is not defined```
#

How do I define User?

lusty quest
#

define the user

sonic lodge
#

lmao

lusty quest
#

message.user as example

earnest phoenix
#

Oh!

#

Ok!

lusty quest
#

but i think you probably want to mention the tagged user right?

earnest phoenix
#

Yes

lusty quest
#

try message.mentions.first() (not 100% if this is correct)

thin turret
#

message.mentions.users.first() i think

#

But I recommend redoing your if statement

lusty quest
#

yea this sounds better

earnest phoenix
#

Where do I put it?

#

when you do multiarg commands you probably don't want to use mentions

#

I'm trying to ping the user that is hugged

thin turret
#

Id recommend watching codelyons video on setting up a command handler and arguments

#

If you build your bot around that foundation theres alot that can go wrong

earnest phoenix
#

Like one of the DDLC Discord Bots

sonic lodge
#

when you mention a user, you are actually sending <@[user's id]>

#

just send '<@' + (user's id here) + '>' to ping them

earnest phoenix
#

dude how to register font? please tell me i cant find anything

pale vessel
#

you can just do user if you're concatenating them in a string

#

alternatively, user.toString()

sonic lodge
#

yeah, that works too

thin turret
#

User returns an object

#

Youd have to get the id property of user

sonic lodge
#

@earnest phoenix what's the issue

pale vessel
#

when you turn it to a string, it changes it to the mention

earnest phoenix
#

;-;

#

i just said

sonic lodge
#

register a font in what

pale vessel
#

canvas

lusty quest
#

usually in d.js V12 it should parse user to a mention if you use ${user}

sonic lodge
pale vessel
#

look at how long this person did it, like less than a minute

#

please learn how to do basic googling

slate oyster
#

Ooh
It would be cool if Discord bots supported canvas and user input
That would be a boatload of network latency tho

low marsh
lusty quest
#

@slate oyster you can use canvas for making stuff like diagrams

#

or image manipulation so idk what the issue is

solemn latch
#

πŸ€”

#

lots of bots use canvas

slate oyster
#

I'm saying if you could display a live canvas on Discord
And accept user input

It would take tons of Network Latency tho, so unlikely

solemn latch
#

thatll never happen

slate oyster
#

Yea
Discord's servers would burn up as soon as said feature was introduced

#

And, even if they did not, it would be uber laggy

lusty quest
#

i dont think its impossible. just discords current API design doesnt allow it. in the End discord Clients are Web Browsers

solemn latch
#

iframes or something.
But it would likly be reserved behind a paid feature

#

like the game dev license stuff

amber junco
#

Hello

#

I need someone to code a bot with me

solemn latch
#

this isnt really the place to ask

amber junco
#

Where do I ask then?

solemn latch
#

a developer hiring website πŸ€”

#

fiverr or something

lusty quest
#

i dont think he wants a bot coded he looks for a Partner to code a bot with

solemn latch
#

generally speaking, you hire devs when you want someone to work on something

#

πŸ€”

low marsh
earnest phoenix
#

look at how long this person did it, like less than a minute
@pale vessel bruh i fucking do whta it says and doesnt work smh

pale vessel
#

did you do it BEFORE initializing the canvas and the console did not throw any error and you specified the correct font family name

earnest phoenix
#

k let me try now

#

no doesnt work @pale vessel

lusty quest
#

did you register the front before generating the canvas?

earnest phoenix
#

bruh

pale vessel
#

if so please show the code so that we know that you actually understand us

earnest phoenix
solemn latch
#

πŸ€”

pure lion
#

Why

pale vessel
#

and resolve is {resolve} = require("path"); right?

earnest phoenix
pure lion
#

I'm sorry why aren't you just putting in the path of the font

pale vessel
#

because canvas needs an absolute path

#

iirc

pure lion
#

Yes so copy the absolute pa-

midnight blaze
#

quick question, how to open a map collection?
I wanted to fetch 10 messages.
Is this how I should do it?

let msg = await message.channel.messages.fetch({ limit: 10 });
msg.forEach(msg => console.log(msg.content))
pure lion
#

Wait so not ../ paths?

pale vessel
#

you can either use path.resolve, an actual path, or __dirname

#

that's a relative path

pure lion
#

O got it

#

Ok ok

pale vessel
earnest phoenix
#

huh

#

so is my code wrong?

pale vessel
#

it should be okay, i never used path before

#

but i've heard of it

earnest phoenix
#

but it doesnt work

tight plinth
pale vessel
#

check your console

earnest phoenix
pure lion
#

@tight plinth you need to enable some intents

tight plinth
#

which ones

pale vessel
#

you could've showed us that before OMEGALUL

pure lion
#

Wait brb

pale vessel
#

instead of "not working"

earnest phoenix
#

kek

pure lion
#

kok

pale vessel
#

show a sample code where you used the font

earnest phoenix
#

@pale vessel

pure lion
#

@tight plinth okay in client opts you put: ({ws:{intents:['GUILDS', 'GUILD_MESSAGES', 'GUILD_VOICE_STATES']}})

tight plinth
#

ok

#

thx

solemn latch
#

i dont think you need the extra quotes do ya?

earnest phoenix
#

it is on the docs

pale vessel
#

you don't but it should still be valid

earnest phoenix
#

should i removwe?

pure lion
#

Stringseption

#

Omg what the fuck is up with my net

#

I'm angry rn

pale vessel
#

it didn't try to load it with quotes. unless that's an error when it's trying to register the font...

solemn latch
#

Canvas.registerFont("./assets/fightassets/font/VT323-Regular.ttf", { family: 'Pixel' });
offscreenCtx.font = "20px Pixel";

#

those are my font lines

pale vessel
#

reeeeeeee why not assets/flight/font/

solemn latch
#

ew

#

extra folders

#

more navigation

pale vessel
#

what

solemn latch
#

waste of time

earnest phoenix
#

ill try get rid of ""

solemn latch
#

πŸ˜„

pale vessel
#

no, renaming flightassets to just flight since it's in a folder called assets already

solemn latch
#

πŸ€”

pale vessel
#

never mind lmao

earnest phoenix
#

@pale vessel nope that did work

pale vessel
earnest phoenix
#

didnt

#

@pale vessel can you just give a font that would match the command that's built in canvas?

pale vessel
#

sans-serif

#

serif

#

any generic ones

earnest phoenix
#

what does it look like?

quaint wasp
#

guys, when will my bot will be approved?

pure lion
#

Snas senrif

quaint wasp
#

afk

earnest phoenix
#

3-4 weeks

quaint wasp
#

ok

pale vessel
#

just like a normal serif font for serif (like times new roman) and Arial for sans-serif

earnest phoenix
#

kek

#

i want nicw font

#

nice

tight plinth
pure lion
#

Switch case

tight plinth
#

k

pure lion
#

Mostly up to you tho

#

Anyway I'm going to write a game engine

#

See you in seven years

tight plinth
#

k bye

jaunty junco
#

quick question for discordia, how do you get the member count of a server?

solemn latch
#

probs in the docs

pure lion
#

What's the official C# discord lib?

jaunty junco
#

@solemn latch thanks found it

misty sigil
pure lion
#

Okay

earnest phoenix
#

guys how to get list of all canvas' default fonts?

misty sigil
#

its system defaults.

solemn latch
#

^

earnest phoenix
#

its system defaults.
@misty sigil yes

pure lion
#

Also how tf to I install okeh

misty sigil
#

good question

pure lion
#

To answer that question first we need to talk about parallel universes

solemn latch
earnest phoenix
#

guys how to get list of all canvas' default fonts?

torn ravine
pure lion
#

Tanks woo

pale vessel
#

guys how to get list of all canvas' default fonts?
@earnest phoenix are you kidding me

pure lion
#

console.log(canvas)

tight plinth
#

Ok

pure lion
#

Or whatever you have it named

pale vessel
#

<canvas> mmLol

solemn latch
#

o

pale vessel
#

nice development talk

pure lion
#

?

tight plinth
#

Might get a new keyboard at September 10th aka bday

solemn latch
#

theres a keyboard with no keycap labels, and i want it

#

looks so slick

torn ravine
#

@tight plinth we in da wrong channel

slender thistle
#

development

pure lion
#

Holy shit I just caught a fly

tight plinth
#

Yep

earnest phoenix
#

@pure lion dont say anything

solemn latch
#

who told shiv

pure lion
#

Also help what lib do I choose

solemn latch
pure lion
#

Yes woo who told shiv

#

😏 πŸ“

earnest phoenix
#

@pure lion

pure lion
#

Okay I'm doing DsharpPlus x)

summer torrent
earnest phoenix
#

hi

#

how do i run calculations on a string?
like if i pass the string "(1 + 1) - 2" it returns 0

#

that is what i will use for "C!code913's_IQ"

#

because i have an IQ of 0

lusty quest
#

make the calculations outside of a string

earnest phoenix
#

yeah

slender thistle
#

Either a package that handles math functions for you or literally eval

lusty quest
#

then just pass it into the string

earnest phoenix
#

oh i now got it

#

Either a package that handles math functions for you or literally eval
that's a thing?

slender thistle
#

I remember seeing some package for handling math expressions

pale vessel
#

mathjs

near ether
#

how can i sanitize eval input?

solemn latch
#

alcohol

sonic lodge
#

you can't

pale vessel
#

you can't

quartz kindle
#

eval("(1+1)-2") = 0
but also eval("process.exit()") = your bot dies
so tread carefully

earnest phoenix
#
var stuffToCalc = message.content.substring("C!calculate".length).split("/ / ");
stuffToCalc.eval();

will this work?
i know i should try it and see but i am reinstalling stuff rn

pale vessel
#

don't do that, please

earnest phoenix
#

why the hell is it stuck on installing

#

and i can't kill the process too...

#

;---;

slender thistle
#

eval is a built-in function

#

not a method

earnest phoenix
#

oh

#

lemme just write down a list of all the inputs that can kill my bot

pale vessel
#

please don't use eval for that, a member leaked a bot's token (that uses eval for math command) using obfuscated code

#

you can't

#

just don't

summer torrent
#

use math packages

pale vessel
#

use mathjs or their api

lusty quest
#

eval is a bad idea

pale vessel
#

way easier

sonic lodge
#

and safer

earnest phoenix
#

use mathjs or their api
@pale vessel ??? what's math.js

summer torrent
#
pure lion
#

Why the fuck do you need that?

quartz kindle
#

you could remove all characters except 0-9 +-/* () but theres probably a loophole for that too considering how js is

pale vessel
#

you could've googled that...

lusty quest
#

its buildin

summer torrent
amber fractal
#

@quartz kindle oh there's definitely a loophole

quartz kindle
#

the only safe way is to parse the math yourself

earnest phoenix
#

yeah

amber fractal
#

you'll end up calling a function somehow and bypassing everything mmLol

pale vessel
#

so true

opal plank
#

cant you toString(here)?

#

to prevent escaping

pure lion
#

What is here

#

?

lusty quest
#

i use this for cleaning up my Eval Return from a eval command ```
text.replace(//g, "" + String.fromCharCode(8203)).replace(/@/g, "@" + String.fromCharCode(8203));

amber fractal
#

doesnt matter, if you're evaling

opal plank
#

whatever the fuck you running on your code

pure lion
#

I guess your could use regex?

opal plank
#

i mean to prevent escaping from code

#

not for eval

pure lion
#

If it's not a number or doesn't match a math sign

#

Bleh

opal plank
#

isNaN()

pure lion
#

Isn't that decapricated?

opal plank
#

no?

pure lion
#

Wait nvm that's isNull

opal plank
#

is null is stupid

pure lion
#

Oopies :Dd

opal plank
#

if (thing)

#

there we go

pure lion
#

if think == null

opal plank
#

just do if (thing)

#

unless you specifically looking for null

#

which is very rare on itself

earnest phoenix
#

just realized i can do this:

user: C!calculate
bot: *ignores everything after C!calculate*
bot: enter a number
user: process.exit();
bot: checks if it is not a string
bot: hey that's not a number
user: 1
bot: enter the second number:
user process.YEEEEEEEEET();
bot: checks if it is not a string
bot: hey that's not a number
user: 5
bot: what do you wanna do with these? enter the possible operators: +,-,*,/
user: anything other than those
bot: checks if it is any of those
bot: HOW AMNY TIMES DO I HAVE TO TELL YOU TO ENTER THE INPUT CORRECTLY
user: +
bot: 6
pure lion
#

What the forcker Frick balls peppercorns

opal plank
#

if () will catch empty string, undefined, null and some other shit

earnest phoenix
#

stop swearing

opal plank
#

no

#

why not simply split the args into one thing?

earnest phoenix
#

yeah

opal plank
#

iterate args and check if its either an allowed symbol or number

earnest phoenix
#

cool idea

midnight blaze
#

I have did this Erwin some days ago

#

filter nan

#

and then use reduce function

opal plank
#

for a of args {
if (isNaN(a) || !regex here ) return

}

#

boom

#

300iq

pure lion
#

3 million

#

Eye queue

midnight blaze
#

I can even do this with my algo : 1+2+3+test*3

#

and it will work

pure lion
#

Don't join args with +

opal plank
#

just enable your eval for public and let them do the math

pure lion
#

^^^^

silver spear
#

development i made a bot with ghostbot that TALKS TO YOU im so cool

pure lion
#

Uh

silver spear
#

lol

#

ghostbot

#

lmao i cant code for SAhSDWH

pure lion
#

That is literally the purpose of every bot ever

opal plank
#

go brag elsewhere @silver spear

#

shoo

#

if you need help feel free to ask

lusty quest
#

i added Alexa to my bot once but it was annoying

midnight blaze
#

here continue

pure lion
#

@lusty quest what and how

lusty quest
#

APIs

pure lion
#

Sick

opal plank
#

@midnight blaze you arent suppose to spoonfeed btw

midnight blaze
#

idc

opal plank
#

imagine caring about the rules

lusty quest
#

also i needed to remove it bcs users wanted to order stuff (was disabled)

pure lion
#

LMAO

slender gulch
#

hello

slender thistle
#

@midnight blaze I assume you don't care about consequences of not following server rules either, then.

opal plank
solemn latch
#

lol

tight plinth
pure lion
#

Add a break

#

Wait

amber fractal
#

you're not breaking

pure lion
#

No

tight plinth
#

o

#

fuck

pure lion
#

Yes

midnight blaze
#

@slender thistle yyes, I do. Sry^^ I just wanted to help

tight plinth
#

i forgot how switch statements works

midnight blaze
#

I wont do that in the future

pure lion
#

Break but also put it outside the }

tight plinth
#

thx for reminder

amber fractal
#

should be the very last line in the case

tight plinth
#

ye

earnest phoenix
#

lemme type it out:

//some switches shit
case "calculate":
if (!args[1] || !args[2] || !args[3] || isNaN(args[1]) || isNaN(args[3]) || args[2] != "+" || args[2] != "-" || args[2] != "*" || args[2] != "/" || args[2] != "\") {
  message.reply("what the heck are you trying to do");
} else {
  eval(`${args[1]} ${args[2]} ${args[3]}`);
}
#

i wanted to send that 15 minutes ago

#

but my internet died

pure lion
#

a

placid iron
#

What

sonic lodge
#

are you still trying to use eval as a calculator

earnest phoenix
#

how can i make a command say something randomly like dank memer it says hay donate to use or smth? how can i do that?

pure lion
#

Apparently so

#

@earnest phoenix array

earnest phoenix
#

@earnest phoenix array
@pure lion uhh

sonic lodge
#

as the people here have said repeatedly, don't use eval

earnest phoenix
#

cuck

pale vessel
#

just use Math.random()

#

and yes,please don't ever use eval

pure lion
#
  • array.length
earnest phoenix
#

ok but

#

lilke

#

uhh

midnight blaze
#

make a json file and include a bunch of random phrases

earnest phoenix
#

i confused

midnight blaze
#

and then get it from there

pure lion
#

math.floor(math.random()*array.length)

earnest phoenix
#

mk

pure lion
#

Make it a function

earnest phoenix
#

cuck

#

what how

solemn latch
#

lol

midnight blaze
#

?

pure lion
#

Omg

#

Derku

#

U a smart boi

#

You can do this

#

I believe

#

In you

earnest phoenix
#

i never made a dunction berofe

pure lion
#

:>>>>>

lusty quest
#

make a array with your phrases. then make a random function for getting a random number for a index

pure lion
#

Yes you did

solemn latch
#

???

earnest phoenix
#

Yes you did
@pure lion when?

pure lion
#

Event listeners

earnest phoenix
#

uhh?

midnight blaze
#

I have seen you using functions with your eval command, what are you talking about derku

earnest phoenix
#

they not mine they voltrexes

solemn latch
#

lol

pure lion
#

ass inc <function name>(<params>) { bob }

solemn latch
#

???????

midnight blaze
#

you should learn basic js

pure lion
#

Please

midnight blaze
#

how in the hell you dont know how to make a simple function

earnest phoenix
#

guys i said a million times i have learned the basics but i keep forgetting them

pure lion
#

Sotp forgetting

solemn latch
#

its not our job to remember for you

pure lion
#

^

earnest phoenix
#

bruh

#

im not good at remmebering ok

solemn latch
#

take notes

#

from now on

#

everything you do

earnest phoenix
#

ok?

lusty quest
#

make comments in your code that explains what happens

midnight blaze
#

how about learning then? Freecodecamp is a good start

earnest phoenix
#

guys i said a million times i have learned the basics but i keep forgetting them

solemn latch
#

exactly

#

take notes

lusty quest
#

iirc he has some mental issues (not in a negative manor)

solemn latch
#

so you can look at them

midnight blaze
#

xD

#

just go on freecampcode(or how that was called)

#

really good for js

lusty quest
#

i know someone here has ADHD or something like this

pure lion
#

Yeah

#

Someone does

lusty quest
#

and this makes it hard to remember stuff

earnest phoenix
#

i know someone here has ADHD or something like this
@lusty quest me

midnight blaze
#

nah, you good, it takes time to learn it

pale vessel
#

lmao i just learnt from w3schools and mdn

earnest phoenix
#

mdn?

pale vessel
#

never heard of freecodecamp or something

midnight blaze
#

w3schools is too complicated for beginners xD it doesnt explain much

#

He is like really beginner

lusty quest
#

now i need to find a decent page for learning golang

midnight blaze
#

freecodecamp is great

#

!!

#

ahh

sudden geyser
#

Superbrain does go not have decent documentation on the lang

pure lion
#

What is the go syntax similar to?

earnest phoenix
midnight blaze
#

πŸ‘

lusty quest
#

yea but i hammered my brain enought with it today

earnest phoenix
#

how long does it take to get?

#

better

pure lion
#

Don't ask us

pale vessel
#

you ask that question to yourself

midnight blaze
#

u get better each day man^^ just learn

lusty quest
#

it depends on the person

earnest phoenix
#

ok what is the course called?

pale vessel
#

sounds complicated

pure lion
#

How long did it take you lot to learn js?

earnest phoenix
#

me?

#

or who

pure lion
#

In general

solemn latch
#

im still learning

#

;p

earnest phoenix
#

i havent learnt i guess

solemn latch
#

and will be till the day i die

midnight blaze
pale vessel
#

started coding in js in like Nov last year

pure lion
#

Okay when did you get "decently proficient"

midnight blaze
#

start the second one

earnest phoenix
#

start the second one
@midnight blaze ok

finite bough
#

can someone tell me how to increase the maxListeners

pure lion
#

No

#

.

solemn latch
#

.

#

i dont even know what a ticket bot is

midnight blaze
#

@solemn latch same

lusty quest
#

i knew the basics of js after about a week (got my first bot running and started adding mysql stuff)

solemn latch
#

so, its a chat room client... in a chat platform?

pale vessel
#

why not DMs

solemn latch
#

^

#

lmao

lusty quest
#

relay the chat between the DMs of 2 users

sudden geyser
#

Yes: A private channel for someone to get in contact with server moderators.

lusty quest
#

but this is again stupid

solemn latch
#

group dms?

sudden geyser
#

you need to friend request the people to add to do that

#

it's inconvenient

solemn latch
#

takes 5 seconds to do

midnight blaze
#

collect roles and dm each role with high permissions

slender thistle
#

takes God knows how much for the person to actually accept it

lusty quest
#

the relaying of DMs is possible but you should add the tag of the user infront of the Messages

solemn latch
#

or just copy a room in the discord.
and give the one person access to the room

#

then delete it afterwards

midnight blaze
#

a vector with 3 values

solemn latch
#

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

earnest phoenix
solemn latch
#

but people can do that themselves, in a few seconds

#

audit logs logs it aswell

#

πŸ€”

earnest phoenix
#

@midnight blaze imma download the solutions so i can go back later (clever me)

midnight blaze
#

xD u wont learn when u simply see the solutions

earnest phoenix
#

ik

solemn latch
#

doesnt discord log chats too πŸ€”

earnest phoenix
pure lion
#

Can someone link the best courses for:
C++
C#
C
Java

#

:d

midnight blaze
#

I would only learn one of those languages

#

C probably

pure lion
#

Why not all

#

?

#

:)

opal plank
#

cuz we aint insane

pure lion
#

I am

opal plank
#

one lang yields more than enough headaches

pure lion
#

I want to be a headache

midnight blaze
#

C best, learn it, then the other languages will be cake πŸ‘€

pure lion
#

Okay

#

Then I'll learn assembly

opal plank
#

learn haskell

pure lion
#

:D

opal plank
#

haskell or ruby

#

pain will seep thru your skin

lusty quest
#

learn GO

opal plank
#

learn Scratch

pure lion
#

Wait list what I should learn except scratch

lusty quest
#

it has simliarities to JS

opal plank
#

yeah cuz fuck indexing at 0

lusty quest
#

Golang Way more efficent than Js

opal plank
#

why not use deno if your concern is runtime?

#

deno + ts

#

nothing to whine about

pure lion
#

Wait I need to write this down

tight plinth
pure lion
#

C

tight plinth
#

nothing in the bot logs, and nithing is actually played

#

any idea why?

fallow sentinel
#

How do I get bot ping in djsV12

lusty quest
#

ws.ping

tight plinth
#

^

fallow sentinel
#

Ok

midnight blaze
#

you have dev role and do not know how to make a ping command?

pure lion
#

:d

solemn latch
#

it changed in v12

opal plank
#

@pure lion give TypeScript + deno a try if you already comfortable with js

solemn latch
#

was client.ping in v11

pure lion
#

Ts is just js but easy to debug?

#

And you have to run a compiler

opal plank
#

as the name sugests, type

pure lion
#

?

opal plank
#

lots of interfaces

pure lion
#

So it's strong typed

#

I guess

slender thistle
#

No epilepsy emotes, thank you

lusty quest
#

its just english but it does stuff

opal plank
#

oh, right, forgot bout that

#

my bad

#

Ive heard great things about Deno, though i havent made anything on it yet

#

i did try it for a couple hours though

pure lion
#

Okay but what the fuck do I make with my newfound coding knowledge

#

D:

opal plank
#

cry?

lusty quest
#

get a idea

opal plank
#

regret doing it?

pure lion
#

But what can I do with knowledge of 14 coding languages

opal plank
#

i mean its up to you what you do with it

pure lion
#

Okay sick

opal plank
#

you can do fiverr

pure lion
#

Time to drop out of school and go to Google

opal plank
#

Fiverr here i come!

#

it highly depends on what field you want to work on

lusty quest
#

write a AI that can see if someone writes enforcable stuff on discord and then add it to a bot -> Fully automated Admin Bot

opal plank
#

since im not in the area, i cant give you much advice for qualifications

midnight blaze
#

the best field: Bot dev

opal plank
#

'i work for free'

#

aka bot dev

pure lion
#

EyyYyy

fallow sentinel
#

ReferenceError: ws is not defined at Object.execute (/storage/emulated/0/Discord-TenZO-Bot/commands/ping.js:10:34) at Client.<anonymous> (/storage/emulated/0/Discord-TenZO-Bot/index.js:30:11) at Client.emit (events.js:315:20) at MessageCreateAction.handle (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14) at Object.module.exports [as MESSAGE_CREATE] (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32) at WebSocketManager.handlePacket (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:386:31) at WebSocketShard.onPacket (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:436:22) at WebSocketShard.onMessage (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:293:10) at WebSocket.onMessage (/storage/emulated/0/Discord-TenZO-Bot/node_modules/ws/lib/event-target.js:125:16) at WebSocket.emit (events.js:315:20)

Got this while using ${ws.ping}

opal plank
#

isnt ws on client?

solemn latch
#

yeah

pure lion
#

<client>.ws

lusty quest
#

client.ws.ping

pure lion
#

Oing

fallow sentinel
#

Oh

opal plank
#

big bren

midnight blaze
#

oink

pure lion
#

Pig

pale vessel
#

autocorrect OMEGALUL

pure lion
#

Oing oing

pale vessel
#

link

pure lion
#

Pink Floyd

#

Omgimsoboredrn

#

I wanna make a console app but uh

What?

lusty quest
#

make a API

opal plank
#

eeeeey libdev just complimented me

pure lion
#

Ok, what for

#

EYyY

opal plank
#

i think im doing things right

pure lion
#

What lang should I write an API in

fallow sentinel
#

ReferenceError: client is not defined at Object.execute (/storage/emulated/0/Discord-TenZO-Bot/commands/ping.js:10:34) at Client.<anonymous> (/storage/emulated/0/Discord-TenZO-Bot/index.js:30:11) at Client.emit (events.js:315:20) at MessageCreateAction.handle (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14) at Object.module.exports [as MESSAGE_CREATE] (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32) at WebSocketManager.handlePacket (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:386:31) at WebSocketShard.onPacket (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:436:22) at WebSocketShard.onMessage (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:293:10) at WebSocket.onMessage (/storage/emulated/0/Discord-TenZO-Bot/node_modules/ws/lib/event-target.js:125:16) at WebSocket.emit (events.js:315:20)

 2 module.exports = {
 3     name: 'ping',
 4     description: 'Sends Bots Ping!',
 5     execute(message, args) {
 6         const embed = new
 7         MessageEmbed()
 8             .setTitle('My Ping')
 9             .setColor(0xFFFAFA)
10             .setDescription(`My Ping Is ${clien
11         message.channel.send(embed);
12     },
13 };
14```
#

:/

lusty quest
#

brainfuck

pure lion
#

What the fuck

opal plank
#

wot

pure lion
#

@lusty quest yes

#

Now what actually

midnight blaze
#

be the first making a brainfuck discord bot

opal plank
#

why you requiring client?

solemn latch
#

what

lusty quest
#

you miss a few words @fallow sentinel

amber fractal
#

you cant just require client

opal plank
#

why require isnt ending?

pure lion
#

I don't want to make a brainfuck anything

opal plank
#

bruh

amber fractal
#

you have to pass it

opal plank
#

what even is that code

fallow sentinel
#

Copy and paste broke

opal plank
#

full snippet my man

#

lmao

lusty quest
#

@pure lion i mean the ESOlang

pure lion
#

What language is that

#

Spanish?

opal plank
#

dont use middle click

earnest phoenix
#

how do i delete a curtain message

pure lion
#

@lusty quest I know the esolang, with 6 whole characters

lusty quest
#

or did you want to use COW?

fallow sentinel
pure lion
#

Observe

lusty quest
#

your client is invalid

opal plank
#

why u requiring client?

slender thistle
#

@earnest phoenix Which library

opal plank
#

pass client onto the command

earnest phoenix
#

java

solemn latch
#

you already have a client

opal plank
#

@fallow sentinel

fallow sentinel
#

K

amber fractal
#

doesnt message.client also exist?

lusty quest
#

export the client in your mainfile and import it into your command or attach it to your events

opal plank
#

or that

amber fractal
#

I pass it personally

#

but even if you dont want to pass it

opal plank
#

i attach my client onto the message event, not sure if its done by default

amber fractal
solemn latch
#

it is

pure lion
#

Is there an API focused language?

opal plank
#

oh, even better then

#

just access it via message

pure lion
#

Api-ish?

lusty quest
#

js

opal plank
#

Isnt php for backend server?

#

js for scripts

lusty quest
#

php is dead

opal plank
#

html/css for page

midnight blaze
#

can it be that this guy dont have a handler and only uses that command without a main js file, where he uses client.login()?

pure lion
#

Wait I'm basically a full stack dev :D

#

I just gotta figure out ejs

opal plank
#

thats the general rule i hear, each lang can be good for specific things

#

PhP backend, js for scripts, html/css for webpage

fallow sentinel
#

ReferenceError: client is not defined at Object.execute (/storage/emulated/0/Discord-TenZO-Bot/commands/ping.js:10:34) at Client.<anonymous> (/storage/emulated/0/Discord-TenZO-Bot/index.js:30:11) at Client.emit (events.js:315:20) at MessageCreateAction.handle (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14) at Object.module.exports [as MESSAGE_CREATE] (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32) at WebSocketManager.handlePacket (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:386:31) at WebSocketShard.onPacket (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:436:22) at WebSocketShard.onMessage (/storage/emulated/0/Discord-TenZO-Bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:293:10) at WebSocket.onMessage (/storage/emulated/0/Discord-TenZO-Bot/node_modules/ws/lib/event-target.js:125:16) at WebSocket.emit (events.js:315:20)
Yay new error

midnight blaze
#

I use js for my back end. Express.js

solemn latch
#

nodejs was made to replace php backend, in some cases

opal plank
#

@fallow sentinel we told you, use message

pure lion
#

Okay I'm full stack :d

opal plank
#

it has client attached

pure lion
#

Jk lmO9

solemn latch
#

all of this is in the docs fresh

earnest phoenix
midnight blaze
#

@fallow sentinel this is a mess

#

xd

#

sry

fallow sentinel
#

:/

opal plank
#

@earnest phoenix vars bad

#

reeee

midnight blaze
#

you are using a script for a bot that has a hanlder

#

handler

#

you dont have that

earnest phoenix
#

@earnest phoenix vars bad
@opal plank im on codecademy

#

no

#

wait

#

freecodecamp

opal plank
#

still

#

var bad

lusty quest
#

var is only there for keeping old scripts functioning otherwise it would be deprecated

fallow sentinel
#

@midnight blaze I'm using a handler and I still dunno how to fix it

earnest phoenix
#

wat

#

that mean

opal plank
#

@fallow sentinel third time

#

message contains client

#

use that

#

dont require client

fallow sentinel
#

ok I'm dumb

#

So do what

solemn latch
#

read the docs πŸ€”

opal plank
#

you have message already being executed

solemn latch
#

it tells you how to do this

fallow sentinel
#

:/

opal plank
#

we said client is already attached onto message

#

how do you access it?

fallow sentinel
opal plank
#

sending the same screenshot wont get any better results

#

without spoonfeeding we told you whats wrong

fallow sentinel
#

And I still dunno what to do

opal plank
#

you passing message and args from your index

#

now

lusty quest
#

comment out your message.send event and add console.log(message)

opal plank
#

client is inside message

#

how to access it @fallow sentinel ?

solemn latch
lusty quest
#

then look what the result is

pure lion
#

Send me links

fallow sentinel
#

So add client to execute?

pure lion
#

I wanna be youngest full stacc

opal plank
#

no

pure lion
#

Ever

solemn latch
#

lol

opal plank
#

message already has client

#

howdo you access client from message?

pure lion
#

Author

#

Maybe

opal plank
#

shhh dice

solemn latch
#

lol

opal plank
#

trying to teach him

fallow sentinel
#

wdym

pure lion
#

lOLLolOLOL

#

Nothing

#

I'm wrong

opal plank
#

so he doesnt come back here 5 mins later asking for the same thing

pure lion
#

As usual

opal plank
#

Message is an object

fallow sentinel
#

Ok

opal plank
#

how do you access a property from an object?

fallow sentinel
#

Idk

pure lion
#

You use the pog emote

solemn latch
#

πŸ€”

opal plank
#

okay

#

learn js

#

thats all i gotta say

#

cuz if you dont know objects in an object oriented programming language you clearly been copy pasting this whole time

pure lion
#

Lol

fallow sentinel
#

It's direct copy paste from the command handler guide

opal plank
#

did you read the guide?

fallow sentinel
#

Yes

solemn latch
#

thats a really bad habit, directly copy pasting

opal plank
#

are you sure?

pure lion
#

Btw if I learn C# for apps, js for backend and HTML/CSS for front do I full stacc uWu

opal plank
#

cuz it says you should know JS BEFORE you begin

#

literally first page of the guide

lusty quest
#

i learned JS while coding bots lol.

opal plank
#

dont give bad examples

#

you shouldnt go coding something without knowing a lang first

fallow sentinel
#

yeah I kinda forget stuff, f a s t

lusty quest
#

to be fair i knew some Lua before

opal plank
#

works for some, but the general rule is: DONT

solemn latch
#

if you have a hard time remembering stuff. you should probably take notes

opal plank
#

or try them

#

dont only read

#

apply what you learn

solemn latch
opal plank
#

eeew youtube vids

#

read the docs

#

W3Schools

#

plenty of interactive examples

#

if you dont learn how to read docs you'll get into trouble really quick

fallow sentinel
#

Kinda wishing rule 7 didnt exist rn

lusty quest
#

still wont change the situation

ocean bridge
#

is there any documentation on HTML and Markdown for stuff like text color and stuff

opal plank
#

in general?

ocean bridge
#

Yeah

solemn latch
#

does markdown do text color?

opal plank
solemn latch
#

everyone talks about it like it does

#

but ive never seen any examples of it

amber fractal
#

afaik it doesnt

opal plank
ocean bridge
#

sorry i meant for the detailed description of bot on top.gg

opal plank
#

not sure if you can do code blocks to count as

lusty quest
#

the internet exist for quite some time now. and HTML/CSS is probably the most basic language you should learn. there is somewhere a documentation about it

opal plank
#

APACHE should do some colouring

#

some other stuff too

#

w3schools has HTML docs

#

markdown i dont think they do, so i sent that other link

#

if you forget some stuff, just google for cheatsheet

#

specially for markdown

earnest phoenix
#

i often use the cheatsheet from markdown-here

opal plank
#

yeah i use that aswell

ocean bridge
#

im trying to make these buttons a certain color how would i do that

earnest phoenix
#

overwrite the css for them

opal plank
#

the offset is triggering me

solemn latch
#

css

earnest phoenix
#

find the classes in inspect element and edit them in a style tag

ocean bridge
#

yeah i have no clue how to do it ill just leave it normal

pure lion
#

Constantin?

#

Nvm x)

fallow sentinel
#

@opal plank ok ow my head hurts, just finished the thing on js objects, so how exactly is that supposed to help me here

pure lion
#

Omg

#

Okay let's talk about json

opal plank
#

okay, what exactly did you learn @fallow sentinel ?

fallow sentinel
#

How to call a value from a variable

opal plank
#

did you see objects?

fallow sentinel
#

Mhm

opal plank
#

aight, here then

pure lion
#

(filename is bob.json)
{
"Bob":"Bob"
}
If you require bob.json as bob, and then do bob.bob, it will return bob

opal plank
#
let obj = {
a: 1,
b: 2,
c: 3
}```
#

how to access a from obj?

fallow sentinel
#

obj.a

opal plank
#

good

#

now

pure lion
#

Yooo the legend he did it

opal plank
#

message has client in it

#

how do you access client from message?

fallow sentinel
#

message.client

#

Oh

fallow sentinel
#

message.client.ws.ping

opal plank
#

there ya go

fallow sentinel
#

Thanks!

opal plank
#

np

fallow sentinel
#

Ur a legend in my book

opal plank
#

anytime bro ;D

#

more than happy to help those who wish to learn

pure lion
#

I wanna learn full stack

#

.

#

:)

#

;)))))

#

<:o

earnest phoenix
#

how can i make a command say something randomly like dank memer it says hay donate to use or smth? how can i do that?
@earnest phoenix figure out a pickrandom function and pass it an array

ocean bridge
#

to change these buttons to blue and get them inline

earnest phoenix
#

Hmm

#

Wait you can literally design the whole bot page

solemn latch
#

yeah

earnest phoenix
#

Wtf

#

Bna me

solemn latch
#

you want the edit buttons blue? or the tags blue?

earnest phoenix
#

For not knowing rhag

solemn latch
#

or all of them blue?

ocean bridge
#

all of them

fallow sentinel
#

Wait how do you design the bot page

solemn latch
#

pretty sure the tags classes are atag

#

you can use html

#

html has <style></style>

#

so you can use css

ocean bridge
#

its html but i have no experience in html

fallow sentinel
#

yay another language I don't know

solemn latch
#

then youll need to learn html first loaf

pure lion
#

Html is fun

#

And so it css

#

Except when it doesn't work

solemn latch
#

classes you acess with .

#

.atag {}

pure lion
#

And IDs with #

earnest phoenix
#

yay another language I don't know
@fallow sentinel that i master 25% at

pure lion
#

#id {}

earnest phoenix
#

😎

silver spear
#

eris

ocean bridge
#

Thanks guys πŸ™‚

#

this ended up working

#
  background-color: #0a2c8f;
  color: white;```
solemn latch
#

the making them level might be a bit more complex

pure lion
#

Eyyyy

ocean bridge
#

how do i get the triangle bits blue

#

ill print screen

pure lion
#

Uhh

#

Inspect element

opal plank
#

at this point i kinda feel you trying to get us to do all of it