#development

1 messages ยท Page 1224 of 1

ancient nova
#

I could store it in a txt file, no?

opal plank
#

if you dare say that again i'll bonk you

#

use a database

ancient nova
#

heh

#

alright

opal plank
#

at least u didnt say json

ancient nova
#

json is overrated

opal plank
#

its good for configs

ancient nova
#

yeah

opal plank
#

though im thinking about moving even that to my database

#

and not keep anything locally

#

just a model to be imported

#

so it knows if something is missing

ancient nova
#

alright

#

mostly I made stuff like errors etc get generated in a txt file

#

lol

opal plank
#

database

ancient nova
#

don't bonk me

opal plank
ancient nova
opal plank
#

take this opportunity to learn how to use database

#

my preference is postgres

ancient nova
#

I sure will

drifting wedge
#

how do i upload images?

opal plank
#

cassandra isnt too bad either

ancient nova
#

will a cloud database work?

opal plank
#

as long as its persistent, yeah

ancient nova
#

alright

opal plank
#

though you can always just open a ssh port or something on your pc

#

and then you can access your database even outside

earnest phoenix
#

@pale vessel help

#

@pale vessel help

ancient nova
#

that's some high lvl shit I'd rather not attempt lol, I'll just stick to the clould database for now since they're pretty easy to manage

opal plank
#

its rather easy

#

stuff like mongo is more smiple

ancient nova
#

yeah

earnest phoenix
#

how long do you think this issue will resolve:

This application has been enlarged by suspicious means. That's why we are currently unable to accept a verification request. Please try again after a few weeks after seeing normal, ad-free growth.

opal plank
#

it says right in there

dense dune
#

a few weeks

opal plank
#

Please try again after a few week

earnest phoenix
#

:(

#

k

opal plank
#

being support is so easy, we just quote half of the error that people dont read

pale vessel
#

help commands:

ping

ancient nova
#

I have problem mantaining my bot

#

it has too many commands

earnest phoenix
#

I read it but y'know I wanted to read something better

opal plank
#

we arent discord staff, we can only re-phrase it or read it to you again

#

not sure what you were expecting

ancient nova
#

moderation, maybe auto-moderation but not really, utils, entertainmemt, manipulation, economy, music, config commamds in total I have about 250 commands

opal plank
#

how is that a bad thing?

#

as long as you have everything organized, i dont see an issue

ancient nova
#

I'm not saying it's a bad thing at all, I'm just saying that sometimes it causes a really bad ping

opal plank
#

it doesnt affect ping

#

unless you made a giant ass index mess

#

any ping is either: bad code or bad specs

ancient nova
#

yeah..... about that.....

opal plank
#

pls ...

#

dont tell me you have 250 commands on your index

ancient nova
#

... I'm sorry

opal plank
ancient nova
opal plank
#

go fix

#

rn

ancient nova
#

that'll take ages

opal plank
#

doesnt matter

#

do it

#

rn

#

i dont wanna see questions unrelated to that till you finish

ancient nova
#

I wanted to do it even before it got to 100 commands but I was too lazy lol

opal plank
#

go fix

ancient nova
#

I know I gotta do it someday

opal plank
#

not someday

ancient nova
#

it can't stay like that

opal plank
#

now

#

go

ancient nova
#

can't now

opal plank
#

you can

ancient nova
opal plank
#

go

#

i sent you the link

#

make one, see how its done

#

once you get it, move the rest

ancient nova
#

alright Imma start cleaning the indexjs up tommorow cause it's a middle of the night

opal plank
#

you better be fixing it tomorrow

ancient nova
#

well I'll do start

opal plank
ancient nova
opal plank
#

good, now go get some rest and go work on it tomorrow

#

remember, im watching

ancient nova
#

alright, have a good night, lol

opal plank
ancient nova
#

I hate having un organized code to be honest but for some stupid reason I let that one thing slide

#

for really long

opal plank
#

i need to see if i can find mine, one sec

ancient nova
#

alrighty

drifting wedge
#

how do i send an image

pale vessel
#

drag it to the discord app

#

or copy and paste it

ancient nova
#

wow

opal plank
#

at the very first few days i used to be An idiot who didnt know better stubborn like that too

ancient nova
#

that's really

#

cool

#

I love it

opal plank
#

you gonna love my startup then

ancient nova
#

show

#

me

opal plank
#

i dont have the terminal interface handy on the main bot

#

cuz nodemon

#

no comments? me saddo

charred geyser
#

cool

#

i have one too

#

mine is smaller

drifting wedge
#

how tf do i add an attachment to a message:

#

or just sned the attachment

charred geyser
#

uhhh

misty sigil
#

have you tried reading the docs

charred geyser
#

lol

#

yea

#

oh wait you are the py guy

#

i can't help you sorry

#

you should read the docs

opal plank
#

'youre the py guy'

charred geyser
#

yea

#

lol

slender thistle
#

Yes Erwin

opal plank
#

what a nice way to remember shiv lol

charred geyser
#

the py guy

opal plank
#

shiv is just the py guy

slender thistle
#

No, not me

ancient nova
#

@opal plank sorry I kinda almost went to sleep

slender thistle
#

0Exe

opal plank
#

not an amazing person altogether that knows way more than just py

ancient nova
#

but yesh it looks hella neat

opal plank
charred geyser
#

0Exe is the py guy

slender thistle
#

Baka

ancient nova
#

Imma attempt to do something like that

charred geyser
#

he always asks py questions so i cant help

opal plank
#

my py stuff is beyond basic

drifting wedge
#

hlep pls

opal plank
#

like, toddler level entry

slender thistle
#

Either I'm fucking stupid or setting headers in HttpClient is hard (C#)

ancient nova
#

alright Imma head out to sleep again

opal plank
#

just use axios

ancient nova
#

good night y'all

opal plank
slender thistle
#

in CS?

full wedge
#

hey. iยดm new here.... i did not understand how to input a dice roller bot on my server. can you help me?

opal plank
#

nah, i was kidding, im looking at it rn and it does seem like a pain

slender thistle
#

Might just ping cry at this point because I'm shit outta clue

opal plank
#

omg wtf is this

slender thistle
#

Most solutions I've tried didn't storm

#

work

#

I'm using HttpClient

#

Which doesn't seem applicable

opal plank
#

im assuming you saw the stackoverflow one?

slender thistle
#

I saw a lot of SO ones

opal plank
#

none worked?

earnest phoenix
#

DefaultRequestHeaders property on your httpclient

#

then just call .Add()

#

either it's my internet or discord is having a stroke again

slender thistle
#

Gives me null reference exception

#

Yeah, tried that

drifting wedge
#

pls help, how do i attach a file

#

?

earnest phoenix
#

find out what's null, it's probably the httpclient though

#

what have you tried @drifting wedge

drifting wedge
#

everything lol

earnest phoenix
#

that's not an answer

drifting wedge
#

1 sec

#
        set_image : ['./1.png']
        });```
sweet ruin
drifting wedge
#

im using PIL

slender thistle
#

Not really sure if var client = new HttpClient(); might return null

drifting wedge
#

and it creates a file called "1.png"

opal plank
#

@sweet ruin isnt that the template people use for glitch/heroku?

drifting wedge
#

how can i send it?

opal plank
sweet ruin
#

euh i dont know who that is?

livid rivet
#

@sweet ruin what is the suicide module for?

sweet ruin
#

if you think i stole it i can guarantee i did not

slender thistle
#

I will try null coalescing operator though, thanks for the heads up

earnest phoenix
#

where did you find set_image @drifting wedge

sweet ruin
#

Basically the module is a <kill and it displays a gif

drifting wedge
#

where did you find set_image @drifting wedge
@earnest phoenix i tried like attacgment

earnest phoenix
#

the docs straight up say there's an argument for a file

sweet ruin
#

or <kill without anything will display a funny kms gif

drifting wedge
#

and all that ditnt work

opal plank
#

yeah against tos

livid rivet
#

suicide != funny

opal plank
#

Suicide glorification is against tos @sweet ruin

earnest phoenix
#

@cursive dagger your best bet is to actually find out what's null via debugger breakpoints (vs has one)

sweet ruin
#

not glorified

earnest phoenix
#

wrong ping

#

@slender thistle ^^

opal plank
#

@sweet ruin either way

#

against tos

drifting wedge
#

ctx.send.files('1.png')?

opal plank
#

glorification/promotion of suicide

earnest phoenix
#

0Exe, literally read the doc link i sent you

drifting wedge
#

i did

#

i am reading it

slender thistle
#

I hope Rider has those. And if not... I guess I'm going Console.WriteLine ๐Ÿ˜‚

drifting wedge
#

but is it

ctx.send.files('1.png')?
@drifting wedge ?

earnest phoenix
#

no

#

how tf are you struggling so much

gray sand
#

Hi

slender thistle
#

ctx.send(file=discord.File('path_to_file'))

earnest phoenix
#

^^

drifting wedge
#

ctx.send(file=discord.File('path_to_file'))
@slender thistle i dont have the path

#

thats the issue

earnest phoenix
#

yes you do

sweet ruin
#

there. i updated it to <kill. happy @opal plank

opal plank
slender thistle
#

Wdym you don't have the path

earnest phoenix
#

you were literally using it

drifting wedge
#

File(fp, filename='1.png', *, spoiler=False)

#

im using heroku

#

so i wont have the path

opal plank
#

@sweet ruin you dont seem to be getting whats wrong with a command that sends stuff related to suicide

slender thistle
#

Then just specify relative path

sweet ruin
#

i removed that part mate

drifting wedge
#

wdym?

opal plank
#

not the command NAMe

slender thistle
#

As to what it's relative to, I have zero fucking idea

sweet ruin
#

its legit just <kill (mention user)

opal plank
#

the command ITSELF is against tos

sweet ruin
#

the command itself

#

is gone mate

#

xD

opal plank
#

oh then its fnie

slender thistle
#

Just use the file name as the path

sweet ruin
#

is what im trying to say

opal plank
#

i though u just renamted it

sweet ruin
#

now you can just kill people

#

lmaooo

#

(Funny gifs tho)

#

dw

opal plank
sweet ruin
#

if you are mad enough to use something worse than <slap

#

use <kill

opal plank
#

how about <knockOutAndForceToWatchEmojiMove command?

#

seems less harmfull

earnest phoenix
#

tw: to clarify for the argument above, the TOS does not state anything about talking about suicide however what is against the TOS is promoting gore (provocative images like slit wrists etc.)

sweet ruin
#

seems long too

opal plank
#

koaftwem

sweet ruin
#

thats what the ending part of my logger looks like

opal plank
#

looks good, i personally prefer just catching errors rather than the whole list

#

it spams your console after a certain amount of commands

sweet ruin
#

true that

#

i just like seeing the checkmarks

#

lol

opal plank
#

soon i'll be re-doing my twitch startup too

#

so i probably can prettify it a bit

sweet kestrel
#

is there somthing called this?

#

or is it like bot.add_cog(music(bot))?

noble halo
#

client.add_cog(Music(client))

#

ฤฐf init name parameter is __init__(self, client)

earnest phoenix
#
 module.exports =  {
createUser(user, db, bot){
   db.set(user.id, {
          credits:0,
          rep:0,
          level:0, 
          xp:0,
          desc:"unknow",
          ani:"unknow",
          premium:"false",
          registeredAt:require("./functions.js").printDate(new Date(Date.now()))
      });

      // Log in the console
      console.log("\x1b[32m","[DB]","\x1b[0m", "User \""+user.username+"\" registered ! ID : \""+user.id+"\"");

      // Return user data
      return db.get(user.id);
  }
}``` rn it register not only users but bots too any idea no how to make it where doesn't register bots
#

just check if the user is a bot...?

#

if it isn't -> register, if it is -> do whatever

drifting wedge
#

how can i add more args

#

like i have a clyde command

#

how can i make it send more than one word if i dont have quotes

sweet ruin
#

what does clyde command do?

#

@drifting wedge

drifting wedge
#

what does clyde command do?
@sweet ruin send a message as clyde

#

big brain

sweet ruin
#

euhh okay

#

all you do is this

#

#1 for future reference describe your command so i dont have to assume

#

#2 im assuming you want Clyde bot to get all args?

#
var clydesend = args.slice(0).join(' ')```
#

that gets all args after the original command

#

@drifting wedge

drifting wedge
#

@sweet ruin its not working

#
    async def clyde(self, ctx, args):

        clydearg = args.slice(0).join(' ')```
#

this is the beggining

#

begining

sweet ruin
#

okay

#

euhm

#

whats the error?

#

and whats the actual command

noble halo
#

Please giving on_vote event example.

faint prism
#

Why do people often make bots admins on their servers?

sudden geyser
#

It's easier than managing the permissions.

opal plank
#

How to get denied on any botlist 101

sick cloud
#

so i'm an absolute idiot with music bots and i tried making one but it starts then instantly stops playing, never plays the music

#

what do i do

honest perch
#

Library?

#

Lavalink no lavalink?

#

Language?

sick cloud
#

eris, node, no lavalink

pure lion
#

What is no lavalink

opal plank
pure lion
#

@sick cloud what're the errors and shit

sick cloud
#

no errors

#

just stops instantly

pure lion
#

No music at all?

opal plank
#

Tip: :run debugger and see where it stops

pure lion
#

^ but also clarify what you're using to play music

#

I Googled no lavalink

sick cloud
#

it doesn't "stop" anywhere

opal plank
#

Even with the code its hard to find where music is stopping

sick cloud
#

it works fine

#

but never plays

pure lion
#

Does it join?

opal plank
#

Like i said, step debug it

#

See which line is not doing whats suppose to

sick cloud
#

@pure lion using ytdl and eris built in stuff

#

.... it's working

#

as such

honest perch
#

And are you not ip banned

sick cloud
#

it sends silent packets, plays the end event

#

yes i'm not

pure lion
#

Strange

honest perch
#

That's why I like lavalink, very detailed error logs

sick cloud
#
connection.play(ytdl(item.source, { quality: 'highestaudio', filter: 'audioonly' }));
queue.state.channel.createMessage(`Now playing ${item.source}`);
    
connection.once('end', () => {
  queue.state.channel.createMessage(`Finished playing`);
  bot.leaveVoiceChannel(queue.state.voiceID);
});
#

i don't want to use it

earnest phoenix
#

lavalink is trash

#

bloated

opal plank
#

Try debugging like i said

pure lion
#

Never used but it seems like it is from the docs and shit

opal plank
honest perch
#

lavalink is trash
@earnest phoenix no u

pure lion
#

Use ffmpeg for true 69 big pp epicness 420 blazing

opal plank
#

Step debugging you can see whats going on

earnest phoenix
#

also

#

correct me if im wrong

#

but you need to use ffmpeg if you're working with youtube in order to convert to stereo 48khz PCM

pure lion
#

Shits about to go down when cry starts typing for more than 5 seconds

sick cloud
#

i don't see how debugging helps when the code works fine and it's obviously ytdl or something dumb

earnest phoenix
#

im on phone :(

sick cloud
#

because it plays fine with local files

opal plank
#

Thats what i mean

sick cloud
#

but if i add ytdl it doesn't work

earnest phoenix
#

but you need to use ffmpeg if you're working with youtube in order to convert to stereo 48khz PCM
@earnest phoenix

opal plank
#

Debugging can go to yrdl too

#

Use next rather than step over

#

Step over goes on ur own code

#

But u can follow it to ytdl

#

And see inside whats going on

pure lion
#

LmaO ffmpeg best streeeeem uwuwuwuwuw

sick cloud
#

eris takes a readablestream

#

ytdl provides a readablestream

opal plank
#

I just checked

#

Its step in

sick cloud
#

fent said so

opal plank
#

Use step in and it'll go over to ytbl

#

Step over goes in the running code

#

Step in follows the operation

wicked pivot
#

(node:7376) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'awaitReactions' of undefined

#

what ?

#
let MessageSend = await bot.channels.cache.get('534738699628576780').send('Random gift').then(async(msg) => {
                await msg.react("๐ŸŽ")
            })
            let filter = (reaction, user) => {
                return ['๐ŸŽ'].includes(reaction.emoji.name) && !user.bot
            };
            MessageSend.awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] })```
pure lion
#

@wicked pivot await it in a channel and filter by the message

wicked pivot
#

I did not understand ?

sick cloud
#

thanks

opal plank
#

@heavy flame its not about the errors, its about debugging lol

manic badger
#

does anyone know how I could make a discord bot that can detect when a person changes their Minecraft name

opal plank
#

I guess u could looop it

#

Depends on the lang that u use

manic badger
#

I would be using js

opal plank
#

Then the simplest thing u could do is check every couple minutes

#

SetInterval and rhen function fecth every user

manic badger
#

yeah, just gotta find an api that I can use

opal plank
#

If an api does it, even better

#

Otherwise just loop it

manic badger
#

I need an api to check if the person changed their name

opal plank
#

You could see if one exists

earnest phoenix
#

you will not be able to detect it realtime

opal plank
#

Otherwise you can do it with an interval

#

Thats what i do with my stream cachd

#

Though you likely can do it more often

near veldt
#

where can i download visual studio for linux

opal plank
#

Depening on whats the ratelimit of the endpoint and the api you touching

manic badger
#

I would loop a command that checks everyone on the list to see if the name was changed

earnest phoenix
#

it doesn't exist, vs is windows only @near veldt

near veldt
#

fuck

#

my laptop is windows but i lost the charger

earnest phoenix
#

what do you need it for

near veldt
#

everything

opal plank
#

@manic badger precisely, yeah

near veldt
#

to write programs n such

manic badger
#

ok, ty

earnest phoenix
#

no, i mean, which languages are you working with

manic badger
#

use sublime text or smth @near veldt

near veldt
#

javascript, html, and python

earnest phoenix
#

use visual studio code

opal plank
#

for (user of cache) {fetch(user) && if user exist emit user changed}

#

@manic badger

near veldt
#

i cant

earnest phoenix
#

why not

near veldt
#

u said its only available for windows and i told u my windows laptop has no charger

earnest phoenix
#

visual studio is not visual studio code

near veldt
#

?

manic badger
#

@opal plank exactly

earnest phoenix
#

visual studio and visual studio code are two completely separate piece of software

manic badger
#

imma store the uuid with the current username, then use the uuid to check if the username changed

near veldt
#

"Microsoft Visual Studio is an integrated development environment from Microsoft. It is used to develop computer programs, as well as websites, web apps, web services and mobile apps"

manic badger
#

I just wish there was an api somewhere that knew when someone on the list of people changed there name, not running a loop

near veldt
#

you could prolly create one urself by throwing some lines of code together

earnest phoenix
#

no you could not

manic badger
#

yeah

near veldt
#

why not?

manic badger
#

i'd need access to the Mojang api

#

to see when someone changed their name

earnest phoenix
#

mojang does not offer that ability, therefore you can't make it happen

manic badger
#

yup

near veldt
#

couldn't you just create one thats connected to the xbox database through a website or some where every users uuid and username is stored?

earnest phoenix
#

a, what the fuck
b, that's not what they asked for

sick cloud
#

which of these is the right/better way to delete a key from an object

manic badger
#

im using java edition

sick cloud
earnest phoenix
#

they want to detect realtime username changes

near veldt
#

and thats exactly where i was getting at

#

sorry for the confusion

earnest phoenix
#

@sick cloud delete syntax is more preferred

sick cloud
#

okay then sweet

sudden geyser
#

setting it to undefined leaves holes

opal plank
#

You'd need to constantly check if the user uuid name changed @manic badger

#

Like i said, wtih cache

#

Apologize in advance for syntax

#

Kinda in the middle of a party

earnest phoenix
#

you can probably scrape namemc

however namemc is heavily backed by cloudflare so good luck with that

opal plank
#

But you can cache your users and then check

#

Scrapping is also an option

sweet matrix
#

hello

#

please guys i have a problem here

#
  if (message.content === prefix + "ls") {
    var list_all = [];
    message.guild.members.forEach(bb => {
      if (!bb.user.bot) return;
      list_all.push(`<@${bb.user.id}>`);
    });
    message.channel.send(list_all.join(", "));
  }
});```
opal plank
#

Memer cache

#

Member cache

#

Also

#

Mass dm

sudden geyser
#

.members is a manager. You need to call it on the manager cache (.cache)

sweet matrix
#

oh ok thanks

#

bro

sudden geyser
#

that doesn't look like mass dm

sweet matrix
#

yeah i know

opal plank
#

@sudden geyser send message first r every guild member?

#

How is that not mass dm?

sudden geyser
#

because they aren't messaging everyone

#

they're adding the user's mention to an array

#

then pinging them all in a message

#

which would be annoying af

#

and almost as bad as mass dm

opal plank
#

Equally as bad

manic badger
#

yeah, imma cache the users, then every 10 minutes or so, check to see if the name corresponsing to the uuid has changed, and if it has, change their nickname or smth

earnest phoenix
#

this reminds me how mojang still doesn't have oauth for minecraft

#

mindblowing

#

having said that their entire auth system is a piece of trash

sudden geyser
#

10 minutes is quite short

#

a player can only change their mc name once in a month

earnest phoenix
#

yeah but they're not tracking a single user

manic badger
#

good point

#

maybe once every hour of smth

#

im only tracking about 200 players at once

pearl dove
#

Hello, can anyone help me???

#

I'm trying to programing a bot that play music, but i dunno how to make him enter in a channel

sudden geyser
#

what library

pearl dove
#

discord.js

sudden geyser
#

I think there's a method on VoiceChannel called .join() which joins the voice channel then returns a VoiceConnection

pearl dove
#

Do you now where i can find this method???

bronze mesa
sudden geyser
#

yikes

torn ravine
#

YIKES

sudden geyser
#

You may want to wrap that in template strings to make it mutli-line

#

though that face is going to give me nightmares

split hazel
#

i would not enjoy scrolling past that face

sudden geyser
#

would you scroll up with the 50% chance of there being another face

faint prism
#

Can JS eval commands declare classes or functions

sudden geyser
#

yes

#

but if they save for the next time varies

faint prism
sudden geyser
#

sorry I've divorced javascript for the time being

#

it can use a lot of improvements

faint prism
#

left out standard error ๐Ÿ™‚

#

but looks good to me

opal plank
#

@sudden geyser divorce js for ts

sudden geyser
#

don't like either

#

rust game

opal plank
#

Ts ftw

thick gull
#

divorce ts for bat files

earnest phoenix
#

I'm new to developing bots, and while studying how to make a bot in Discord.js, i was having trouble understanding the embed guide, to be more specific ive been having trouble making it work in my bot

#

any help?

thick gull
#

What exactly

#

Embeds?

earnest phoenix
#

Yes

thick gull
#

what do you not get(?)

#

itโ€™s a JSON object iirc

earnest phoenix
#

I don't get the part exampleEmbed

thick gull
#

and you can create one by doing new MessageEmbed()
.your(properties)
.here()

#

itโ€™s just an example of what you can do

earnest phoenix
sudden geyser
#

divorce ts for bat files
@thick gull laughs in unix

thick gull
#

exampleEmbed is just the name of the embed

earnest phoenix
#

ah, thought i was supposed to make a new file, or some shiz

karmic compass
#

if i have ```json
{ "success":true,
"profiles":{
"dsfjksdfljsdflkjsdf":{
"things":"YES",
"name":"1"
},
"sdfkljsdfsf":{
"things":"OKAY",
"name":"2"
}
}
}

how do i get "things" by getting "name" instead of just the profile section "sdafkljsdflkjsdfk"?
#

like if i entered 2 it would return OKAY

sudden geyser
#

What language are you using

karmic compass
#

js

#

but id be fetching it from an api which would be json

sudden geyser
#

Consider using Object.values(obj) to convert it to an array of objects from each key's value

#

If you need the key as well consider using Object.entries

earnest phoenix
#

what if i just put the code

const Discord = require('discord.js');`

const exampleEmbed = new Discord.MessageEmbed()
.setColor('#0099ff')
.setTitle('Some title')
.setURL('https://discord.js.org/')
.setAuthor('Some name', 'https://i.imgur.com/wSTFkRM.png', 'https://discord.js.org')
.setDescription('Some description here')
.setThumbnail('https://i.imgur.com/wSTFkRM.png')
.addFields(
{ name: 'Regular field title', value: 'Some value here' },
{ name: '\u200B', value: '\u200B' },
{ name: 'Inline field title', value: 'Some value here', inline: true },
{ name: 'Inline field title', value: 'Some value here', inline: true },
)
.addField('Inline field title', 'Some value here', true)
.setImage('https://i.imgur.com/wSTFkRM.png')
.setTimestamp()
.setFooter('Some footer text here', 'https://i.imgur.com/wSTFkRM.png');

channel.send(exampleEmbed);

thick gull
#

it sends that

karmic compass
#

nah

thick gull
#

embeds are something that is fun to mess around with:$

karmic compass
#

channel.send({embed:exapleEmbed})

earnest phoenix
#

When i run it, it doesnt send it

thick gull
#

channel.send({embed:exapleEmbed})
@karmic compass no

karmic compass
#

thats an older version :P

#

v12

thick gull
#

you donโ€™t need to lol

karmic compass
#

i believe you do in v12

sudden geyser
#

You don't

#

It's optional

earnest phoenix
#

How do i even check what version im on

sudden geyser
#

check your package.json file

karmic compass
#
[
  true,
  [
    {
      profile_id: '6d6e972ccd5144059291e6eed478ca22',
      members: [Object],
      cute_name: 'Pomegranate'
    },
    {
      profile_id: '07caf144982342dabdeacf9f239180d9',
      members: [Object],
      cute_name: 'Pineapple',
      banking: [Object]
    },
    {
      profile_id: '88ed5079c5e44d4d8ac19ef78aa89a0d',
      members: [Object],
      cute_name: 'Raspberry'
    },
    {
      profile_id: 'c531ad68a12a428e9593a4f65b3b3b83',
      members: [Object],
      cute_name: 'Lime',
      banking: [Object]
    }
  ]
]
``` it returns with this now
thick gull
earnest phoenix
#

im on version 1.0.0

sudden geyser
thick gull
#

what

karmic compass
#

how do i get "banking" if i said "lime"

earnest phoenix
#

@earnest phoenix works for me
It doesnt work for me ;-;

sudden geyser
karmic compass
#

that was an example

#
const fetch = require('node-fetch')

async function doTheThing() {
    const obj = await fetch('https://api.hypixel.net/skyblock/profiles?uuid=6d6e972ccd5144059291e6eed478ca22&key=secret').then(x => x.json())
    const thing = Object.values(obj)
    console.log(thing)
}

doTheThing()
thick gull
#

@earnest phoenix are you on v12, latest

earnest phoenix
#

@earnest phoenix are you on v12, latest
@thick gull on discord.js?

thick gull
#

yes

sudden geyser
#

You may want to omit your key

karmic compass
#

?

#

gpoint

earnest phoenix
#

in package.json file it says "discord.js": "^12.3.1"

#

so i guess i am

thick gull
#

yeah your on v12

#

is there an error?

earnest phoenix
#

Im testing the embeds out, so there is no other coding inside of the bot, except for that exampleEmbed code

karmic compass
#

ah

#

let me fix that for you

earnest phoenix
#

is there an error?
checking

karmic compass
#
const Discord = require('discord.js');

client.on('ready', () => {
  console.log("READY!")
})

client.on("message", (message) => {
if(message.content == "!exembed") {
  const exampleEmbed = new Discord.MessageEmbed()
      .setColor('#0099ff')
      .setTitle('Some title')
      .setAuthor('Some name', 'https://i.imgur.com/wSTFkRM.png', 'https://discord.js.org/%27')
      .setDescription('Some description here')
      .setThumbnail('https://i.imgur.com/wSTFkRM.png')
      .addField("Un inline field title", "A")
      .addField('Inline field title', 'Some value here', true)
      .setImage('https://i.imgur.com/wSTFkRM.png')
      .setTimestamp()
      .setFooter('Some footer text here', 'https://i.imgur.com/wSTFkRM.png');
    message.channel.send(exampleEmbed);
 }
})
earnest phoenix
thick gull
#

Discord.MessageEmbed()

earnest phoenix
#

huh-

thick gull
#

if you donโ€™t do const { Discord, MessageEmbed } = require('discord.js') iirc you do Discord.MessageEmbed() or whatever your discord is called

earnest phoenix
#

What?

thick gull
#

you need to either require MessageEmbed from the package (I donโ€™t do this so Iโ€™m not sure) or do Discord.MessageEmbed() instead of just MessageEmbed() @earnest phoenix

supple oriole
#

Can anyone help me with how to have 2 or more prefixes for your bot?

#

I want it to be p- and P-

clever vector
#

hey bros

#

How to put animated emojis

#

in discord bot

sharp thicket
#

Anyone know how to make a webhook on heroku that works with dbl?

sudden geyser
#

@supple oriole why not just make it case-intensive

supple oriole
#

h0w :D

sudden geyser
#

and if you want to support multiple prefixes, keep an array/list of the prefixes then iterate over it checking if the message starts with the prefix

supple oriole
#

wait Ill send u the cript

#

*script

#
  statusURL: 'https://srhpyqt94yxb.statuspage.io/api/v2/status.json',
  prefix: 'p-',
  botGuildID: '732859345561190510',
  ownerID: '570522126734327833',
  ad: {
    desc: {
      min_length: 10,
      max_length: 255
    }
  },```
sudden geyser
#

let's imagine there's a key called prefixes and a value of an array of strings

#

on a string that will be the user's message content

#

We'll loop over it with .find (<Array>.find) and check if the string .startsWith() the prefix

supple oriole
#

Alr.

#

So how exactly am I suppose to add that into the script?

sudden geyser
#

Use it as explained: js let prefix = prefixes.find((prefix) => { /* message.content.startsWith(...) */ })

supple oriole
#

Alr

sharp thicket
#

Anyone know how to make a webhook on heroku that works with dbl?
@sharp thicket

drifting wedge
#

how can i center text in pil:

#

PIL?

pale vessel
#

@radiant kraken

prime glacier
#

how can we do it like if someone send pic to bot in dm bot send it to specific channel (which we had mentioned)

drifting wedge
#
            return```
#

this is in a cog

#

how the commands.self doesnt work

#

and i tried user

#

what would work?

torn ravine
#

Error?

sharp thicket
#

@drifting wedge error?

drifting wedge
#

User not attributed

#

Or something

vale garden
#

hi

#

how can i make my bot dm someone if i have their id?

pale vessel
#

fetch them as a user

#

in discord.js, we have client#users#cache and client#users#fetch()

earnest phoenix
vale garden
#

kk

#

thd

#

thx

#

wait ooof

#
    let users = new Map();

    const filter = m => m.author.id

const collector = message.channel.createMessageCollector(filter, { time: 15000, max: 4 });

message.channel.send("Type `ready` to enter the game");

collector.on("collect", async m => {

if (m.content === "ready" && m.author.id) {
m.author.send("You have readied up!")

console.log(m.author.username)

/*users.set(m.author.username, 1)
.then(() => users.set(m.author.username, 2))
.then(() => users.set(m.author.username, 3))
.then(() => users.set(m.author.username, 4))*/

await users.set(m.author.id, 1)
await users.set(m.author.id, 2)
await users.set(m.author.id, 3)
await users.set(m.author.id, 4)



}})

collector.on('end', collected => {
  message.channel.send("Collected messages from all 4 players")
  console.log(users)
});
#

can i even dm each person here

#

in another collector

#

each m.author

#

actually nvm

#

lol

earnest phoenix
#

you need to either require MessageEmbed from the package (I donโ€™t do this so Iโ€™m not sure) or do Discord.MessageEmbed() instead of just MessageEmbed() @earnest phoenix
@thick gull Thats what it is

dense knoll
#

How do I put a discord.py bot that writes a message to a channel every day at 8:00 AM? I did so, but I'm not sure it works, as soon as I start it gives me the message, but how do I get it to send only at 8:00 ??

#

Pls help me

thick gull
#

but why would you want to do that Kek

tribal shadow
#

How to put animated emojis
@clever vector if animated <a:(emoji-name):(emoji-id)> if not animated <(emoji-name):(emoji-id)>

#

you can get emoji but puting a / in front of it like this
/discordbotlist

#

then edit the message

#

/dblWink

thick gull
#

wrong slash

#

\

#

you donโ€™t need to edit the message

tribal shadow
thick gull
#

it just gives you it

tribal shadow
#

oh, whatever works, works ig

thick gull
clever vector
#

Guys

#

Something strange happen to me

#

idk you guys too or no

#

My bot applied at July

#

now Sept

#

not yet approved too

tribal shadow
clever vector
#

Sad

#

2month havent approved

delicate zephyr
#

Read

#

it can take longer

earnest phoenix
#

I applied last year and was approved this week

#

so it can be super long @clever vector

clever vector
#

WoW

#

last year

delicate zephyr
#

literally took you a month

earnest phoenix
#

oh

delicate zephyr
#

actually

earnest phoenix
#

Spark bot

delicate zephyr
#

a week

#

nvm

earnest phoenix
#

its been a while

tribal shadow
#

also they're are more bot lists i know that accept faster, but im not sure if that's advertising or not

delicate zephyr
#

Other bot lists dont have the magnitude of bots this one does

#

you'll reep more benefits from this list

tribal shadow
#

yes, but it doesnt hurt to get on to multiple lists

earnest phoenix
#

yes luke is right

#

there is way more benifits

delicate zephyr
#

it does when all the other lists do are try to be like this list

#

and fail miserably

#

anyway this isnt development talk we should move to #general

clever vector
#

๐Ÿ˜ฆ

#

Ye

earnest phoenix
rough lodge
#

Can some give me a link of where i can learn html/css for description of adding in my bot

gentle oxide
#

@hasty ginkgo

thick gull
gentle oxide
#

๐Ÿ˜”

#

You can pass me the memory usage command in python language here or in private, please, it's that I've been looking for it everywhere and I can't find it, please, it would be helpful if you wrote it to me please

pale vessel
#

no

delicate zephyr
#

We dont spoonfeed here

gentle oxide
#

Please

delicate zephyr
#

Spoonfeeding is against the rules

#

you need to learn

torn ravine
#

We donโ€™t spoonfeed unfortunately

rough lodge
#

Can some give me a link of where i can learn html/css for description of adding in my bot
@rough lodge can i get this?

hasty ginkgo
#

@hasty ginkgo
@gentle oxide i mean, why did you ping me randomly out of 130k+ members?

gentle oxide
#

because I saw that you put ping with your bot and I saw that you have inside the command ping memory uses: and that's why I asked you

#

xD

delicate zephyr
#

because I saw that you put ping with your bot and I saw that you have inside the command ping memory uses: and that's why I asked you
@gentle oxide no one here will spoon feed you

#

so stop

rough lodge
#

can some help me out

#

just a small thing

thick gull
rough lodge
#

Can some give me a link of where i can learn html/css for description of adding in my bot

gentle oxide
#

ajaj con ese cรณdigo tampoco es que sirva mucho es solo por estรฉtica pero si me quieren ayudar se los agradecerรญa mucho

#

y no es nada diferente pedir un trozo de cรณdigo a otro

thick gull
#

Can some give me a link of where i can learn html/css for description of adding in my bot
@rough lodge w3schools

gentle oxide
#

que no te vea yo haciendo una camiseta de tela porque lo estas copiando de otro

rough lodge
#

Ok thank you ๐Ÿ™‚

gentle oxide
#

ajaj with that code it is not that it works a lot it is only for aesthetics but if you want to help me I would appreciate it very much

#

that I do not see you making a fabric shirt because you are copying it from another

open zephyr
delicate zephyr
open zephyr
#

apologies

#

ty

mental willow
#

ok so i am having a problem, does anyone know how to create a custom help command that uses decorators in python. i can do all the embeds and all the other stuff, just setting up a decorator to use so i can dynamically retrieve the commands for the help command?

Discord.py

vale garden
#

hi

#
let users = new Map([])

    const filter = m => m.author.id

const collector = message.channel.createMessageCollector(filter, { time: 15000, max: 4 });

message.channel.send("Type `ready` to enter the game");

collector.on("collect", async m => {

if (m.content === "ready" && m.author.id) {
m.author.send("You have readied up!")

//console.log(m.author.username)

/*users.set(m.author.username, 1)
.then(() => users.set(m.author.username, 2))
.then(() => users.set(m.author.username, 3))
.then(() => users.set(m.author.username, 4))*/

users = [
  [1, m.author.id],
  [2, m.author.id],
  [3, m.author.id],
  [4, m.author.id]
]


}})

collector.on('end', collected => {
  message.channel.send("Collected messages from all 4 players")
  console.log(users)

  console.log(users.get(1))
#

it says users.get is not a function

#

how is that possible

#

actually i fixed it

#

forget about the question lmao

sick cloud
#

so i'm mapping out a config file and i get raw values which is ok, it works. but if i want to say await and fetch a val in .map, it fails and returns [object Promise]. what's the best way to "await" the map somehow so i can await promises/funcs to resolve in the .map?

vale garden
#

ok wtf i have another problem

#
let users = new Map([])

    const filter = m => m.author.id

const collector = message.channel.createMessageCollector(filter, { time: 15000, max: 4 });

message.channel.send("Type `ready` to enter the game");

collector.on("collect", async m => {

if (m.content === "ready" && m.author.id) {
m.author.send("You have readied up!")

//console.log(m.author.username)

/*users.set(m.author.username, 1)
.then(() => users.set(m.author.username, 2))
.then(() => users.set(m.author.username, 3))
.then(() => users.set(m.author.username, 4))*/

await users.set(1, m.author.id)
await users.set(2, m.author.id)
await users.set(3, m.author.id)
await users.set(4, m.author.id)


}})

collector.on('end', collected => {
  message.channel.send("Collected messages from all 4 players")
  console.log(users)

  //console.log(users.get(1))
  let a = (users.get(1))
  let b = (users.get(2))
  let c = (users.get(3))
  let d = (users.get(4))

});
#

so here in m.author.id it only displays the id of one guy

#

which i did not mean to do

#

how do i fix this without adding more collectors?

rough lodge
#

will this work? ```<html>
<body>

<h1>EcoBot</h1>
<p>This is a paragraph.</p>

</body>
</html>```

#

the bot description?

cinder patio
#

You should omit the html and body taga

#

tags*

vale garden
#

wait how do you make a bot on html

#

lol

#

damn

rough lodge
#

Dumb that is not a bot

vale garden
#

o

#

lmao

rough lodge
#

use common sense

vale garden
#

dude

cinder patio
#

You don't, html isn't a programming lamguage

vale garden
#

a guy here

#

had done that before tho

#

apparently

#

idek how

rough lodge
#

That is for bot description as i said

vale garden
#

ok fine

#

chill

rough lodge
#

I have question @cinder patio.. How do set an image

cinder patio
#

Use the img tag, but you will have to host he images somewhere

#

the*

rough lodge
#

like an ss of the bot. using an cmd

#

Use the img tag, but you will have to host he images somewhere
@cinder patio how

#

Its local image and i want in the description

cinder patio
#

I host mine on imgur. Get the raw imgur link and use it in the src attribute of the img tag

rough lodge
#

K

vale garden
#

does anyone know how to collect from 4 dif people in one collector

#

and get their ids

#

cuz when i did it i only got the id of the first person

earnest phoenix
#

I have discord.js and i use a basic-ish cooldown without a DB. How do i use it to count each time its triggered so that i can blacklist spammers that send 5 commands in x time?

 talkedRecently.add(message.author.id);
        setTimeout(() => {
          // Removes the user from the set after a minute
          talkedRecently.delete(message.author.id);
        }, 3000);```
bright osprey
#

thanks

lusty roost
#

eait

#

wait

#

idk

bright osprey
#

hi. i'm having this issue hours after i run the bot, always causes my server to crash. my code is this:

bot.on('message', (message) => {
    if (message.author.bot) return;
    let prefix = 'smthn';
    if ((message.channel.name).includes("smthn")) {
        if (String(message.content.toLowerCase()) == 'smthn') {
            console.log(`${message.author.tag} honked!`)
            return message.channel.send('smthn');
        } else {
            message.delete();
        }
    }

here's the log:

if ((message.channels.cache.get).includes("honk")) {
^
TypeError: Cannot read property 'cache' of undefined
at Client.<anonymous> (/home/container/honk.js:32:27)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/home/container/node_modules/ws/lib/event-target.js:125:16)
#

thanks for any help

misty sigil
#

client.channels

#

and .get is a function

bright osprey
#

djs 12

misty sigil
#

that returns a channel object

#

djs 12
@bright osprey ITS CLIENT.CHANNELS

pale vessel
#

message.content is already a string

bright osprey
#

just telling you

vale garden
#

hi

#
if (args[1].isInteger === false) {
    message.channel.send("Enter an actual number lol")
    }
#

this is a part of my command

#

but it has no effect on it

#

if i enter a string it still does the command normally

#

and then messes up at the calculation part and shows an error

#

what do i do

cinder patio
#

What's args[1]? A string?

vale garden
#

what

#

oh what

pale vessel
#

args is always a string

vale garden
#

then how does it also work as a number

cinder patio
#

strings have no isInteger property

bright osprey
#

@misty sigil

/home/container/honk.js:32
if ((client.channels.name).includes("honk")) {
ReferenceError: client is not defined
at Client.<anonymous> (/home/container/honk.js:32:5)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/home/container/node_modules/ws/lib/event-target.js:125:16)
pale vessel
#

you should use isNaN() since Number.isInteger() needs to be converted first since strings won't work

vale garden
#

isNan didnt work

#

for some reason

pale vessel
#

how did you do it?

#

right now you're doing string.isInteger which is wrong

bright osprey
#

my code should be

#
bot.on('message', (message) => {
    if (message.author.bot) return;
    let prefix = 'honk';
    if ((client.channels.name).includes("honk")) {
        if (String(message.content.toLowerCase()) == 'honk') {
            console.log(`${message.author.tag} honked!`)
            return message.channel.send('honk');
        } else {
            message.delete();
        }
    }
#

right?

pale vessel
#

define client

vale garden
#

ok i just converted

#

i mean

bright osprey
#

huh

vale garden
#

i made a variable which parses it into an int

pale vessel
#

you can just use isNaN

earnest phoenix
#

I have discord.js and i use a basic-ish cooldown without a DB. How do i use it to count each time its triggered so that i can blacklist spammers that send 5 commands in x time?

 talkedRecently.add(message.author.id);
        setTimeout(() => {
          // Removes the user from the set after a minute
          talkedRecently.delete(message.author.id);
        }, 3000);```

@earnest phoenix No one have a solution?

#

I would be willing to use mongo db if needed

vale garden
#

ok so

#

shouldnt this work

#
let one = parseInt(args[1])

     if (one.isNan) {

       message.channel.send("Enter a proper number lol")

     }

#

cuz it isnt working

pale vessel
#

it's isNaN(input)

#

it's not a property

vale garden
#

oh

#

ohhhhhhhhh

#

lol

pale vessel
#

you can omit the parseInt

#

isNaN does that automatically iirc

cinder patio
#

Stop making things up and learn to read the documentation

vale garden
#

um

#
let one = parseInt(args[1])

     if (isNan(one)) {

       message.channel.send("Enter a proper number lol")

     }

earnest phoenix
#

NaN

pale vessel
#

isNaN

earnest phoenix
#

Case sensitive

vale garden
#

o m g

#

how do i

#

no

#

t

#

realise

cinder patio
#

and also, isNaN(one) will always return false

vale garden
#

wait what

pale vessel
#

because it's parsing the string as a number

#

actually, it will work

#

parseInt can return NaN

#

but it'll try to parse the string and get a number from it

vale garden
#

idk what you said

cinder patio
#

Oh I thought it returned null

vale garden
#

but its working

#

lol

pale vessel
#

you should just remove that

vale garden
#

ok thx

#

remove what

pale vessel
#

remove one

#

use args[1] directly

vale garden
#

bruh

#

args[1] is a string

#

so

pale vessel
#

it's okay

vale garden
#

lol

#

but its fine

#

doesnt matter

#

ok thx

#

for helping

earnest phoenix
#

it would work. plus less lines of code. Sip

pale vessel
#

plus something like parseInt("11a") would return 11

#

so you have to use one instead of args[1]

earnest phoenix
#

parsing integers, yes.

earnest phoenix
#

what does parseInt() do

woeful pike
earnest phoenix
#

lmao

pale vessel
#

it's not funny anymore when you don't know how to google pepehands

clever vector
#

Anyone help me

pale vessel
#

remove return

clever vector
#

i want to make ping bot for prefix

#

Ohh

pale vessel
#

return only works if you have it inside a function

#

or inside an event

earnest phoenix
#

^

#

or inside an event
@pale vessel events take callback functions so

pale vessel
#

yes

clever vector
#

it turned into undefined

earnest phoenix
#

prefixEmbed

#

@clever vector your embed variables name is different

clever vector
#

ohh

pale vessel
#

you're doing it inside an eval

earnest phoenix
#

const prefixEmbed = ;
message.channel.send(embed);
yes ik quoting ain't ment for code block substitute

pale vessel
#

does the prefix start with a mention?

#

if not then it'll never send the embed

earnest phoenix
#

cuz

#

the code never ran

#

@clever vector you're literally doing PREFIX-EVAL and not mentioning the bot LMFAO

#

so it doesn't run

#

try putting it in your normal code then try pinging the bot

clever vector
#

Ohh

pale vessel
#

message.content = "mention"; if (message.content.startsWith()) 5head

clever vector
#

Message is undefined

earnest phoenix
#

what the fu

wicked plover
#

I am trying to add a meme command with the random-image-js module but im not sure how to get the variables from the response.
Code

const Discord = require("discord.js");
var randomImageJs = require("random-image-js");

module.exports = {
  name: "meme",
  description: "check out these memes!",

  execute(client, message, args) {
    randomImageJs
      .getMemes({
        get: 1,
        removeAllSubReddit: true,
        addSubReddit: ["memes", "dankmemes"]
      })
      .then(response => {
        const randomColor = Math.floor(Math.random() * 16777215).toString(16);
        const memeEmbed = new Discord.MessageEmbed()
          .setTitle("[" + response.title + "]" + "(" + response.postLink + ")")
          .setColor(randomColor)
          .setFooter("r/" + response.subreddit)
          .setImage(response.image);
        message.channel.send(memeEmbed);
      console.log(response)
      });
  }
};

Example Response

  {
    id: 'ionzun',
    title: 'how does that even happen?',
    postLink: 'https://redd.it/ionzun',
    image: 'https://i.redd.it/3v0j8b4n1vl51.jpg',
    thumbnail: 'https://b.thumbs.redditmedia.com/R43YhUTulKqZIPGWI5aVb5SqAnAC9Yquobta0ZMX5Mc.jpg',
    subreddit: 'memes',
    NSFW: false,
    spoiler: false,
    createdUtc: 1599543335
  }
]```
earnest phoenix
#

@wicked plover it's an object

#

get the properties from it

clever vector
#

hey message is not defined

earnest phoenix
#

wtf

wicked plover
#

sorry i dont really understand do u mean response[1].image

earnest phoenix
#

sorry i dont really understand do u mean response[1].image
@wicked plover the .image part means get property image from the object

earnest phoenix
#

also response[1] won't work

#

@clever vector Show command handler

#

The stuff starting with bot.on("message");

#

screenshot the first few lines of code

clever vector
#

i have many handler

earnest phoenix
#

wtf

clever vector
#

The command handler

earnest phoenix
#

yeah

forest drift
#

Hi, so I'm trying to make a message deleted log. I've got it to work, but it only logs messages that have just been sent, any message above thee lastest one doesnt work. I'm currently using the audit log method

earnest phoenix
#

The stuff starting with bot.on("message");
screenshot the first few lines of code

#

Hi, so I'm trying to make a message deleted log. I've got it to work, but it only logs messages that have just been sent, any message above thee lastest one doesnt work. I'm currently using the audit log method
@forest drift show code

forest drift
#

client.on('messageDelete', async msg => {
let logs = await msg.guild.fetchAuditLogs({
limit: 1,
type: 'MESSAGE_DELETE',
});
let entry = logs.entries.first();

clever vector
#

here is index.js

#
const Discord = require("discord.js");
const config = require("./config.json")
const blobcord = require("./handler/ClientBuilder.js");
const client = new blobcord();

require("./handler/module.js")(client);
require("./handler/Event.js")(client);

client.package = require("./package.json");
client.on("warn", console.warn);
client.on("error", console.error);
client.login(config.token).catch(console.error);
forest drift
#

then in an embed im just refering to; msg.content, msg.channel, msg.author.id, ect

earnest phoenix
#

here is index.js
@clever vector you just confirmed that you seriously don't know anything about bot development and programming

clever vector
#

๐Ÿ˜ฆ

forest drift
#

common atleast be nice

#

virak just experiment until you get the hang of it

#

everyone starts knowing nothing

earnest phoenix
#

virak just experiment until you get the hang of it
@forest drift that's half terrible advice

forest drift
#

eh works for me

earnest phoenix
#

he seriously ain't getting anything about his code how will he experiment

forest drift
#

ok fair point...

earnest phoenix
forest drift
#

I remember when I have a problem, I google it and then try understand how they're solving it. Then I end up remembering the code longer than if I were to just read it

earnest phoenix
#

I remember when I have a problem, I google it and then try understand how they're solving it. Then I end up remembering the code longer than if I were to just read it
@forest drift after you google you still read so

woeful pike
#

god please don't use w3schools to learn js

earnest phoenix
#

that's where i learn html

#

and css

woeful pike
#

w3schools is complete garbage

earnest phoenix
forest drift
#

I mean, I then have to code it, and since I only google what I need, that strat works for me

forest drift
#

anyway;

#

so how would you go about logging deleted messages ;-;

earnest phoenix
#

I'm just throwing in links from places where i learnt programming

#

@clever vector

#

Read those tutorials

#

Completely ignore w3schools if you want

clever vector
#

@woeful pike

forest drift
#

w3schools is complete garbage
@woeful pike w3schools is atleast simple and easy to understand?

clever vector
#

Can i ask 1 more

earnest phoenix
#

pinging a fucking dev teammate to ask for permission to ask a question bigbrain

woeful pike
#

w3schools is old and crusty, at best it has outdated information and at worst it teaches discouraged bad practices like float layouts and var

clever vector
#

pinging a fucking dev teammate to ask for permission to ask a question :bigbrain:
@earnest phoenix Yo

earnest phoenix
#

quoting with ping for a yo angeryping

clever vector
#

k

earnest phoenix
#

read pins

#

of that channep

clever vector
#

Me is newbie

woeful pike
#

if u ping me again I'm moving it to the back of the queue

clever vector
#

Ok

#

๐Ÿ˜ญ

earnest phoenix
#

sorry auto-correct typed the word dick

clever vector
#

My bot is right

#

im unlucky 40%

woeful pike
#

just be patient, we're bombarded with new bots every single day

earnest phoenix
#

^

#

Over 30 mods but still the reviewal times are over a month now

forest drift
#

w3schools is old and crusty, at best it has outdated information and at worst it teaches discouraged bad practices like float layouts and var
@woeful pike mkay very true point... i tried learning mongodb on there and got enough errors to fill a database

earnest phoenix
#

Last time my bot was added and its reply after 1month
@clever vector we're getting #general

#

@hollow mango mkay very true point... i tried learning mongodb on there and got enough errors to fill a database
@forest drift uhhh what

forest drift
#

mongodb? the database?

cerulean salmon
earnest phoenix
#

is it possible to use those variable in coding block ?
@cerulean salmon wdym?? waitWhatSpin

cerulean salmon
#

๐Ÿ˜… i an new

earnest phoenix
#

oh you mean get the property inside the object itsekf

cerulean salmon
#

yes

earnest phoenix
#

you can use this

#

it will reference to the object

cerulean salmon
#

but not worked

earnest phoenix
#

what did it output

cerulean salmon
#

undefined

earnest phoenix
#

wait

#

since it's inside a function it refernces ti the function

#

@Tim

#

@quartz kindle how do you get the object to which a methid belongs to

#

*method

pale vessel
#

module.exports

#

@cerulean salmon

cinder patio
#

that's because you cannot use this inside arrow functions

#

replace () => { with function() {

#

@cerulean salmon

cerulean salmon
#

@cinder patio @earnest phoenix thanks for the response .

earnest phoenix
#

so guys im running a discord server that basically needs an account registration to access my features , people now manually tell me what they want as their user, pw , email , is there a bot / website where i can send them and they write it there and the bot/website keeps the database? thanks in advanced hope i explained it right

#

is microsoft azure the best option for hosting the bot?

#

Hello I write an create role cmd, but it make the role and it adds at the role all permissions, I want only selected perms

#

so guys im running a discord server that basically needs an account registration to access my features , people now manually tell me what they want as their user, pw , email , is there a bot / website where i can send them and they write it there and the bot/website keeps the database? thanks in advanced hope i explained it right
@earnest phoenix why should a bot have account registration, isnt Discord OAuth not giving enough trusted information about the user?

clever vector
#

Hey guys

#

How many status is ratelimit for bot

earnest phoenix
clever vector
#

@earnest phoenix How to do that

earnest phoenix
#

How can i add this in MessageEmbed

clever vector
#

.setImage

#

addImage

#

idk which one

earnest phoenix
#

ok