#development

1 messages · Page 1471 of 1

earnest phoenix
#

you never login

cosmic minnow
#

client.login(token); i do login

#

but maybe its the DBL code

#

nvm found the issue

queen crescent
#

@earnest phoenix wouldnt it need to be post and not put?

cosmic minnow
#

i installed the module and heroku says: Error: Cannot find module 'dblapi.js'

const DBL = require('dblapi.js');
const dbl = new DBL(process.env.DBL_TOKEN , client);```
rapid wave
#

dbl api changed @cosmic minnow

pale vessel
#

Do not use the top.gg package

#

It's not official

neon heart
#

wdym? it's not official?

slender thistle
#

It's not. @top-gg/sdk is official

neon heart
#

-_-

tardy hornet
#

???

neon heart
#

but i am using

"dblapi.js": "^2.4.1",
slender thistle
#

That package is not maintained anymore

neon heart
#

🥲

earnest phoenix
#

How can i set my bot status to COMPETING?

tawny oar
#

Anyone knows how can i detect reactions in message.content? using python

carmine summit
carmine summit
tawny oar
# carmine summit Something like message.reactions

does not exists i guess the current message object is like this: <Message id=790564985985564682 channel=<TextChannel id=... name='test-bot' position=7 nsfw=False news=False category_id=...> type=<MessageType.default: 0> author=<User id=.... name='Erdem Ipek' discriminator='5224' bot=False> flags=<MessageFlags value=0>>

carmine summit
#

@tawny oar I believe there is discord python docs

tawny oar
#

yeah thanks im searching

carmine summit
#

Wait what?

#

Ok bye

earnest phoenix
#

bots can use everything except type 4

undone solar
earnest phoenix
undone solar
earnest phoenix
#

How do i add COMPETING?

carmine summit
#

Tf?

earnest phoenix
#

some bots have

#

Activity type 5

#

Maybe ill do TYPE: COMPETING

#

unless your library supports it, you can't use it

#

Nvm I just did TYPE: COMPETING

#

How can i get all members of a guild?

#

in which library

pale vessel
#

js

earnest phoenix
#

sixth sense

spark orbit
#

Hi

crimson vapor
#

lol

spark orbit
#

Im bot developer

sudden geyser
#

okie

stark abyss
#

im bot developer

mellow kelp
#

im bot developer

umbral zealot
#

Im bot developer

serene granite
#

im bot developer

sand condor
#

im bot developer

old cliff
#

Is there a npm module which extracts each indidiual frames from a gif ?

#

for node.js and not web javascript

weary widget
#

does anyone know how to make hyperlinks in discord.py embeds?

old cliff
#

oof [Hi](https://google.com) @weary widget

#

try this

weary widget
#

wait how do u do that

#

ah

#

thanks

#

it's that simple

old cliff
#

yes

weary widget
#

thanks

#

👍

tawny oar
#

hey

#

how can i reach the emoji prop in this example in python

#

[<Reaction emoji='😀' me=False count=1>]

#

its the result list of message.reactions

#

i want to reach only the : 😀 part

old cliff
#

Is there a npm module which extracts each indidiual frames from a gif ?
for node.js.

buoyant aspen
#

How can I find the date an account was created without having a bot that shares a guild with them? (This is for a website feature)

#

In JS

old cliff
#

You can't

#

or use oauth

buoyant aspen
#

It looks like DiscordRep did... It can find the created date of accounts that as far as I know have never signed in (bot users for example)

#

I just created a bot not in any servers and it can get the account age.

lost isle
#

hi how do i add more than one title on an embed

uncut river
#

only 1 title

#

1 author

#

25 embeds

lost isle
#

how i add more embed

#

because i wanna add a help command

uncut river
#

well first depends on your language, if discord.js just use .addField() a bunch of times

lost isle
#

yea

uncut river
#

you can also use .setDescription

lost isle
#

discord.js

#

ok thanks man!

earnest phoenix
#

you can use REST to get users globally

#

that returns only basic information though

#

the creation date can be extracted from the id though

#

since it's a snowflake

old cliff
#

you can't access the info of users which don't share a guild of the bot @earnest phoenix

earnest phoenix
#

you very much can

old cliff
#

you yourself try it

earnest phoenix
#

hey guys

crimson wagon
#

i need some help

#
        type: 'category',
        position: 1,
        permissionOverwrites: [
            {
                id: message.guild.id,
                allow: ['VIEW_CHANNEL'],
            }]
    }).then(cat => {
        message.guild.channels.create('Rules', {
            type: 'text',
            parent: cat,
            permissionOverwrites: [
                {
                    id: message.guild.id,
                    allow: ['VIEW_CHANNEL'],
                }]        
        }).then(cat => {
          message.guild.channels.create('Rules', {
              type: 'text',
              parent: cat,
              permissionOverwrites: [
                  {
                      id: message.guild.id,
                      allow: ['VIEW_CHANNEL'],
                  }]
                }) 
              })
earnest phoenix
crimson wagon
#

So i am trying to create two channels under the same category

old cliff
#

I was saying that

earnest phoenix
#

hey guys

#

bitch are you fucking blind

#

the id is a snowflake

#

why the the owner's crown sometimes disappear

#

?

hollow sedge
#

The time of creation is the time that they joined

#

The guild

crimson wagon
#

@hollow sedge do you know how to code channels under categories

hollow sedge
#

Not in d.js

earnest phoenix
#

The time of creation is the time that they joined
The guild
what

#

time of creation != join date

crimson wagon
#

i need to create channels under a specific category anybody know how to do that

hollow sedge
earnest phoenix
#

surely not

hollow sedge
#

Yeah idk though

earnest phoenix
#

this message confirms the context of the message is about account age

hollow sedge
#

I got confused for a sec cause that says 4:09 PM

#

Anyway I was just saying that it wasn't the time of creation, not that he should use it because it is the join date.

digital ibex
#

is there any way for a video to be sent without having to download it?

earnest phoenix
#

what

digital ibex
earnest phoenix
#

dd/m/yyyy

digital ibex
#

and not have a button which forces u to download it to watch it

earnest phoenix
#

all pulled from your id

#

with a bot that doesn't share a single guild with you

eternal osprey
#

hey where do i find the mongodb connection uri on their site?

hollow sedge
old cliff
#

Well did discord intend to give info about any user to anyone ?

earnest phoenix
#

yes

#

that is a documented endpoint

#

lol

#

stop trying to be a smartass

digital ibex
hollow sedge
#

Lol

earnest phoenix
sterile lantern
#
    
    if (author !== null && timeout - (Date.now() - author) > 0) {
        let time = ms(timeout - (Date.now() - author));```
old cliff
#

ok I didn't know

sterile lantern
#

i want timeout to be 30 minutes

digital ibex
#

thats like not forcing u to download

sterile lantern
#

but uh

hollow sedge
#

I think it has to be a supported filetype

sterile lantern
#

that in ms is a very big number

#

so how to MonkaHmm

digital ibex
#

if it helps? @hollow sedge

hollow sedge
earnest phoenix
#

you didn't send a video with valid data if it doesn't embed like that iirc

eternal osprey
#

where do i find my dbname?

earnest phoenix
#

give me a second i'll try it

sterile lantern
#

for what ^^

old cliff
#

well is there a way to get if a user is in a guild ? @earnest phoenix without the bot sharing the guild ?

sterile lantern
#

if you're using a db like sqlite, it should auto-create a db file

earnest phoenix
#

but that was not the original question

digital ibex
#

alright ty

sterile lantern
#
    let timeout = 600000;
    
    if (author !== null && timeout - (Date.now() - author) > 0) {
        let time = ms(timeout - (Date.now() - author));```

how to make it so timeout is 30 minutes (rn its 10 mins in ms)
#

im using parse ms

hollow sedge
#

Just triple it?

sterile lantern
#

uh

#

thats a

eternal osprey
#

could anyone please help me

sterile lantern
#

really big number?

hollow sedge
#

So?

eternal osprey
#

how do i connect mongodb to my application

hollow sedge
#

Do that times 3 then

sterile lantern
crimson vapor
#

don't do it like that imo

#

do it

sterile lantern
#

oh just a regular calculation?

hollow sedge
#

Ok do that * 3

crimson vapor
#

1000 * 60 * 30

sterile lantern
#

oh

hollow sedge
#

yeah

sterile lantern
#

ok

hollow sedge
#

You shouldn't need a calculator for that anyway lol

crimson vapor
#

I prefer to use multiplication so its easy to tell how much it is

hollow sedge
#

It's 1800000

#

Yeah

crimson vapor
#

yep

#

makes it easy when you see 3 values multiplied rather than like 18 milion or whatever that is

earnest phoenix
#

means you're not sending valid video data

#

for it to embed

#

or you've got the wrong extension

digital ibex
#

i need to convert it to mp4

#

yeah wrong extension

earnest phoenix
#

i suggest ffmpeg to easily convert

digital ibex
#

okay ty

earnest phoenix
#

hey

#

how can i make my bot send a message to all members

#

?

#

you don't

mellow kelp
#

you really don't

earnest phoenix
#

why would you in the first place

#

it's for an oficial bot that is only in one server

#

oficial for that server

#

they want to have a command that sends an announcement to all members

#

@everyone exists for a reason

#

Ya ik

#

but they would have that command

#

simply tell them "no❤️"

#

mass dming members goes against the TOS and will get the bot flagged

hollow sedge
#

There's no point in sending a message to each member

lusty quest
hollow sedge
#

If they don't see the mention then they probably don't care about the message

earnest phoenix
#

this tbh

#

dming people will do nothing but provoke anger and make them more likely to report the bot

lusty quest
#

also if i would get a DM from a Bot relaying a @ everyone i would just block the bot

autumn pecan
#

@earnest phoenix

hollow sedge
#

Nice

digital ibex
#

so @earnest phoenix is there anyway i can do it without having the video on my pc? like the video is at mywebsite.com/video ?

earnest phoenix
#

you have to download it

#

you don't have to actually save it on your pc though

#

just download the video into memory in code

#

i did that with the screenshot i sent you

digital ibex
#

how do i do that?

earnest phoenix
#

which language are you using

digital ibex
#

js

earnest phoenix
#

and you need to convert the video to mp4 and then send it, yeah?

digital ibex
#

yeah

reef basin
#

anyone having problem with client login rn?

earnest phoenix
#

well, i'd suggest using ffmpeg for this

now with ffmpeg there are two ways, easier and harder way

easier way, saving to a file:
start ffmpeg with these args
-i url ./some_unique_id_you_generated_in_your_code.mp4
and once ffmpeg kills itself, you know the download finished
upload the said file
delete it

harder way, piping directly into your code, no saving into files:
start ffmpeg with these args
-i url -f mp4 pipe:1
the output of ffmpeg will now be piped to stdout, once ffmpeg finished the data in stdout can directly be read from your code and sent to whatever library to upload

digital ibex
#

okay, i'll prob just use the first way

sterile lantern
#
if (args[0] === "Programmer" | "programmer")```
this doesnt work, but how would i make it so it does either choice
digital ibex
#

ty

sterile lantern
#

so if args 0 is programmer or Programmer then it is fine

earnest phoenix
sterile lantern
#

k

earnest phoenix
sterile lantern
#

ah it was two i thought it was one

cinder patio
#

That's not the only problem

mellow kelp
#

that's a bitwise operation KEKW

earnest phoenix
#

i've seen worse

#

people thinking math notation can directly be translated into code

#

i.e. power of, which in math notation is ^

#

but in programming, it's XOR

#

lol

sudden geyser
#

What does ^ do anywawy

pale vessel
#

at least + is a thing

earnest phoenix
#

it's exclusive or

mellow kelp
#

either one or the other one can be true for the result to be true

earnest phoenix
#

^

mellow kelp
#

not both, not none

#

oh and it doesn't return true or false

#

it returns 1 or 0

earnest phoenix
#

yuh

#

bitwise operations

mellow kelp
#

yea

#

<<

#

|

#

&

#

~

#

^

earnest phoenix
#

i remember discovering bit shifting and using it everywhere because it was a great way to intimidate teachers for something simple

#

like multiplication

#

lol

weary widget
#

I don't know if this is the right channel but for my bots long description when i write it like this it doesn't make new lines. does anyone know how to make new lines on the long bot description (top.gg)

mellow kelp
#

for new lines you have to separate stuff with two newlines

#
Line 1

Line 2

Line 3
weary widget
#

oh

#

thanks

cinder patio
weary widget
earnest phoenix
#

there's certain sizes markdown provides, headings

mellow kelp
#

CSS

#

*css

earnest phoenix
#

but if you want direct control, html and css ^

weary widget
#

ok

pale vessel
#

counter-strike source obviously

mellow kelp
#

exactly

weary widget
#

oh duh im stupid

#

of course its counter strike source

#

🤦

sterile lantern
#

how do you math.floor a random number between two certain integers

#

e.g: 100-150

#

wouldn't it be like *100 + 151 (maybe idk not sure)

kindred igloo
#

how to check if a user is voted on my bot on top.gg?

mellow kelp
sterile lantern
#

pretty sure there's a api

#

yea

mellow kelp
sonic lodge
sterile lantern
#

range? as in like 50

sonic lodge
#

yeah

sterile lantern
#

so 100-150, (50 + 1) + 100

sonic lodge
#

mhm

sterile lantern
#

kk ty

cinder patio
#

that doesn't look right

sonic lodge
#

is it wrong?

cinder patio
#

no your answer isn't but what samm said afterwards is

sonic lodge
#

oh

kindred igloo
#

How do I get this thing?
/bots/{bot.id}/check

earnest phoenix
#

library?

kindred igloo
#

yeah

#

vote library

earnest phoenix
#

wut

#

wich library are you using?

kindred igloo
#

python

earnest phoenix
#

oh

#

idk about python

#

sorry

mellow kelp
#

use requests

kindred igloo
#

well, It's okay

hollow sedge
#

No

#

Use aiohttp

#

It's async

sterile lantern
#
let jobchoices = ['programmer', 'Programmer', 'Tech', 'tech']```
How would I check for these values in args
mellow kelp
#

o

hollow sedge
#

Just use .lower()

#

Or .toLowerCase()

sterile lantern
#

yeah ill do jobchoices.toLower()

#

but

#

how exactly do i check for these values in args

hollow sedge
#

Get the arg and use .includes

mellow kelp
#

what do you mean by checking

sterile lantern
#

so if args = jobchoices, carry on. if args != job choices send that they provided an invalid job

#

ah

#

includes alright

mellow kelp
#

hol up

#

you can't compare arrays or objects

#

so you gotta manually compare if every arg is equal to its jobchoices equivalent

modest smelt
#

hi

earnest phoenix
#

somebody there

#

hi

#

cant wait for slash commands to be released on discord.js v13

#

Does somebody has a example for bot web page with auth

#

slash commands are a joke

#

just a utility to jerk off with

mellow kelp
#

lmao yes

earnest phoenix
#

@earnest phoenix IT IS WHAT IT IS

mellow kelp
#

bruh

crimson vapor
#

they are so inefficient

#

it would be so much nicer if there was gui for it

#

and all you had to do was set an endpoint for a command

#

like /bot/commands/help

earnest phoenix
#

@crimson vapor what?

crimson vapor
#

/ commands

earnest phoenix
#

they have a UI to guide users

crimson vapor
#

barely

earnest phoenix
#

what are you talking about

crimson vapor
#

did something change?

earnest phoenix
#

discord aint good enough to make their own bot hosting/dashboards/configuring/anything that can be done with code

sudden geyser
#

what

crimson vapor
#

I mean

#

it would be nice to just be able to create a new command in the bot application dashboard and set the arguments and endpoint

pale vessel
#

make your own

#

I'm sure they're working on it

crimson vapor
#

hopefully

pale vessel
#

It's still on its early stage

sudden geyser
crimson vapor
#

thats what I assumed was going to be added

#

which is why I thought it was a good idea

earnest phoenix
#

Yes but that means there will be bigger noobs making bots

sudden geyser
#

that's not a good reason to not have it

earnest phoenix
#

I've dealed with too many

earnest phoenix
sudden geyser
#

no

#

I don't like the web

crimson vapor
#

but if they do add it

#

no more selfbots?

earnest phoenix
#

There will still be

crimson vapor
#

because realistically you wouldn't be able to selfbot with these / commands

earnest phoenix
#

did u do that serverside

earnest phoenix
#

you can autoclick on stuff in the UI and BAM selfbot done

crimson vapor
#

because a user can't have / command endpoints

sudden geyser
#

oh

earnest phoenix
#

how i can add me bot

pale vessel
#

Invite it

earnest phoenix
#

i dont have perms

#

send client?

hollow sedge
#

But it's your bot?

crimson vapor
#

we don't invite bots to this server

earnest phoenix
#

You need MANAGE_SERVER permission in the specific server to add the bot

#

And if you're talking about this server then read what MILLION said

#

?

hollow sedge
#

Very descriptive about what you don't understand

pale vessel
#

?

crimson vapor
#

hmm

earnest phoenix
#

i am UA

pale vessel
#

hey UA

crimson vapor
#

I am US

hollow sedge
#

Hi US this is CA

earnest phoenix
#

I am IN

#

hai IN

crimson vapor
#

lol

tawny oar
#

i could not find a working way to get all text channels in discord.py

#

i have managed to fetch every channel but i just need to get text channels anyone knows how?

#

currently i am using client.get_all_channels()

pale vessel
#

Isn't there something like utils.get(channels, key) or something

hollow sedge
#

Yes

pale vessel
tawny oar
#

let me check

earnest phoenix
#

btw @pale vessel my reaction collector still no work

pale vessel
#

you can pass in a lambda

tawny oar
#

ah

#

thanks bud

earnest phoenix
#

*reaction collector

modest smelt
#

YES MY BOT GOT APPROVED!

pale vessel
#

Congrats

mellow kelp
#

epic

modest smelt
#

ty

hollow sedge
modest smelt
#

?

#

wdym

#

@hollow sedge

hollow sedge
#

Almost 13 hours

modest smelt
#

eh it is just open

hollow sedge
#

Lol

modest smelt
#

i dont really code too much on there

#

anyways IM SUPER HAPPY

earnest phoenix
#

Thank God discord.js has less weebs and more pogeyrammers and they helped me fix my reaction collector

unlike some dbl i could mention

sudden geyser
#

okie

fresh sky
#

I need help with the top gg api
when I start the program it ends
python btw

pale vessel
#

and you probably shouldn't ask to ask

#

it's pointless

blazing portal
#

Hey guys, so I am a bit confused with a partial. So I have the partials USER, MESSAGE, GUILD_MEMBER and REACTION enabled. (And i have the intents enabled etc.)
However, if a guildMember is not in the cache, the guildMemberUpdate event does NOT fire, even with the partials. Am i missing something?

willow mirage
#

@pale vessel need help rly fast

pale vessel
#

how fast?

willow mirage
#

how ur sitemap.xml look like?

pale vessel
#

I don't have one

willow mirage
#

what

pale vessel
#

what

mellow kelp
#

what

willow mirage
#

how u post ur website to google search

mellow kelp
#

SEO

willow mirage
#

i thought u need a sitemap

lyric mountain
#

Runtime error: "what" created an infinite loop

earnest phoenix
#

sitemaps make the search better they aren't a necessity

willow mirage
#

oh

snow urchin
#

why when I react ONCE, nxt.on("connect", ...) runs like 4 times?

lyric mountain
#

oh my

mellow kelp
#

yo what happened to noImplicitAny

crimson vapor
lyric mountain
#

also, WHERE is that code?

#

inside a command?

snow urchin
#

mhmm

crimson vapor
#

I hope so

snow urchin
#

😄

crimson vapor
#

callbacks go brrrrr

mellow kelp
#

oh god

lyric mountain
#

why does "no results" have buttons tho?

snow urchin
#

description: "No tracks were found relating to your search query, submit request anyways?",

lyric mountain
#

anyway, first of all try to reduce your collectors to a single collector, it might help with ur issue

earnest phoenix
#

this code is on spanish but i wanna know why all constants doesn't get executed....

client.on('message', async message => {
  if (message.content = prefix + 'encuesta') {
    if (message.author.bot) return;
    let channel = message.channel;
    let autor = message.author;
    async function askQuestion(question, authorId) {
        channel.send(question);
        autor.id;
       
        const filter = m => m.author.id === authorId
        const collected = await channel.awaitMessages(filter, { max: 1 });
      
        return collected.first().content;
      }
    const emoji1 = await askQuestion(`Muy bien ${autor.username}, ¿Cuál será el emoji de la opción 1?`);
    const opcion1 = await askQuestion(`Ok, ya tengo el emoji, ahora, ¿cuál será el mensaje d ela opción 1?`);
    const emoji2 = await askQuestion(`Ok, ahora, ¿cuál será el emoji de la opción2?`);
    const opcion2 = await askQuestion(`Listo, ahora, ¿cuál será el mensaje de la opción 2?`);
    const pregunta = await askQuestion(`Listo, y finalmente ¿cuál serál el mensaje?`);
    let embed = new Discord.MessageEmbed()
       .setAuthor('Nueva encuesta:')
       .setDescription(pregunta)
       .addField('Opción I', `${emoji1} ${opcion1}` )
       .addField('Opción II', `${emoji2} ${opcion2}`)
       .addField('Opción III', ':middle_finger: Me vale pipí')
       .addField(':warning: Aviso :warning:', 'si ves algún error en este comando repórtalo a Barnie#7063')
       .setColor("PURPLE")
       .setTimestamp()
        message.channel.send(embed)
       .then(m => {
        m.react(emoji1);
        m.react(emoji2);
        m.react("🖕");
       });
  }
});
lyric mountain
#

you're not sending the embed

earnest phoenix
#

the only constant that get executed is emoji1

#

bruh

#

the embed isn't the problem

lyric mountain
#

does ur log have any error?

earnest phoenix
#

nope

lyric mountain
#

what is inside "askQuestion" method?

earnest phoenix
#

it's an function

lyric mountain
#

ik

#

what is inside it?

earnest phoenix
#

just check out the code

lyric mountain
#

oh, function inside callback

earnest phoenix
#

ya

#

mmm

#

does anyone know how to help me?

lyric mountain
#

ok, so why did u create an async function exactly?

#

like, you're already awaiting for the value inside it

earnest phoenix
#

i wanna make a poll command

earnest phoenix
#

oh

#

so

#

it's not neccesary to make that function async

#

?

#

oh no

#

it's neccesary

#

there is an await inside the function

snow urchin
pale vessel
#

.get("➡️")

#

duh

lyric mountain
#

idk how to answer that barnie, the whole thing doesn't look right. I'll leave that to someone more experienced with node

snow urchin
#

tried that but it returned undefined, prob had a typo

earnest phoenix
#

@pale vessel may you help me?

pale vessel
#

i had a headache reading that, sorry

#

too much for me

earnest phoenix
#

ok...

pale vessel
earnest phoenix
#

that's not the problem, the authorId is inside the function

#

i wanna know why all constants doesn't get executed

pale vessel
solemn latch
#

autor.id; makes no sense

lyric mountain
crimson vapor
#

autor

snow urchin
earnest phoenix
#

it's defined

solemn latch
#

show us where please

pale vessel
#

Clearly not

earnest phoenix
#

the ScreenShot is loading

#

wait

#

done

crimson vapor
#

show the context

#

if its in a function it won't work

pale vessel
#

but you're using authorId

#

not autor

crimson vapor
#

if you want you can use hastebin

earnest phoenix
pale vessel
#

Just use message.author.id directly

#

Making a variable like that is pointless

earnest phoenix
#

oh right

pale vessel
#

Ah yes, I see that you're a lazy developer as well 'Pings the user when the reminder is set',

#

Copy pasted from another command?

earnest phoenix
#
client.on('message', async message => {
  if (message.content === prefix + 'encuesta') {
    if (message.author.bot) return;
    let channel = message.channel;
    let autor = message.author;
    async function askQuestion(question, authorId) {
        channel.send(question);
        message.author.id;
       
        const filter = m => m.author.id === authorId
        const collected = await channel.awaitMessages(filter, { max: 1 });
      
        return collected.first().content;
      }
    const emoji1 = await askQuestion(`Muy bien ${autor.username}, ¿Cuál será el emoji de la opción 1?`);
    const opcion1 = await askQuestion(`Ok, ya tengo el emoji, ahora, ¿cuál será el mensaje d ela opción 1?`);
    const emoji2 = await askQuestion(`Ok, ahora, ¿cuál será el emoji de la opción2?`);
    const opcion2 = await askQuestion(`Listo, ahora, ¿cuál será el mensaje de la opción 2?`);
    const pregunta = await askQuestion(`Listo, y finalmente ¿cuál serál el mensaje?`);
    let embed = new Discord.MessageEmbed()
       .setAuthor('Nueva encuesta:')
       .setDescription(pregunta)
       .addField('Opción I', `${emoji1} ${opcion1}` )
       .addField('Opción II', `${emoji2} ${opcion2}`)
       .addField('Opción III', ':middle_finger: Me vale pipí')
       .addField(':warning: Aviso :warning:', 'si ves algún error en este comando repórtalo a Barnie#7063')
       .setColor("PURPLE")
       .setTimestamp()
        message.channel.send(embed)
       .then(m => {
        m.react(emoji1);
        m.react(emoji2);
        m.react("🖕");
       });
  }
});
#

done?

pale vessel
#

TIAS

blazing portal
#

message.author.id; still doesn't make any sense

gloomy python
earnest phoenix
#

?

gloomy python
#

I just noticed all the commands have the same description lol

pale vessel
#

Just change authorId to message.author.id?

earnest phoenix
#

oh right

blazing portal
#

You're not declaring anything there.

lyric mountain
#

you're not declaring it actually, just calling it and doing nothing with the returned value

pale vessel
#

quite big brain

lyric mountain
#

it'll never reach the next statement

#

because it'll never equal m.author.id === undefined

earnest phoenix
#

oh

#

so

solemn latch
#

that is, which is what flaze originally said @lyric mountain

earnest phoenix
#

?

lyric mountain
earnest phoenix
#

coding on mobile is a fucking curse
i have to type super slow else my code will fuck up with random shit

#
client.on('message', async message => {
  if (message.content === prefix + 'encuesta') {
    if (message.author.bot) return;
    let channel = message.channel;
    let autor = message.author;
    async function askQuestion(question, authorId) {
        channel.send(question);
       
        const filter = m => m.author.id === message.author.id;
        const collected = await channel.awaitMessages(filter, { max: 1 });
      
        return collected.first().content;
      }
    const emoji1 = await askQuestion(`Muy bien ${autor.username}, ¿Cuál será el emoji de la opción 1?`);
    const opcion1 = await askQuestion(`Ok, ya tengo el emoji, ahora, ¿cuál será el mensaje d ela opción 1?`);
    const emoji2 = await askQuestion(`Ok, ahora, ¿cuál será el emoji de la opción2?`);
    const opcion2 = await askQuestion(`Listo, ahora, ¿cuál será el mensaje de la opción 2?`);
    const pregunta = await askQuestion(`Listo, y finalmente ¿cuál serál el mensaje?`);
    let embed = new Discord.MessageEmbed()
       .setAuthor('Nueva encuesta:')
       .setDescription(pregunta)
       .addField('Opción I', `${emoji1} ${opcion1}` )
       .addField('Opción II', `${emoji2} ${opcion2}`)
       .addField('Opción III', ':middle_finger: Me vale pipí')
       .addField(':warning: Aviso :warning:', 'si ves algún error en este comando repórtalo a Barnie#7063')
       .setColor("PURPLE")
       .setTimestamp()
        message.channel.send(embed)
       .then(m => {
        m.react(emoji1);
        m.react(emoji2);
        m.react("🖕");
       });
  }
});
#

now?

lyric mountain
#

still wont work

#

ah, wait

earnest phoenix
#

learn javascript P L E A S E

lyric mountain
#

it might work

#

might

earnest phoenix
#

let's try

solemn latch
#

i dont know how functions defined in functions work tbh

#

never done it

lyric mountain
#

not a good thing actually

#

too much overhead

solemn latch
#

didnt know js wouldnt error out doing it

#

lmao

snow urchin
#

what would be the correct way of using .get() for an reaction on a message, both of these return undefined

msg.reactions.cache.get(":arrow_right:")
msg.reactions.cache.get("➡️")

earnest phoenix
#

IT WORKS!

#

@snow urchin snowflake

#

thx guys!

cinder iron
#

wait

earnest phoenix
#

THX!

cinder iron
#

i need helo

#

for my bo

lyric mountain
earnest phoenix
#

hello

cinder iron
#

help

earnest phoenix
#

there you go

solemn latch
#

we cant help without a question

earnest phoenix
#

free hello for your bo

lyric mountain
cinder iron
#

the thing is i cant add any commands

#

besides the hello thing

earnest phoenix
#

BRUH

#

ANOTHER USELESS BOT AMIRITE

lyric mountain
#

oh my

earnest phoenix
#

bruh

lyric mountain
#

token

earnest phoenix
#

@cinder iron token leak yaay

lyric mountain
#

E X P O S E D . E X E

earnest phoenix
#

delete message

solemn latch
#

@drowsy crag delete token plox

lyric mountain
#

@flat pelican

#

plz

#

save this soul

earnest phoenix
#

bro is this guy even listening

cinder iron
#

done

gloomy python
#

Anyone?

blazing portal
#

I am a bit confused with a partial. So I have the partials USER, MESSAGE, GUILD_MEMBER and REACTION enabled. (And i have the intents enabled etc.)
However, if a guildMember is not in the cache, the guildMemberUpdate event does NOT fire, even with the partials. Am i missing something?

lyric mountain
#

nvm karen, issue solved

solemn latch
#

partials are not intent related are they 🤔

#

partials are just partial data

earnest phoenix
#

nope

crimson vapor
#

poggers free token

blazing portal
#

my bad, i meant to write partials

earnest phoenix
#

@gloomy python what is generateEmbed

lyric mountain
#

@cinder iron send ur code again, but remove the token from it before posting

#

btw, regen it

#

NOW

#

someone might have grabbed it already

flat pelican
#

uhm

crimson vapor
#

dw no one got it

flat pelican
#

Please reset your token to stay safe

solemn latch
#

i already regened it @lyric mountain ;p

blazing portal
#

But my point is, I have the partial enabled, yet the event is not firing with an uncached member and I can't understand why

earnest phoenix
#

Do you actually think people understand

cinder iron
#

ok

crimson vapor
#

wait Woo did you force regen it?

solemn latch
#

yeah

crimson vapor
#

post in testing channels?

#

or to github

solemn latch
#

nah, github

crimson vapor
#

wow

#

to what repo lmao

earnest phoenix
#

Woo is our saviour

lyric mountain
#

lul wtf

earnest phoenix
#

🙏

solemn latch
#

woos token leak github

#

;p

lyric mountain
#

TIL github triggers discord instantly

crimson vapor
#

I once found someone's token in their gh repo releases

#

it was kinda funny

solemn latch
#

it does

gloomy python
solemn latch
#

he should have got a dm instantly

#

or nearly instantly

cinder iron
#

yes

#

i did

earnest phoenix
#

When a kid tells you that they hacked into your bot by finding your token on github, i am speechless

crimson vapor
#

thats what I did

#

smh

#

checked some whitenames gh repo releases

#

and there was config.json

lyric mountain
#

"Haha you got hacked cuz Im big hackerz git gud noob Im a hacker"

crimson vapor
#

stored in plaintext

cinder iron
#

ok

earnest phoenix
#

fuck wrong emote, greennames dont deserve star

lyric mountain
#

we just joking, calm down

mellow kelp
#

lmao i just came back and this looks like a warzone of code

lyric mountain
#

that's what 99% big hackerz do

solemn latch
#

did you know bot reviewers have less perms than bot devs pandasad

#

i lost my video stream privileges when I removed my bot

earnest phoenix
#

SELF BOT DETECTED

#

WHEN I PRESS TICK IT REACTS TOO

solemn latch
#

oo

#

gettem mods

lyric mountain
#

true

mellow kelp
#

oo

lyric mountain
#

@flat pelican come here cutie

cinder patio
#

But it's a bot not a selfbot...

earnest phoenix
#

the fuck

mellow kelp
#

bruh which lakuna is it

#

this is why i hate bots with the same username as their devs

cinder patio
#

Look at the reactions list and you will see it have the bot badge

mellow kelp
#

o

earnest phoenix
mellow kelp
earnest phoenix
#

Btw, after a week I'm finished developing the core features of my bot and am now ready to submit it to the queue

also @marco_rennmaus | Rennmoose2#7328 special thanks for approving my first bot

#

Is it just me or are pings and mentions and emotes having a cancer

cinder iron
#

ok

earnest phoenix
#

@slender thistle discord being discord moment pog

cinder iron
#

import discord
from discord.ext import commands
from dotenv import load_dotenv

load_dotenv()

client = discord.Client()
cp = '-'
client = commands.Bot(command_prefix = cp)
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))

@client.command()
async def hello(ctx, message):
print('Test sucess')
await ctx.channel.send('Hello' + ctx.author.name + '! Your message was ' + message)

@client.event
async def on_message(message):
if message.author == client.user:
return

if message.content.startswith('$hello'):
    await message.channel.send('Hello!')

client.run(TOKEN)
anyways how can u make it so it say something other than hello

#

hopefully i didnt leak my token

pale vessel
#

Change hello to something else

cinder iron
#

yes i did

earnest phoenix
#

🤯

cinder iron
#

tho it says error

earnest phoenix
#

do you know basic python

cinder iron
#

well

earnest phoenix
#

or are you doing this the first time in your life

cinder iron
#

well

earnest phoenix
#

rhetorical

cinder iron
#

yes

mellow kelp
#

well

#

well

#

well

earnest phoenix
#

well

opal plank
#

lmao, this channel never ceases to amuse me

earnest phoenix
opal plank
lyric mountain
#

first time dev

#

again

mellow kelp
#

yea

opal plank
#

hmmm isee

#

finally finished a 4 day spree of coding

earnest phoenix
opal plank
#

came here to help some people with dev but it seems its only py nowadays

mellow kelp
#

probably because "python looks better for beginners"

opal plank
mellow kelp
#

lmao agreed

earnest phoenix
#

agreed

lyric mountain
#

python is cool and all but...ain't it a hell to make bots with?

#

also threading

earnest phoenix
opal plank
#

only thing i value py for is arduinos

#

that's about it

lyric mountain
#

py is also dope for file IO

mellow kelp
#

i tried to make a bot with python and after 1 hour managed to make a proper command handling system

sudden geyser
#

It's very easy if you're making a simple bot.

earnest phoenix
#

only thing i value py for is <undefined> // i dont value py

opal plank
#

doesnt py have cogs by default though?

sudden geyser
#

yes

earnest phoenix
sudden geyser
#

If you value performance you aren't going to use Python or JavaScript.

earnest phoenix
#

I must have written 100 lines of code for my fucking help command

opal plank
#

yes, if you dont use scratch or haskell, you doing it wrong

lyric mountain
#

I think the issue is that python is overused for the wrong niche

#

like, IO/AI/automation? sure, go on

opal plank
#

py seems like the js of community. Got a problem? theres already a solution type of deal, do it all by stackoverflow'ing

earnest phoenix
flat pelican
#

huh

sudden geyser
#

Yeah Python's not the best language for AI/IO/machine learning/etc., but it has the most support for it, so people just end up using it regardless

flat pelican
#

@remote sluice

opal plank
#

Py seems meh at everything , at first glance, just like js, there are libs and shit pre-done for everyone, this is why i think it may be more "noobie friendly"

lyric mountain
#

issue has already been solved...again

earnest phoenix
#

Karen has joined the chat

r u n

opal plank
#

seems MEH at everything, but CAN do almost everything

flat pelican
#

I don't see any mute case

#

anyways

lyric mountain
#

turns out it was a bot double-reacting to any checkmark reaction

earnest phoenix
#

python is basically js with extra steps

mellow kelp
#

and indent hell

lyric mountain
#

we thought it was a selfbot

#

see

earnest phoenix
#

but bots aren't supposed to work outside testing channels tho

mellow kelp
#

how is indent supposed to be easier than brakcets?

opal plank
#

wait what

#

selfbot

sudden geyser
#

A lot of people label languages unfairly to dismiss it, like that one person who says C/C++/Rust sucks because they couldn't understand it after 30 seconds

earnest phoenix
#

Shivaco is gonna be so angry when he sees this chat

opal plank
#

since when can bots even react on other channels?

#

oh, they cant CREATE reactions

earnest phoenix
opal plank
#

but they are allowed to react

#

thats kinda dodo ngl

lyric mountain
#

there's no perm to prevent reacting on a reaction

earnest phoenix
opal plank
#

if they could create reactions i should be able to do this though

sudden geyser
#

No I'm not.

opal plank
#

n.reload

#

yeah, cant react here

#

i thought there was a permission to prevent that though

lyric mountain
#

you expected too much from discord

opal plank
#

fair argument

earnest phoenix
#

...why should there be?

opal plank
#

why wouldnt there be? a bot not being able to do anything in a channel but still react?:

#

seems a bit off, breaks the sense of "containment"

mellow kelp
#

lmao im checking the python docs

earnest phoenix
#

@opal plank we're in top.gg and we see the point but no other server sees the point

mellow kelp
#

cant stop reading "whet your appetite"

earnest phoenix
#

and we're removing all bots anyways

mellow kelp
#

imagine a programmer literally whetting their appetite by looking at a new programming language

opal plank
#

ngl that has been said more than a month ago

earnest phoenix
opal plank
#

is there any reason to wait?

lyric mountain
#

like, offline/online/dnd

opal plank
#

how is that related?

lyric mountain
#

luca tracks them all

opal plank
#

but... why?

lyric mountain
#

if the bot ain't here they can't know the status

mellow kelp
#

really

#

y?

lyric mountain
#

I suggested for them to implement the status tracking in @pliant gorge

#

since 99% legit bots also have DSL for support server

opal plank
#

why not move all bots into another test server and have Luca there then? just like the test servers?

misty sigil
#

mine does

lyric mountain
opal plank
#

so?

#

add on multiple

cerulean ingot
#

which list of bot ideas should i make:

  • a bot for everything, like moderation economy suggestions and stuff like that
  • advanced suggestion bot
  • advanced member count bot
  • advanced global economy bot
  • guess the number bot
  • other
opal plank
#

not like luca has a limit of 100 guilds like we do

lyric mountain
#

do you know how many servers there would be?

strong igloo
#

with so many bots making servers would get old fast I'm sure

earnest phoenix
#

How do some bots get the admin permission AND other permissions on their invite page

opal plank
#

a bunch, still wouldnt be an issue to have a bot in 100 servers

mellow kelp
opal plank
#

not like anyone checks em after you verify either way

lyric mountain
#

100 servers would be 5000 bots

#

top.gg has way more than 5k bots

earnest phoenix
#

No I meant the admin permission disables other permissions being shown on the bot invite page

mellow kelp
#

thats kinda impossible

earnest phoenix
#

But mee6 has an option for admin AND the other perms it needs

opal plank
#

groovy same

#

rythm same deal iirc

lyric mountain
#

copy the invite's perm code

#

then try using at ur bot invite

opal plank
#

cant see those big bots giving 2 f's about invites or not since they pay to be advertised

#

prob get priviledged treatment

earnest phoenix
opal plank
#

yeah, see?

#

check rythm, pokecord, and those other big bots

#

i assume its all the same crap

earnest phoenix
#

but how are they doing this?

opal plank
#

wdym?

misty sigil
#

pokecord being dead

earnest phoenix
#

time to read api docs

opal plank
#

bruh thats just a flag

misty sigil
opal plank
#

number 8 iirc

lyric mountain
opal plank
#

yeah lmao

misty sigil
#

????????????????????????????????????????????

mellow kelp
opal plank
#

ADMINITRATOR is its own flag

#

8

mellow kelp
#

it gives permission number 8 regardless of anything else iirc

misty sigil
#

admin is 8 and you can add more to 8

mellow kelp
#

yea

buoyant plank
#

Does anyone know how can I get a user object from Discord given the user ID with Discord.js?

I need to retrieve the avatar URL of someone who is not the message author and I don't know how to do it

earnest phoenix
misty sigil
#

<client>.users.fetch

opal plank
#

^^

earnest phoenix
#

so whatever i select after admin it will always say 8

opal plank
#

try get() first

#

on cache

buoyant plank
#

ty

mellow kelp
#

i mean

buoyant plank
#

I'll try it out

earnest phoenix
#

dont know how to manually do

opal plank
mellow kelp
#

you can calculate the permissions by hand

misty sigil
#

you just calculator it

opal plank
mellow kelp
#

(i mean manually)

#

yea

#

I also made one KEKW

opal plank
#

i do my things by hand

earnest phoenix
#

bruh this one also disables everything if admin is selected

mellow kelp
opal plank
#

before i knew d.js had an internal decoder

earnest phoenix
#

WAIT WHAT

#

HOW

mellow kelp
#

wat

earnest phoenix
#

IT DOESNT DO THE SHIT THE NORMAL OAUTH GENERATOR DOES

opal plank
#

wdym how, how the fuck have you created ur invite for your bot if you dont know about permission?

lyric mountain
#

here

#

try this perm flag

opal plank
mellow kelp
#

ooo

lyric mountain
#

see?

mellow kelp
#

that bot thing is pretty cool

opal plank
#

the way discord deals with that is with bitfield

#

funny enough, i made that by hand cuz i didnt realise d.js had one

mellow kelp
earnest phoenix
mellow kelp
#

epic

lyric mountain
#

games

pale vessel
#

.com

lyric mountain
#

/store/en-US/free-games

pale vessel
#

SO TRUE

#

lowkey go there everyday to check

mellow kelp
earnest phoenix
#

or just follow r/freegames

tired panther
#

I want to make a reminder, should I use date.now() or are there helpful npm packages ?

cerulean ingot
#

which bot idea should i make from the list:

  • a bot for everything, like moderation economy suggestions and stuff like that
  • advanced suggestion bot
  • advanced member count bot
  • advanced global economy bot
  • guess the number bot
  • other
pale vessel
#

other

#
  • a bot for everything, like moderation economy suggestions and stuff like that
    never this
tawny oar
#

Guys whats the best way in python to shut down the bot i want bot to do some executions on ready then close itself

tawny oar
#

Is it like bot.exit() like ?

lyric mountain
#

make a shutdown method, then at the end of it use exit

#

it'll shutdown the proccess

graceful dock
#

Or you can disconnect the client

tired panther
#

or plug off ur pc 🤣

sudden geyser
cerulean ingot
#

i dont know what else to do tho

#

its in 85 servers

sudden geyser
#

Are you adding on to the bot

strong igloo
#

do you have a suggestion command?

#

could add that to see what people want?

sudden geyser
#

You need to add something your users (targeted audience) cares about. General/multi-purpose bots are everywhere, so if your bot is about economy, does it need a suggestions command, or will it be tied to economy somehow?

tired panther
#

why ppl just make same bots, make something unique xD

mellow kelp
#

like

#

if you're making an economy bot, make it unique

#

have it themed around something unusual

tired panther
pale vessel
#

like sans economy bot

#

that sounds unusual enough

mellow kelp
#

yea

tired panther
pale vessel
#

get dunked on

mellow kelp
tired panther
#

xD'

mellow kelp
#

quote of the century

tired panther
earnest phoenix
#

Does any of you speak Turkish?

tired panther
tired panther
#

that means chair xD

earnest phoenix
#

I understood thank you

#

no other ?

#

Someone who can speak turkish

crimson vapor
#

many people speak turkish

earnest phoenix
#

I understand, thank you very much

#

does somebody has a simple auth2 express discord code

#

nothing works

#

pls ping me

umbral zealot
#

You can use passport-discord

zealous osprey
#

I did better description but css doesn't work
why?

umbral zealot
earnest phoenix
umbral zealot
#

No, you can ask whatever question you have here.

#

You wanted an example, it's an example 😛

#

It even has all the comments to understand it.

zealous osprey
earnest phoenix
zealous osprey
strong igloo
umbral zealot
strong igloo
#

if you want help you'll get help but not the exact code

#

oof

earnest phoenix
crimson vapor
#

poggers example

#

should work fine

strong igloo
#

if not working sending the errors would help us narrow down why

umbral zealot
# zealous osprey

remove the headers, footers, all that. You're not doing a full webpage, you're just doing a description. It should be something like ```
<style>
p {
margin-left: 10px;
}
</style>
<p>This is your bot description</p>

no <html>, <head>, etc etc
crimson vapor
#

momentjs KEKW

strong igloo
#

(or try googling the error)

blissful coral
umbral zealot
#

Well you still have work to do to make it right, then

#

remember you are styling both your own content and the entire site by adding CSS, so, make sure you're not actually breaking anything.

lyric mountain
#

what does yardim mean?

#

like, I see it everywhere

zealous osprey
#

help

lyric mountain
#

oh

zealous osprey
#

its turkish

fresh sky
#

They should make a Black List system where any one can ban people who are on ti

jaunty surge
#

guys how do I write a code that can detect a role from a mentioned member inside a server. I try to write a mute role and detect if the user already has muted role

mellow kelp
#

use the member.roles property

jaunty surge
#

member.roles.cache.find?

mellow kelp
#

probably

#

or better member.roles.fetch('id')

jaunty surge
#

ohh

#

okok I will try my best, thank you so much ❤️

mellow kelp
#

no problem

tawny oar
#

How can i get all the text channels ids cannot figure out for like 1 hr
i even forgot how to get all channel ids was using this discord.utils.get(client.get_all_channels()) but now it returns none

opal plank
#

what?

#

@tawny oar discord.js?

crimson vapor
#

hello Erwin

opal plank
#

hello million

crimson vapor
#

nah this looks like py

tawny oar
#

ah sorry py

#

forgot to mention

earnest phoenix
#

How do I do this by inviting my bot to redirect it to my support server?

odd stratus
#

Like an automated message sent to a specific channel of the server once the bot is added?

earnest phoenix
#

all channel ids? [i.id for i in <Bot>.get_all_channels()] christmasthink

hollow sedge
#

Why do you want that

earnest phoenix
#

I have no clue either

tawny oar
#

me?

hollow sedge
#

Yes

tawny oar
#

to iterate inside the chat logs of all text channels

#

i couldn't think of any better solution

cerulean ingot
#

how do i get the amount of ram my bot is using?

#

python

earnest phoenix
#

I smell some sort of api abzoomeyesse

hollow sedge
#

Why do you want the chat logs

cerulean ingot
#

no

hollow sedge
#

What you're asking for is very intensive

cerulean ingot
#

me?

hollow sedge
#

No

cerulean ingot
#

oh ok