#development

1 messages Ā· Page 1129 of 1

pale vessel
#

and then?

karmic compass
#

grab the url from that

pale vessel
#

ayyy

#

nice dude

karmic compass
#

okay okay, let me go do some of that

#

wanna f add me on discord?

#

i have them off rn bc someone botted me a few weeks back

pale vessel
#

sure

harsh moon
#

anyone have a link to the official discord.js dev log page?

karmic compass
#

if this works im going to be very happy about this

#

uh

#

let me see

midnight blaze
#
(message.author.presence.activities.map(msg => msg.name!=""))?message.author.presence.activities.map(msg => console.log(msg.name)) : console.log( 'Not playing.')

Anyone of you knows how to access your game activity?
When I console.log() message.author.presence.activites, I get an empty array.

karmic compass
pale vessel
harsh moon
#

nice šŸ™‚

karmic compass
#

thank you, i'll look for that page

pale vessel
#

@midnight blaze have you tried message.author.presence.activities[0] ? message.author.presence.activities.map(msg => msg.name) : "No activity.";?

harsh moon
midnight blaze
#

not yet

midnight blaze
#

it gives me the same result

#

I am playing a "game" now, so it should detect it

#

hmm

pale vessel
#

you're invisible

harsh moon
#

thats for giving roles to someone not creating the role

pale vessel
#

oh yeah haha

#

find the create method

harsh moon
#

thats what im saying there is none 😐

midnight blaze
#
message.author.presence.activities[0] ? message.author.presence.activities.map(msg => console.log(msg.name)): "No activity.";
#

done

#

thanks

pale vessel
harsh moon
#

thats what I did and its not working 😐

surreal notch
#

@solemn latch hey i have setuped a form and .js file from where it will fetch through api but now what to code in bot that when sumbit button pressed it send a message

harsh moon
#

yeah idk it wont create one its apparently not a function

thick gull
#

does anyone have any clue how canvas works mmLol

#

very difficult for my small brain

#

trying to make it fit this circle (ignore the random text, i'll work on that after the avatar)

#

its located at 192, 45 from top left corner,
and 108 radius

#

so im not really sure why its doing that

#
ctx.drawImage(avatar, 192, 45, 108, 108);
#

i tried multiple formats, even just trying to get it to put the avatar as normal

#

nevermind i figured it out utter genius here

hoary crown
#

Does anyone have a script for ping

#

ms

torn ravine
#

@hoary crown language?

surreal notch
#

Python vs Discord.js?

torn ravine
#

one does one thing better than the other

earnest phoenix
#

I mean, can't really help you there, we don't even know what you want to use it for

#

I'd assume a Discord bot

#

In that case.. Doesn't really matter I suppose

#

I'd say Python, but I'm biased @surreal notch

surreal notch
visual sandal
#

what am i doing wrong with the regex replacement?

input.replace(/%B%/g, client.user.username);
pale vessel
#

what's the input

visual sandal
#

A string, such as About %B% and it should return About BOT_NAME

pale vessel
#

can you show me the code?

#

e.g. how you defined it

visual sandal
#
// the function
    clean(input) { input.replace(/%B%/g, client.user.username); input.replace(/%P%/g, client.prefix); return input; }
clean(command.code.about);
// command.code.about is the following
// about: "Gives a better description of a command's usage on %B%",
pale vessel
#

i could've sworn i've seen the same username that has the same problem

visual sandal
#

wot

#

this is my first time asking about a regex issue lmao

pale vessel
#

anyway, .replace doesn't modify the original string

#

you can either reassign it or return the chained .replace

visual sandal
#

oh

pale vessel
#
clean(input) {
    return input.replace(/%B%/g, client.user.username)  
    .replace(/%P%/g, client.prefix);
}
visual sandal
#

tsym, it works

#

haha, that was a different issue

pale vessel
#

it's related

visual sandal
#

i totally forgot about that

pale vessel
#

but yeah nice

visual sandal
#

yea u right

pale vessel
#

you can use single .replace()

#

oh never mind

#

ignore me, i'm stupid

visual sandal
#

lol

#

thx anyways

pale vessel
#

ya all good

sonic lodge
#

not that it matters, but if you did something like this you could have one replace() call

const variables = {
  B: client.user.username,
  P: client.prefix,
};
  
return input.replace(/%([A-Z])%/g, function(match, letter) {
  // get the value to replace each letter from the variables object
});```
karmic compass
pale vessel
#

ya

karmic compass
#

What was that at the end

#

The last thing that faded out

#

Oh click

#

Got it

#

Uh more serious question: if I have an array from an API, and I want for each value ā€œnameā€ in the array to be added to another array which would be displayed, how would this be done? In JavaScript

#

More easier term:
API: [name: A, name: B, name: C]
My array (I want): A, B, C

pale vessel
#

use array.map()

karmic compass
#

Let me search up the documentation for that

pale vessel
#

if it's an object, you can use Object.values()

karmic compass
#

Hae*

pale vessel
#

aight

faint prism
#

Man, I had to do a big refactor because I didn't setup my database context interface's very well. Redesigned them to be more like CRUD. But it's worth it. I'm running on MongoDB instead of JSON now šŸ˜›

karmic compass
#

Use*

#

Nice

#

Hmm don’t quite understand it, but here’s a guess:
var obj = (get the api here, too lazy to type on mobile)
obj.map(name)

#

Wait

#

Nope

pale vessel
#

you can't map objects

karmic compass
#

Already wrong

pale vessel
#

but you can map an array of objects

karmic compass
#

obj[0]

#

Create a variable for that and map it

#

Then is that right..?

#

Wait I think I have something

pale vessel
#
const arr = [{ name: "foo" }, { name: "bar" }];
arr.map(x => x.name); // ["foo", "bar"]```
karmic compass
#

Ohh

#

Let’s try it out!

pale vessel
#

you need to know what you're dealing with first

#

whether it's an array or an object

#
const obj = { name: "foo", someOther: "bar" };
Object.values(obj); // ["foo", "bar"]```
#

the first example is for arrays and this one is for objects

karmic compass
#

Oh very cool

thick gull
#

oksy what is the best way to avoid this from happening?

i did this with maxWidth (canvas)

ancient falcon
#

does anyone know how to get headers from response with aiohttp in python

earnest phoenix
#

Uh more serious question: if I have an array from an API, and I want for each value ā€œnameā€ in the array to be added to another array which would be displayed, how would this be done? In JavaScript
@karmic compass use a for loop and push the varuable name to your array

karmic compass
#

I already got a response but thanks anyways

earnest phoenix
#

i cant install quick.db
@earnest phoenix Windows or Linux?

pale vessel
#

does anyone know how to get headers from response with aiohttp in python
@ancient falcon try resp.headers

earnest phoenix
#

@earnest phoenix if you're on Windows then you need to install Python, Levelup/Leveldown, Visual Studio Build Tools and a lot more dependencies

#

That's why I hate self hosting

ancient falcon
#

Yep thank you that's what it was @pale vessel

#

well apparently it's a CIMultiDictProxy which I have no idea what that is

pale vessel
ancient falcon
#

Ooooh it's that

#

I see

earnest phoenix
#

i do all good
@low shard then why are you asking

low shard
#

idk its not work

earnest phoenix
#

then

low shard
#

i fix it

earnest phoenix
#

how did you do stuff correctly

low shard
#

all good

earnest phoenix
#

also please use Google Translate

low shard
#

now its work

earnest phoenix
#

test

#

is new right?

lusty lintel
#

Hello people

#

I'm bck

haughty igloo
#

Hello

#

how can i solve it?

#

Have snekfecth module

earnest phoenix
#

Why snekfetch

#

Its outdated

haughty igloo
#

i need

#

Because

earnest phoenix
#

Use node fetch

haughty igloo
#

Does it solve the error?

earnest phoenix
#

Well

#

If you install the packages properly then yes

lusty lintel
#

Hello so I copy and paste is it my way ?

haughty igloo
#

How do I set up?@earnest phoenix

earnest phoenix
#

Uh

haughty igloo
#

Hello so I copy and paste is it my way ?
@lusty lintel me?

lusty lintel
#

No me

haughty igloo
#

Pls help

lusty lintel
#

what help?

#

What help do you need

floral creek
lusty lintel
#

No I think

earnest phoenix
#

Dont ask to ask

floral creek
#

Hm...

#

K

earnest phoenix
restive furnace
#

yes there is python ppl

lusty lintel
#

why tf always you guys are on phone

earnest phoenix
#

Cuz am learning

floral creek
#

Just now

earnest phoenix
#

Anyways

lusty lintel
#

here my code I'm idiot beginer client.on('message', message => {
if (message.content === 'f') {
message.channel.send('F');
}
});

earnest phoenix
#

@haughty igloo you know npm?

lusty lintel
#
  client.on('message', message => {
    if (message.content === 'f') {
      message.channel.send('F');
    }
  });
#

bahahahah

#
  client.on('message', message => {
    if (message.content === 'f') {
      message.channel.send('F');
    }
  });
floral creek
#

Hm

lusty lintel
#

bahahaha

floral creek
#

Do u have a command sistem on js like on py?

lusty lintel
#

I'm idiot for making bot so imma play dank memer instead of making bots

floral creek
#

@Client.command()

restive furnace
#

yes

lusty lintel
#

Do u have a command sistem on js like on py?
@floral creek I think no its diff

#

lol ok

restive furnace
#

but you need to program it youself

floral creek
#

Xdd

cinder patio
#

There's nothing wrong with the code you showed us Egar,

lusty lintel
#

NOOOO that is idiot code

floral creek
#

Hm bur

cinder patio
#

I don't think so

forest prairie
#

we all started like that

floral creek
#

If u put f bot puts f but thene bot gets the f he sended so it would be a loop

lusty lintel
#

but some ppl say

restive furnace
#

just check that if the message author is a bot

cinder patio
#

The bot sends an uppercase F, bot checks for lowercase

restive furnace
#

^ also that

thick gull
#

if you dont check if it’s a bot wouldn’t it start looping

lusty lintel
#

no I'm an idiot I copy past and i GIVE UP

restive furnace
#

no because it checks for loewercase

thick gull
#

oh okay

restive furnace
#

and the sends uppercase

thick gull
#

no I'm an idiot I copy past and i GIVE UP
@lusty lintel we all started from somewhere it’s ok

floral creek
#

I know js but not discord.js

marble juniper
#

bruh

cinder patio
#

discord.js is not a different language or something like that - it's just a library to be used with javascript

lusty lintel
#

bruh I'm making bot for my friend but the code is hard to rerember if you learn

floral creek
#

Ye

marble juniper
#

isn't it always the other way around that they know discord.js and js

#

*no js

floral creek
#

Its not a different languajes

restive furnace
#

node.js differs somewhat to original js

floral creek
#

But u need to learn it

lusty lintel
#

javascript and discord.js is same @cinder patio ?

lusty quest
#

during my training ive got some important knowledge: You dont need to know everything, you just need to know where its written

lusty lintel
#

what is javascript even

cinder patio
#

discord.js is a javascript library,
javascript is a programming language

lusty quest
#

discord.js is a libary for Javascript

lusty lintel
#

oh

floral creek
#

Yes

restive furnace
#

for node.js (javascript runtime) @lusty quest

earnest phoenix
marble juniper
lusty quest
#

why did i get now the ping?

lusty lintel
#

does error code hnadle teh error command?

restive furnace
#

why not

earnest phoenix
lusty quest
#

i dont get the connection. like the guy before wrote the same

lusty lintel
#

when i first watch yt on how to make bots I just see the codes and just write not learn

#

;-;

lusty quest
#

yt videos are bad

#

usually outdated

#

get a decent written one

#

like the discord.js-guide

thick gull
#

I only look at them when i really need something and can’t figure it out

floral creek
#

I also did it with the minecrafy commands blocks

marble juniper
#

its annoying when they are using discord.js v11

lusty lintel
#

when I first start I only see the code and write and didnt understand the codes one by one

marble juniper
#

cuz all yt tutorials do

#

nearly every single one

lusty lintel
#

so event is the thing that first start?

marble juniper
#

oof

#

this is going good

floral creek
#

But steal u can understand it no?

earnest phoenix
#

Yall new to coding, am i right?

lusty lintel
#

when I see code I feel like I cant understand and too hard

thick gull
#

events listen for something to happen, such as messages, joining a server, or ETC

lusty quest
#

its the issue of this channel here.
User want to make a bot
has 0 Knowledge in Programming
Watches 1 YT video from 4 Years ago
Downloads the attached Github repo
Follows the tutorial to start the bot
Bot wont start
User joins DBL and complains here that the bot wont start

earnest phoenix
#

Yeah

lusty lintel
#

yeah i did that

#

;-;

earnest phoenix
#

Let me just say something

#

In order to make a bot

#

You need to have knoewledge of programmming

marble juniper
#

@lusty quest yes thats the problem

lusty lintel
#

wait amin

marble juniper
#

they need to know the language itself first before doing ANYTHING

lusty lintel
#

I already did the bot and I'm not here for problems

haughty igloo
#

Helll

#

İ need help

thick gull
#

with

haughty igloo
lusty lintel
#

what was that

haughty igloo
#

But have module

thick gull
#

late rip

earnest phoenix
#

Ahem

lusty quest
#

snekfetch is deprecated

haughty igloo
#

Why?

thick gull
#

isn’t it snek-fetch

earnest phoenix
#

npm i snekfetch
But i recommend you to use
node-fetch

lusty quest
#

bcs its deprecated

thick gull
#

or yeah

earnest phoenix
#

So
npm i node-fetch

#

Also

lusty quest
#

node-fetch is the new version

restive furnace
#

make your bot from scratch ok

thick gull
#

just use nodefetch

haughty igloo
#

@lusty quest I need to do

restive furnace
#

you dont

earnest phoenix
lusty quest
#

its the issue of this channel here.
User want to make a bot
has 0 Knowledge in Programming
Watches 1 YT video from 4 Years ago
Downloads the attached Github repo
Follows the tutorial to start the bot
Bot wont start
User joins DBL and complains here that the bot wont start
called it

haughty igloo
#

Is this?

restive furnace
#

that seems copy paste bot but ok

earnest phoenix
#

"45" outdated depencies

lusty quest
#

this is the magic of a old YT video

haughty igloo
#

i download node-fench?

lusty quest
#

or Github repo with no update for the past 3 years

earnest phoenix
#

Fench

marble juniper
#

snekfetch is dead

haughty igloo
#

What should I do?@lusty quest

thick gull
#

there’s only a handle of new discordjs12 tutorials

earnest phoenix
#

I should make one tbh

lusty quest
#

write a bot from scratch and use current versions of the libarys

ancient falcon
#

imagine using tutorials I just read the docs laugh

earnest phoenix
#

Imagine using docs

thick gull
#

a tutorial will get you views cause ogm discor bagdge!1!!33

lusty lintel
#

hello I'm reading the discord.js guide beginer one

lusty quest
#

lol read github source code until you understand what happens

earnest phoenix
#

I use my ide to read that dource code

lusty lintel
#

so I need to rermber the start code and things ?

#

nto copy paste?

ancient falcon
#

lol read github source code until you understand what happens
that's what I did with discord.py and serenity cuz those docs are not readable

restive furnace
#

imagine using tutorials I just read the docs :laugh:
imagine using docs while you can install ide what looks the "docs" from the source

thick gull
#

you don’t need to remember a lot of things

golden condor
#

Omg this guy is still here

lusty lintel
#

šŸ™‚

thick gull
#

but ya dont copy paste

#

just read docs if you need anything specific

lusty lintel
#

I need to rermber teh start thing liek codes and client and things

lusty quest
#

copy / paste is the worst thing you can do. Different people have different Coding styles

#

in the end you get a Frankenstein bot

haughty igloo
#

@lusty quest bro

marble juniper
#

they are not willing to learn so they will copy paste ofc

lusty quest
#

that maybe work

haughty igloo
#

İ install node-fetch

#

But not work

#

It still writes

lusty quest
#

bcs the syntax changes

earnest phoenix
#

I am done

lusty quest
#

and you need to require node-fetch

lusty lintel
#

what is nodefetch I onyl intall node and vs

marble juniper
#

for the love of god save us

haughty igloo
#

What do u mean?@lusty quest

lusty quest
#

not snekfetch

haughty igloo
#

Where should I write?

ancient falcon
#

we should tell the beginners to use python cause nodejs is a mess

haughty igloo
#

Where does Snekfect write?

marble juniper
#

maybe

#

ig

lusty quest
#

will not solve the issue just shift it

golden condor
#

Should this guy be coding

haughty igloo
#

How do I change it?

#

Bro pls help

lusty quest
#

@haughty igloo i suggest learning Javascript first. bcs this are basics

marble juniper
#

but nodejs is not even an issue its just thier knowledge of coding in general which is none @ancient falcon

earnest phoenix
ancient falcon
#

to be fair yeah

earnest phoenix
#

There

#

Just a bit of google

ancient falcon
#

python's largest discord lib is async which would instantly burn their brain

lusty quest
#

the thing is they have no patience and want to have a bot , now and working

marble juniper
#

thier brains are synchronous

ancient falcon
#

synchronous brain laugh

marble juniper
#

@lusty quest as if it came out of your hand like magic

lusty lintel
#

omg I wan tto learn now cuz I think this is fun

marble juniper
#

ahhh I wish It was that easy

sullen harness
#

Anyone here switched from discord.js to Discord.js light?

marble juniper
#

@sullen harness yes

earnest phoenix
#

if (!bot.work) { brain.sendAction("copy-paste"); }

coarse hearth
earnest phoenix
#

@sullen harness me

lusty quest
#

omg I wan tto learn now cuz I think this is fun
until you get into wired stuff

coarse hearth
#

can anyone check my code?

lusty lintel
#

wait a min what is discord.js light can someone explain?

sullen harness
#

How much has to be rewritten?

marble juniper
#

@lusty quest untill he learns about js fuck

earnest phoenix
#

Just a bit

lusty quest
#

its a version of Discord.js that removes all caching

lusty lintel
#

what

marble juniper
#

not really

#

not all

#

but most

earnest phoenix
#

I only rewrite the msg function

sullen harness
#

I know but it says it's "largely compatible"

ancient falcon
#

its a version of Discord.js that removes all caching
OMG THANK YOU GOD FOR THIS

lusty quest
#

you can have 0 Caching with D.js-light

sullen harness
#

So I was wondering how much that is.

lusty lintel
#

bruh

marble juniper
#

@lusty quest can

lusty lintel
#

how to dwonloa discord.js

marble juniper
#

also it has some quality of life features

lusty lintel
#

I mean light one

ancient falcon
#

bruv

#

learn programming

lusty quest
#

its probably a side effect of the changes

#

i like that you can force clear the cache

marble juniper
#

like message.reply not pinging the user @ancient falcon thats one quality of life change in the light version

lusty lintel
#

do this npm install discord.js light

#

?

pale vessel
#

discord.js-light

lusty lintel
#

oh

earnest phoenix
#

@coarse hearth alright here

ancient falcon
#

npm install discord.js-light

coarse hearth
#

@earnest phoenix ?

haughty igloo
#

PLEASE HELP

#

Why u not help to me

earnest phoenix
#

So i read your code

lusty quest
#

its a little bit harder to use than regular d.js

lusty lintel
#

can i install node fetch too?

coarse hearth
#

mh

#

mhm

earnest phoenix
#

Yoy havw to exports the function

#

Do that by using module.exports

marble juniper
#

@haughty igloo BECAUSE YOU DON'T EVEN UNDERSTAND JAVASCRIPT

#

AAAAAAAAAA

#

ALL JUST COPY PASTING

lusty lintel
#

what

#

LOL

#

liek me

#

;-;

haughty igloo
#

@marble juniper bro i know but I don't know where to fix

marble juniper
#

You fix it with your brain

ancient falcon
#

in your head

marble juniper
#

smh

earnest phoenix
#

ITS SO FUCKING SIMPLE

marble juniper
#

HOW

haughty igloo
#

.'(

marble juniper
#

REEEEEE

earnest phoenix
#

YOU DIDNT KNOW HOW TO PROGRAM

lusty lintel
#

Its simple than me

earnest phoenix
#

DONT FUCKING LIE

marble juniper
#

im disgusted

lusty lintel
#

how to program is how to program

earnest phoenix
#

YOURE JUST DOING THAT TO GET OUR HRLP

#

JUST FUCKING LEARN JS

haughty igloo
#

i install node-sneck

lusty lintel
earnest phoenix
#

Ok, back to the present

#

So

haughty igloo
#

But still gives the same error

marble juniper
earnest phoenix
#

Where was i?

marble juniper
#

fuck it

lusty lintel
#

bahahah

marble juniper
#

click that link

earnest phoenix
#

hello

#

Oh i see

#

@coarse hearth So, export a class

lusty lintel
earnest phoenix
#

And it should work

marble juniper
#

has an internet explainer too made for those who might be dumb enough to not understand

coarse hearth
#

@earnest phoenix

thick gull
#

yes use discordjs-guide

haughty igloo
#

You are not helping at all

coarse hearth
#

i already exported :x

thick gull
#

it is helpful

marble juniper
#

I am

coarse hearth
#

and it is fixed

earnest phoenix
#

hahahahhaha

#

Give full code then

coarse hearth
#

but

thick gull
#

read the messages in it

earnest phoenix
#

lol

coarse hearth
#

its not working still

#

the code

marble juniper
lusty lintel
#

link are you dev

earnest phoenix
#

@marble juniper i clicked ldol

ancient falcon
#

I need to save that link

thick gull
#

wasn’t for tou

marble juniper
#

We can't help you if you don't understand

thick gull
#

but ok

ancient falcon
#

most useful thing I've ever seen

earnest phoenix
haughty igloo
#

@marble juniper fuck off

thick gull
#

just add a command for it

golden condor
#

He's more of a Dev than you are @lusty lintel

earnest phoenix
#

zztenglish

lusty lintel
#

I can understand btu I'm not trying to wtf

marble juniper
#

We can't help you if you don't understand @haughty igloo

haughty igloo
#

I already downloaded

thick gull
#

a bunch of bots have it

earnest phoenix
#

where is my bot

lusty lintel
#

He's more of a Dev than you are @lusty lintel
@golden condor ik ofc lol

haughty igloo
#

But he doesn't know what's next

thick gull
#

you have to change the fucking code to require it @haughty igloo

marble juniper
#

AAAAAAAA

earnest phoenix
golden condor
marble juniper
#

NOW THAT PERSON IS DOWNLOADING ANOTHER YOUTUBE TUTORIAL CODE

haughty igloo
#

@thick gull I don't know where the Require is

ancient falcon
#

@haughty igloo do you even know what you're doing, can you tell us your issue so we can reproduce it?

haughty igloo
#

Asking him

thick gull
marble juniper
earnest phoenix
marble juniper
#

fucking

#

click

#

it

haughty igloo
#

No

marble juniper
#

do you understaaaaaaaaand

#

DO IT

earnest phoenix
#

@marble juniper i clicked

lusty lintel
#

callum helllo

thick gull
lusty lintel
#

I sleep uyeterday

earnest phoenix
#

and B R U H

golden condor
#

The development channel should require an iq score of at least 10 before you enter so we can get rid of all these people

marble juniper
#

@golden condor nah 120

earnest phoenix
#

ban this?

golden condor
#

No at least 10

lusty lintel
#

btu iq score 0s houdl get help you know

thick gull
#

okay but

marble juniper
#

120 is over the average iq

thick gull
#

if your willing to leadn

sullen harness
#

You could also just not "feed" the trolls.

thick gull
#

learn

lusty lintel
#

you know what I'm goign to websaite bye

golden condor
#

These are the people who lower the average iq score

ancient falcon
#

There should be a button "do you have a clue what you're doing ffs"

marble juniper
#

fucking mute that person

#

must be a troll

earnest phoenix
#

Please do

haughty igloo
#

Where is module.js

marble juniper
#

you are physically not able to have such an iq

thick gull
marble juniper
#

@haughty igloo You

golden condor
#

A fucking carrot would have more ability to code than these people

marble juniper
#

will go to that link

haughty igloo
#

i blocked u

marble juniper
#

and if you don't

#

then fuck off

thick gull
#

gonna have a mental breakdown

ancient falcon
#

Where is module.js
what are you even talking about

marble juniper
#

we can't help you @haughty igloo

#

sorry

#

now go bye

golden condor
#

It's too early in the morning for this

sullen harness
#

Bro, just ignore them, lol.

thick gull
#

what are you even talking about
took a outdated bot > why no work

haughty igloo
marble juniper
#

watch your youtube tutorials and leave us fucking alone

#

CAN SOMEONE TELL THEM TO FUCK OFF

#

im blocked

ancient falcon
#

are you seriously making this on glitch

haughty igloo
#

Yes

earnest phoenix
#

@marble juniper you relaz

thick gull
#

on phone

earnest phoenix
#

Relax everyone.....

haughty igloo
#

I don't know where the require

marble juniper
#

I WANT TO FUCKING CRY

ancient falcon
#

"Cannot find module snekfetch"
means that it was not able to fucking find "snekfetch"

lusty lintel
#

Hello i just learn it about what is config fiel nwo i undesrtand

earnest phoenix
#

Cab someone FUCKING BAN MADARA

haughty igloo
#

@ancient falcon bro i install but he say install node-sneckfetch

golden condor
#

I am just gonna go back to bed this is gonna bring my iq level down to that of these people and I will lose my brain cells

haughty igloo
#

And i install

earnest phoenix
#

@haughty igloo please stop, you shouldnt be making a bot if you cant find where you require a module.
Please use google

#

Just stop

midnight blaze
#

dev people are very passionated plead

earnest phoenix
#

MY FUCKING BRAIN IS FUCKING DYING

golden condor
#

@sinful belfry qt pls help us

thick gull
#

snek-fetch isn't a thing anymore

#

irs gone

#

fone

#

gone

#

Poof

earnest phoenix
thick gull
#

Non existant

ancient falcon
#

@haughty igloo SNEKFETCH IS DEPRECATED

haughty igloo
#

Wdy?m

earnest phoenix
#

@earnest phoenix move on @earnest phoenix move on

#

2 brain cells

thick gull
#

use nodefetch instead

haughty igloo
#

@ancient falcon i know

midnight blaze
#

Wdy?m

haughty igloo
#

İ install node-fetch

midnight blaze
#

you mean wdym?

earnest phoenix
#

Aleight aleight

#

Ignore Madara and move on

midnight blaze
#

xD

earnest phoenix
#

@midnight blaze hey bro

#

Fuck madara, move on

#

whatsup

midnight blaze
#

Hi! sa

#

nothing

haughty igloo
#

As

marble juniper
#

PLEASE SOMEONE GET A FUCKING MODERATOR

midnight blaze
#

hanging around

#

yeah, ok

thick gull
#

at Moderator

earnest phoenix
#

@haughty igloo reis o türk değil

midnight blaze
#

btw, ATa this is dev

golden condor
#

I pinged star

earnest phoenix
#

türkçe konuşmaya çalışıyor

marble juniper
#

@coral trellis please do something

midnight blaze
#

if you want to talk go in like Offtopic

earnest phoenix
#

@earnest phoenix thx

haughty igloo
#

@earnest phoenix kanka hatayı nasıl cozcem

midnight blaze
#

O_O

haughty igloo
#

node-fetch indirdik

#

Ama

thick gull
midnight blaze
#

you guys are going to be kicked

haughty igloo
#

Require nerde bulamiyorim

marble juniper
haughty igloo
#

Oh k

marble juniper
#

when will we ever get normal people

#

with common sense

earnest phoenix
#

@haughty igloo kardeşim #memes-and-media burda türkçe olmaz... bot yapmadan önce javascript öğren.

Just wanted to explain to go there

marble juniper
#

and an actual brain

thick gull
#

neverā„¢ļø

pale vessel
marble juniper
#

and logic brain steps

#

yes ik

#

but still

#

yes

earnest phoenix
#

Can we move on :/

marble juniper
#

yes

thick gull
#

it is the tonk man

golden condor
#

Ok Tonkku is hear thank goodness

marble juniper
#

thank god

#

praise the lord

bitter sundial
#

@marble juniper @thick gull @golden condor Please don't respond to development questions with lmgtfy links
Either help and provide useful resources or just leave the channel

golden condor
#

We are trying to

floral creek
#

hm

marble juniper
#

ok

haughty igloo
#

@earnest phoenix bro i know but i have 170 commands I have to check them all to find snekfect

#

?

floral creek
#

whene is my bot gonna get accepted?

earnest phoenix
#

Not our concern

#

@floral creek 2-4 weeks i believe

golden condor
#

But they aren't actually doing anything to allow us to help them

haughty igloo
#

Yed

delicate zephyr
#

@floral creek average review time is 3+ weeks currently.

haughty igloo
#

Yes

floral creek
#

hm

lusty lintel
floral creek
#

why that much time?

thick gull
#

no the - means removed

#

And + means added

marble juniper
#

@golden condor they don't wanna click any links they don't wanna listen and uh do I have to list the rest

earnest phoenix
#

@floral creek Too many people applying + pandemic

lusty lintel
#

I know

thick gull
#

meaning they changed the code from eaflier

marble juniper
#

its impossible to help them

midnight blaze
#

oh gosh, we need like two kinds of development channel, one for super beginners and one for avarage devs

thick gull
#

trying to show you what was updsted

marble juniper
#

if they don't want to accept it

earnest phoenix
#

@midnight blaze true

ancient falcon
#

they tried to help but just gave up afterwards ig

floral creek
#

@earnest phoenix why is the pandemic afection this?

earnest phoenix
#

Because humans review bots

#

Fucking starboard it

floral creek
#

and th epandemic?

#

u said about that

earnest phoenix
#

@floral creek ok lidten

#

Humans can get corona

#

Health issues

floral creek
#

ok

earnest phoenix
#

People are more busy

thick gull
#

more people are submitting bots

bitter sundial
#

@marble juniper @thick gull @golden condor I recommend you read the development etiquette in the pins

floral creek
#

k

earnest phoenix
#

I can also recommend to not shit on beginners

thick gull
#

ok PeepoSalute

earnest phoenix
#

:chaoschaos:

lusty lintel
#

I understand what is the things

#

now

golden condor
#

We are asking them for more info but they aren't offering more info for anyone to work with

earnest phoenix
#

Can we move on :/?

floral creek
#

gonna do the hack thing in my bot pepowot

lusty lintel
#

can i boost this server?

earnest phoenix
#

Your choice

thick gull
#

if you want

lusty lintel
#

what sperks giving?

earnest phoenix
#

@floral creek
The reason why it took so long to verify bots is

  1. Human take time to do stuff
  2. Human needs break
    The reason why pandemic affect verify time is
  3. Pandemic = stay home = more peep bored = more peep want to make bot, therefore quadruple the queue size
sullen harness
#

New color and the ability to set a nickname for yourself.

bitter sundial
#

@golden condor that's not an excuse to act like a dick about it

lusty lintel
#

ooooooo good

earnest phoenix
#

I gonna move to off topic now, YEET

golden condor
#

Same

lusty lintel
#

but someone gift nitro for boost

marble juniper
#

Im outta here

serene echo
#

Can someone help me with this one bot command I am creating? I'm using visual studio code.

floral creek
#

@floral creek
The reason why it took so long to verify bots is

  1. Human take time to do stuff
  2. Human needs break
    The reason why pandemic affect verify time is
  3. Pandemic = stay home = more peep bored = more peep want to make bot, therefore quadruple the queue size
    @earnest phoenix k but thats not enaugh
#

just get more people

ancient falcon
#

@serene echo ask your question

thick gull
lusty lintel
#

so this if(message.content === ${prefix}server)

message.cannel saned

#

aaaaaaaa its hrad to remeber

ancient falcon
#

indentation please

earnest phoenix
#

Please understand that

  1. Theres trail period for moderators
  2. Trail mod cant test bot
  3. DBL is currently not accepting more people
#

Therefore, Be patient.

floral creek
#

I have a question for py

ancient falcon
#

don't ask to ask just ask your question

floral creek
#

how do u tell that people addded a reaction?

ancient falcon
#

what lib are you using?

#

or websocket?

earnest phoenix
#

Listen for an event when someone react on message

serene echo
#

@ancient falcon
So where it says "Location:" I am trying to make the command author be able to input text in that field in the action message. I can send you the coding I have so far if you would like.

floral creek
#

code:

def to_emoji(c):
    base = 0x1f1e6
    return chr(base + c)

class Polls(commands.Cog):

    def __init__(self, bot):
        self.bot = bot

    @commands.command()
    @commands.cooldown(1, 15, commands.BucketType.guild)
    @commands.has_permissions(manage_messages=True)
    async def poll(self, ctx, *, question):

        messages = [ctx.message]
        answers = []

        def check(m):
            return m.author == ctx.author and m.channel == ctx.channel and len(m.content) <= 100

        for i in range(20):
            messages.append(await ctx.send(f'Di la opción de encuesta o {ctx.prefix}cancelar para publicar encuesta.'))

            try:
                entry = await self.bot.wait_for('message', check=check, timeout=20.0)
            except asyncio.TimeoutError:
                break

            messages.append(entry)

            if entry.clean_content.startswith(f'{ctx.prefix}cancelar'):
                break

            answers.append((to_emoji(i), entry.clean_content))

        try:
            await ctx.channel.delete_messages(messages)
        except:
            pass 

        answer = '\n'.join(f'{keycap}: {content}' for keycap, content in answers)
        actual_poll = await ctx.send(f'{ctx.author.mention} pregunta: {question}\n\n{answer}')
        for emoji, _ in answers:
            await actual_poll.add_reaction(emoji)

    @poll.error
    async def poll_error(self, ctx, error):
        if isinstance(error, commands.CommandNotFound):
            return
ancient falcon
#

Can you even do that thonk

#

I don't think you can do that

floral creek
#

what?

ancient falcon
#

talking to @serene echo

earnest phoenix
thick gull
#

not a spoonfeed its his code

floral creek
#

so like

serene echo
#

Look I'll show you.

thick gull
#

Unless he was fed it

serene echo
ancient falcon
#

I really don't think you can do that

serene echo
#

The command message is -panics1

lusty lintel
#

now learning command arguemnt

haughty igloo
#

Why u not help me?

earnest phoenix
#

Because you dont know what JS is

#

Simple

haughty igloo
#

Bro

#

@earnest phoenix You don't understand what I mean

ancient falcon
#

let me check discord documentation to see if you can do that @serene echo

thick gull
#

message.channel??

serene echo
#
if (message.content === "-panics1") {
        message.delete().catch();
        let embedContent = message.content.substring(0);
        let embed = new Discord.MessageEmbed();
        embed.setAuthor(message.author.tag, message.author.displayAvatarURL());
        embed.setColor('#DF2929');
        embed.setTitle(':PSPanic: __**SERVER 1 | PANIC BUTTON RECEIVED :PSPanic:**__');
        embed.setDescription(`**Unit:** ${message.author}\n**Location:** ${embedContent}`);
        embed.setThumbnail('https://cdn.discordapp.com/attachments/563491786836672512/741560209713135676/icon_1547170673.png');
        embed.setFooter(`ID: ${message.author.id}`, 'https://cdn.discordapp.com/attachments/563491786836672512/741562636092833852/icon_3687304769.png');
        embed.setTimestamp();
        message.channel.send('**:PSCOMSBadge: <@&695546297293471745> | :PSHPBadge: :PSSOBadge: :PSPDBadge: <@&695546289550655601>**', embed);
    }
#

That's what I got...

floral creek
#

js is less complicated than that

haughty igloo
#

i download node-fetch

golden condor
#

omg

ancient falcon
#

else if what?

thick gull
#

you have to change it in the files too

earnest phoenix
#

@golden condor calm down

haughty igloo
#

What should I do now?

earnest phoenix
#

Calm down

thick gull
#

not just modules

golden condor
#

You need to install snekfetch

thick gull
#

in the command files

earnest phoenix
#

Let me clear thing.

golden condor
#

snekfetch

floral creek
#

else if (message.content === "-panics1")

golden condor
#

install snekfetch

thick gull
#

snekfetch is deprecated

haughty igloo
#

@thick gull How can I find it easily?

golden condor
#

That is the missing module

floral creek
#

k look

thick gull
#

i don't know

floral creek
#

colors arrent #fff or colour

golden condor
#

It still works iirc

earnest phoenix
#

lol

thick gull
#

i don't know your own code

floral creek
#

they are tthis

#

0xffbb00

thick gull
#

No?

floral creek
#

for exapmple

thick gull
#

you can use hex

floral creek
#

think on

serene echo
floral creek
#

no

thick gull
#

.setColor("#") works

floral creek
#

hmm

thick gull
#

same with color names

haughty igloo
#

@golden condor I downloaded snekfetch many times but it didn't

thick gull
#

like RED

floral creek
#

k not for me

golden condor
#

Then try request instead

haughty igloo
#

Wdym

golden condor
#

Use request or axios instead of snekfetch

haughty igloo
#

i download node-fetch

#

but i not know where require('snekfect')

golden condor
#

That will be hard to find

thick gull
#

deep breathes

earnest phoenix
#

how do i make a field in an embed object inline

restive furnace
#

please learn js and how node.js works before copy pasting making a bot, MadƔra.

earnest phoenix
#

^

#

^

golden condor
#

May I suggest you might follow a guide or a YouTube tutorial

earnest phoenix
#

how do i make a field in an embed object inline
inline: true does nothing and doesn't throw an error

thick gull
#

Are you viewing it on mobile?

earnest phoenix
#

nope

#

me on pc

#

i tried this:

thick gull
#

Is rhe bot sending anything

earnest phoenix
#

yep

restive furnace
#
{ name: "hello", value: "this is inline field 1st", inline: true }```
earnest phoenix
#

i tried that

restive furnace
#

and the other fields needs to be inline too

thick gull
#

Is it a .addFields()

#

you need the s

earnest phoenix
#

no it is an embed object

thick gull
#

oh

earnest phoenix
#

not MessageEMbed contructor

thick gull
#

i don’t know about objects tbh gonna go back to my hole

restive furnace
#

{ embed: { fields: [/fields here/] } }

#

thats example

ancient falcon
#

oh nvm this is body

#

so you have to have a json form

#

if you're using json

earnest phoenix
#
{
  name : `Pokedex info for ${args[1]}`,
  value : pokemon.type, //yep some-random-api.ml
  inline: true
}
thick gull
#

haha wow same api

earnest phoenix
#

don't worry about the pokemon.type part

lusty lintel
#

aaaaaaaaaaa its hard to understand the arguements

earnest phoenix
#

arguements???

thick gull
#

@lusty lintel it’s okay you got it

golden condor
#

That should work if you use .addFields([
{
}
])

thick gull
#

he’s trying to learn

earnest phoenix
#

That should work if you use .addFields()
i am using an embed object

golden condor
#

o

#

Show the object

#

In full

earnest phoenix
pale vessel
#

"full"

golden condor
#

Can you send the code

earnest phoenix
#
embed: {
                                    title: `Pokedex info for ${pokemon.name}`,
                                    fields:[{
                                        name: "Types",
                                        value: pokemon.type
                                    },{
                                        name : "Species",
                                        value: pokemon.species,
                                        inline: true
},{
name : "Abilities",
value: pokemon.abilities
},{
name : "Height",
value: pokemon.height,
inline: true
}]
}
pale vessel
#

also, aren't some of them arrays?

earnest phoenix
#

that's why i took a screenshot

pale vessel
#

like species and abilities

golden condor
#

That should work, what is your issue

pale vessel
#

never used sra's pokedex though so idk for sure

thick gull
#

A lot of them are arrays

pale vessel
#

so join them

earnest phoenix
#

That should work, what is your issue
that it isn't showing inline

pale vessel
#

oh

lusty lintel
#

make file called commands?

#

I mean folder

#

what that do

#

fix error?

ancient falcon
#

folder called commands?

earnest phoenix
pale vessel
#

inline only works when there's at least 2 inline fields next to each other

earnest phoenix
#

???

thick gull
#

make file called commands?
@lusty lintel it is a command handler

#

you need code but it will read all the files inside the folder

ancient falcon
#

inline only works when there's at least 2 inline fields next to each other
how could it work otherwise

earnest phoenix
#

me put my 1996 lines of code in one file called index.js

pale vessel
thick gull
#

and instead of a long if () {} if () {}

#

it is multiple files

earnest phoenix
#

or

#

use switches

lusty lintel
golden condor
#

No you should still use a cmd handler

earnest phoenix
#

yep

ancient falcon
#

you might want to create an object for this

earnest phoenix
#

and when someone runs smth just get the code from the other file

#

the main file should just check for stuff

#

unlike me

#

who puts everything in index.js

pale vessel
#

if you want field a and field b to be inline, make both field inline, not just field a or just field b

thick gull
#

I need to make file called f agian or do the command in that ping file only?
@lusty lintel the folder called commands has ping.js inside of it

lusty lintel
#

and make new file again?

ancient falcon
#

unlike me who puts everything in index.js
can relate

earnest phoenix
thick gull
#

and make new file again?
@lusty lintel ??

earnest phoenix
#

need to wait ten years for another captcha so i can get backt o coding

lusty lintel
#

make new file cllaed soemhtign that my command do?

thick gull
#

each command is a separate file

#

inside the commands folder

ancient falcon
thick gull
#

your code isn’t a giant single file then

lusty lintel
thick gull
#

Yes

lusty lintel
#

oh ok

ancient falcon
#

that's not a command

#

that's an event

thick gull
#

yeah

lusty lintel
#

oh

thick gull
#

if it is a command yes

ancient falcon
#

it's not

thick gull
#

ok

#

ik

ancient falcon
#

it's a message listener

lusty lintel
#

comand do liek prefix and things?

thick gull
#

yeah

lusty lintel
#

oh okay

ancient falcon
#

it gets called when someone sends a message no matter what

thick gull
#

yes

earnest phoenix
#

but i don't want three fields in one line i want two in one line then two in another line

thick gull
#

Make them in that order

#

In the code

pale vessel
#

then make only two inline fields then lmao

earnest phoenix
#

so i make the third one not inline?

thick gull
#

Type, abilities then not inline

#

rearrange

pale vessel
#

yeah

thick gull
#

or add blank fields

pale vessel
#

blank fields look bad on mobile

dusky lagoon
#

who wants a free member info code??

pale vessel
#

no

ancient falcon
#

until it works for you

thick gull
#

blank fields look bad on mobile
true

pale vessel
#

why are you spoonfeeding

thick gull
#

nobody asked and he still spoonfed us

pale vessel
#

for no reason too

dusky lagoon
#

i was just being nice -_-

thick gull
#

also im pretty sure i saw this same code before Kek

ancient falcon
#

spoonfeeding isn't nice

lusty lintel
dusky lagoon
#

tf do you mean send link then @thick gull

earnest phoenix
thick gull
#

mate im on my phone at 4:30 AM

earnest phoenix
#

wait i can just add blank field

dusky lagoon
#

then go to sleep

pale vessel
#

why?

ancient falcon
#

it's really not helping when you spoonfeed all you're doing is preventing beginners from improving

pale vessel
#

if you want two inline fields, remove the inline on third one

ancient falcon
#

@thick gull 13 hours in the past laugh

pale vessel
#

simple as that

earnest phoenix
#

no

thick gull
#

@thick gull 13 hours in the past :laugh:
@ancient falcon dead_from_laughing

dusky lagoon
#

yall fucking stupid

pale vessel
#

no u

earnest phoenix
#

i want the first two to be on one line, then the next two to be on the next line

thick gull
#

spoon feeding isn’t nice either

ancient falcon
#

^

earnest phoenix
#

so is swearing

thick gull
#

you just teach people to copy paste

earnest phoenix
#

^

thick gull
#

instead of actually learn

ancient falcon
#

^

lusty lintel
dusky lagoon
#

Dude i made it myself

thick gull
#

okay

robust arrow
#

someone awake at 4am spitting out some facts

pale vessel
#

use { name: "\u200b", value: "\u200b" }, blank field yeah

thick gull
#

so then it was probably a similar one i saw

earnest phoenix
#

Guys let me handle this

thick gull
#

im sorry about my monkey brain

dusky lagoon
#

hi stop talking abput yourself

earnest phoenix
#

@dusky lagoon alright ok

#

Et clear thing up

#

So uh

pale vessel
#

but it won't look nice on mobile but if you don't mind then it's fine

dusky lagoon
#

yall toxic af im trying to help to send one of my codes for fun and you guys think its the end of the world

thick gull
earnest phoenix
#

Poki

lusty lintel
#

can someone answer my question?

earnest phoenix
#

Am i not trying to be mean

dusky lagoon
#

whats the question @lusty lintel

earnest phoenix
#

Just listen, 0lease.

thick gull
#

@lusty lintel what is it? Ask again please

lusty lintel
dusky lagoon
#

yeah??

thick gull
#

you don’t need to call it that

lusty lintel
#

oh ok

thick gull
#

you can call it bot.js but some people call it index.js

#

whatever you want

dusky lagoon
#

you can call it server.js but index is idk more simpeler because alot of people use it

thick gull
#

shouldn’t be a problem

robust arrow
#

some call it main.js

earnest phoenix
#

Poki, instead of giving the code, you should tell them how to make the code, its better, and people will learn ^^

#

yep

#

and a member count is easy AF

thick gull
#

pasting code for others to copy isn’t nice,
Beginners learn to copypaste rather than learn.
and you posted without anyone asking Kek

dusky lagoon
#

@earnest phoenix thanks i know but im being nice its just stupid that people like borboss dont see that i was trying to be nice and totally shit me off for no reason he also could have just said the same think like you and it all could have been ok

earnest phoenix
#

I understand you are trying to be nice and all ^^

lusty lintel
dusky lagoon
#

and borboss in the coding world everyone takes stuff from others -_-

thick gull
#

mmmmmmm

#

ok

earnest phoenix
#

But you have to understand, sometimes, you dont give code away ^^

dusky lagoon
#

i know but my problem is now that borboss didnt had to be so facking toxic

robust arrow
#

almost like telling first graders to use calculators

thick gull
#

what the fuck why all same
@lusty lintel read the little messages around it they explain a lot of it

lusty lintel
#

I need to take rest

#

bye

thick gull
#

okay

#

bye

dusky lagoon
#

@earnest phoenix one question i have two different message menu's one where the reactions stay when the embed message gets edit and one where everytime the embed message gets edit it resets the reactions what sounds better to you

#

@lusty lintel goodluck

earnest phoenix
#

Whats the point? To change page? If yes, reCtion stay is better

#

what value should i use in image:{} inside an embed object to change the size of the image?

haughty igloo
#

I looked at all the commands

lusty lintel
#

wai t amin

haughty igloo
#

But still fails

#

Although I fix

lusty lintel
#

@thick gull hey so the index is the thing to do the things and setup and command folder is for commands and event?

thick gull
#

command folder is for commands

#

index is for events and etc

#

you can make an event handler but you don’t need to

lusty lintel
#

index for starting and setuping data too?

thick gull
#

command handler is reccomended though

#

yes

lusty lintel
#

oh

haughty igloo
#

What do u mean? @thick gull

thick gull
#

im talking to egar

haughty igloo
#

i need help

#

i delete snekfecth

thick gull
#

i dont know how to help you

haughty igloo
#

Then i look all commands

earnest phoenix
#

How would i do this

#

Send grt request

#

To that url

#

How?

#

grt?

#

Get*

#

how would i

#

@golden condor need some hepp explaining

golden condor
#

Explaining what

#

What's going on

crystal socket
#

explain what a get request is

earnest phoenix
#

Mhm

golden condor
#

So when you load a page in your browser