#development

1 messages ยท Page 1154 of 1

earnest phoenix
#

Same difference

slender thistle
#

I mean, you can still make a custom function in JS so

#

it's just that Python has it by default

earnest phoenix
#

who is shvaco

misty sigil
#

but you do

#

arrays are based on numbers

slender thistle
#

Array index is an integer

#

Well, yeah. In order to get a random element, you need a randomized index.

#

Which happens to be a random number

slender thistle
#

When I'm free from all my piled up projects

faint prism
#

I feel that

slender thistle
#

what's randomValue?

solemn latch
#

so the same as random.choice(list)?

misty sigil
#

what?

#

thats not how it works?

earnest phoenix
#

what does he need

#

do u need help?

#

bruh stop acting underage, unless u are

solemn latch
#

i also need some lmaos

misty sigil
#

what do you need to do

earnest phoenix
#

you can piss off stop wasting peoples time

misty sigil
#

what do you need?

earnest phoenix
#

be serious

misty sigil
#

just tell me

earnest phoenix
misty sigil
#

what do you need

#

ok

misty sigil
#

randomtext[Math.floor(Math.random() * randomtext.length)]

#

that will do yes

#

that will work

obtuse jolt
#
    "301655085954367490": {
        "points": "55000",
        "access": true
    },
    "301655085954367490": {
        "points": "55000",
        "access": true
    }
}```
#

why no work

#

idc its json

slender thistle
#

@earnest phoenix unless you are willing to actually help, please refrain from posting in this channel

#

thank you

amber fractal
#

wym why no work

#

what about it isnt working

#

just saying why no work doesnt really help

obtuse jolt
amber fractal
#

duplicate key

obtuse jolt
#

shit

earnest phoenix
#

thank you
@slender thistle aight cool

obtuse jolt
#

im so smart

#

sowwy

amber fractal
#

that's pretty helpful

faint prism
#

Something is off suddenly

#

Haven't made a code change

earnest phoenix
#
if (['f1', 'f2', 'f3'].includes(args[0]) args[0](bot, msg, args);
// code of functions..

// -> "args[0] is not a function"
sudden geyser
#

what are you even trying to do

torn ravine
#

if my commands are listed as maps, how would I make them list

sudden geyser
#

and I assume args is an array of strings (Array<String>)

earnest phoenix
#

yes

sudden geyser
#

IF6 what language, and do you want the keys, values, or both

earnest phoenix
#

imma tryna check if there is a function with the name (args[0])

#

and then run that function

torn ravine
#

@sudden geyser my original plan was to use fs to get all the files in each folder

#

and I use js

sudden geyser
#

If you already have the commands saved in memory using fs is unnecessary

torn ravine
#

my commands are in the form of a map

solemn latch
#

so you want them as something else?

torn ravine
#

I'd like to list them for my help command

sudden geyser
faint prism
#

Hm so my mongoDb apparently isn't responding.

torn ravine
#

works

#

I can tell because I console.logged it

faint prism
#

Oh, my public IP changed, wtf

#

That's gonna break the whitelist

ebon kelp
#

Put 0.0.0.0 on the whitelist

#

This allows every ip

faint prism
#

I don't want that

ebon kelp
#

Your public IP changes a lot

solemn latch
#

if you dont have a static ip itll change

#

and keep changing

faint prism
#

I'd have to ask my ISP for a static public IP lol

ebon kelp
#

๐ŸŒŸ Dynamic IP ๐ŸŒŸ

#

They don't give that easily

faint prism
#

But, I'm bothered MongoDB doesn't let me specify my domain that points to my latest IP addr

ebon kelp
#

Because the world ran out of IPv4

faint prism
#

Mhmm, I'm aware of that

ebon kelp
#

They don't just give a static ip to a solo dev for a small project

solemn latch
#

i used to pay for static ip's

#

wasnt too much

ebon kelp
#

Or you have to pay YEP

faint prism
#

Ig a CIDR range will have to do

solemn latch
#

iirc, the isp i use now actually wont give static ip's unless you get a business line.

ebon kelp
#

This ^^

solemn latch
#

which they dont sell to residential homes pandasad

fluid sonnet
#

hey guys i have a question

#

how to create an invtitation on a server by the server id?

misty sigil
#

why would you want that.

fluid sonnet
#

for example make a !createinvite command (the id) and have the bot create an invite on the remote server and reply to my message with invite

#

why would you want that.
@misty sigil for support

ebon kelp
#

Well this is only possible if the bot is in the other server

misty sigil
#

plus uh

#

thats probably not allowed

ebon kelp
#

Inviting people who weren't allowed in the first place thinkmad

slender thistle
#

^

#

It's not allowed

fluid sonnet
#

ah rip

#

thx anyway for yours reponses

torn ravine
#

so if I know my commands are maps, would I use a collection to specify which folder each command is in?

warm marsh
#

commands are maps?

earnest phoenix
#

i cant seem to be able to send dms to users with my bot, im using

message.author.send("Message");
#

but it wont work

#

i get no errors, nothing happens

ebon kelp
#

Do you get an error?

torn ravine
#

commands are maps?
@warm marsh mines are maps

earnest phoenix
#

Do you get an error?
@ebon kelp no

warm marsh
#

You mean you store in a map?

earnest phoenix
#

oh nvm, it works now sry

torn ravine
#

yes i do

thick gull
#

is there a way to include things like discord widgets in github readmes?

earnest phoenix
#

.

sudden geyser
#

are you sharding

earnest phoenix
#

It's fixed - I ran the wrong file.

rose isle
#

i want my bot to send embed message anyone got a code?

earnest phoenix
eternal flame
#

im trying to make a leavechannel system thingy thing that uses mongodb where you can edit the leave message and where the message is sent and i cant quite get it, i cant really show my code because i have none ie just been messing around

drifting wedge
#

what would be like the target thing in python

#

but istead of author

#

like for a ping

rose isle
#

<channel>.send({ embed: embed })
@earnest phoenix
thanks

drifting wedge
#

for a avatar command

#

how can i ping the user

#

like the person whos avatar would show

acoustic bridge
#

I'm looking for some Discord Py help

@client.command()
async def send(ctx, channel, *, content):
    channel = client.get_channel(id)
    await client.send(content)

AttributeError: 'Bot' object has no attribute 'send'.

#

Above my code to send a message to a channel which i pick by the ID and below the error message i get after trying

brittle wind
#

how do i add cmds to my bot?-

slender thistle
#

channel.send

acoustic bridge
#

Error changed to 'NoneType' object has no attribute 'send'

drifting wedge
#

if i were to get the mention of the user or of the name and # of a user

#

what would i do
like im adding a avatar command

#

how do i get the user who was pinged

#

not the author

amber fractal
#

channel is None

misty sigil
#

lib?

drifting wedge
#

pyton

amber fractal
#

meaning the id you passed to get_channel is wrong

acoustic bridge
#

i have my avatar command in an embed

drifting wedge
#

yea

slender thistle
#

if there's even an ID and not literally the id built-in function

drifting wedge
#

im adding that

amber fractal
#

(idk how d.py handles caching so no idea if that could be somethng)

slender thistle
#

somewhat sure there's no way to disable channel caching other than clearing the fuck out of client._channels and client.channels

acoustic bridge
#
@client.command(aliases= ['avatar', "av"])
async def pfp(ctx, *, member: discord.Member=None):
    show_avatar = discord.Embed(
        title = "Showing the Users' Avatar:",
        color = discord.Colour.green()
    )
    if not member:
        member = ctx.message.author
    userAvatar = member.avatar_url
    show_avatar.set_image(url='{}'.format(member.avatar_url))
    await ctx.send(embed=show_avatar)
drifting wedge
#

but how do i add the person who was mentioned

acoustic bridge
#

This is my code for the pfp/avatar command

#

works with id's aswell

drifting wedge
#

yea

acoustic bridge
#

and other id's too

drifting wedge
#

1 sec

#
async def avatar(ctx, *,  avamember : discord.Member=None):
    userAvatarUrl = avamember.avatar_url
    userAvatarMention = avamember.mention

    embed = discord.Embed(
        colour = discord.Colour.blue()
    )
    embed.add_field(name='โ €', value='userAvatarUrl', inline=False)
    embed.set_thumbnail(url=f'https://imgur.com/Pe9nY2r.jpg')
    embed.set_author(name=f"userAvatarMention", icon_url=f"userAvatarUrl")

    embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}")
    embed.timestamp = datetime.datetime.utcnow()

    await ctx.send(embed=embed)```
#

this is mine

#

is the userAvatarMention correct?

#

or o

#

no?

slender thistle
#

Put it in {}

drifting wedge
#
async def avatar(ctx, *,  avamember : discord.Member=None):
    userAvatarUrl = avamember.avatar_url
    userAvatarMention = avamember.mention

    embed = discord.Embed(
        colour = discord.Colour.blue()
    )
    embed.add_field(name='โ €', value='userAvatarUrl', inline=False)
    embed.set_thumbnail(url=f'https://imgur.com/Pe9nY2r.jpg')
    embed.set_author(name=f"{userAvatarMention}", icon_url=f"{userAvatarUrl}")

    embed.set_footer(text=f"{ctx.guild.name}", icon_url=f"{ctx.guild.icon_url}")
    embed.timestamp = datetime.datetime.utcnow()

    await ctx.send(embed=embed)```
#

ill try this

supple sail
#

I need to use a variable while defining an another variable. Is there a way to do it?

earnest phoenix
#

Can you elaborate on that, i didn't exactly understand what you meant, like show an example @supple sail

drifting wedge
#

how do i get a ping from a message

#

im doing a avatar command

#

and i want it to say the pinged users name as the author

slender thistle
#

You might wanna have a look around what you can do with ctx.author (it's technically a member object, but since Member subclasses User, all of the attributes still apply)

earnest phoenix
#

Hi!

solemn latch
#

is there a more efficient way to say emoji's?
im using 1k chars(field size limit) in like 80 emoji's

supple sail
#
let var1 = 5;
let turn{var1} = "some code here"

Is this possible? @earnest phoenix

solemn latch
#

with the <a:emojiname:id> stuff

earnest phoenix
#

How was the code for it to give you an advertisement so that it waits to use the command again? I forgot someone help me please

#

oh how was the code? it was great

#

na jk we don't give out code

slender thistle
#

@supple sail I think you want to create a function

earnest phoenix
#

ok just asking

amber fractal
#

There is no other way to use custom emojis, libs will just evaluate them to <:name:id> if you do placeholders with like toString and what not

solemn latch
#

awh

slender thistle
#

You could list their names, I guess.

amber fractal
#

That's the only way discord's markdown parser recognizes them

slender thistle
#

How was the code for it to give you an advertisement so that it waits to use the command again? I forgot someone help me please
@earnest phoenix Could you please elaborate?

earnest phoenix
#

is that I want a command not to be used several times and to give the user an advertisement to wait to use that command again

#

@slender thistle

slender thistle
#

A command cooldown?

earnest phoenix
#

Yes ye

slender thistle
#

Unless you are not using discord.js, but the general principle stays the same.

earnest phoenix
#

Oops thank you really

slender thistle
quiet wadi
#

Anyone hip with Python and the pymongo package, I'm looking for a way to optimize document searches and fetches. Is there a Pythonic way to check the existence of a document and then grab that document without having to index the whole collection a second time?

#

Right now I use if collection.count_documents({'key': value}, limit = 1) != 0: to find if it exists

slender thistle
#

The way I usually do it is something like this:

data = bot.database.collection.find_one({"bypass_filter": False})
if data is not None:
    # process the document
else:
    # document not found```
#

(I have my database object attached to my bot object, so please don't mind that too much. ๐Ÿ˜„)

quiet wadi
#

Gotcha. I load off a config and pass that around . . . technically mine is the same way too

#

So I see, rather than a conditional on the find operation, you set it right away

#

And that doesn't except if it doesn't find one?

slender thistle
#

find_one returns None if it doesn't find a document passing your filter, so that's why I'm using ifs. ๐Ÿ˜„

quiet wadi
#

Ahh nvm I see. Awesome, thanks!

slender thistle
#

Though, personally I just do if data: to check if anything was returned. Simplicity!

#

๐Ÿ‘

quiet wadi
#

I miss C#'s conditional access

slender thistle
#

Sometimes I want it to exist in Python, too. But... not everything is meant to happen, I guess

solemn latch
#

so, just was doing the math. in order to have every ship asset for battleship, on fire and not on fire, with every rotation, i need to cut, rotate, add background color, add fire ontop of 136 emoji's

#

ahh

#

so glad ezgif exists

earnest phoenix
#

can't you just generate it programmatically

#

loop through all of the assets and generate all possible combos

acoustic depot
#

I miss C#'s conditional access
@quiet wadi u and me both

quiet wadi
#

There's a pretty solid C# library for Discord too . . . But I just can't get off the addiction to hotfixing via discord.py cogs

#

It's just that convenient

trim lark
#

have you tried mongoengine

crystal stream
#

OwO

solemn latch
#

spent 2 hours on something, and i have to trash all of it

#

sad

#

anyone want assets that are supposed to be 5x1, 4x1, 3x1 , 2x1, but are actually not?

amber fractal
#

lmao how did you manage that

solemn latch
#

someone made battleship assets gave them up for free, but gave them in weird aspect ratios

#

like 5x2.2

#

??

amber fractal
#

are they all the same aspect ratios though?

solemn latch
#

no

amber fractal
solemn latch
#

everythings all over the place

amber fractal
#

I was gonna say you could just slice them if they were

solemn latch
#

totally fine if your not making battleship

#

but f

#

found a game that uses these assets, but the squished all the ships to fit

amber fractal
#

is your bot like minigames or smth?

glossy elk
#

Hey

#

Can I ask for uh users to work with me on a bot here?

solemn latch
#

yeah, its just me making a bunch of random games @amber fractal
someone challenged me to make battleship a few months back.
finally got around to it.

#

this isnt really the place to ask.
If you want devs, fiverr or something ๐Ÿคทโ€โ™‚๏ธ

glossy elk
#

I dont want devs

#

I want a partner

solemn latch
#

most partnerships imo are just friends, or people who are already interested in the project.
whens the last time you partnered with someone randomly on a server because they asked? it just doesnt happen often imo.

amber fractal
#

I'm sad, when I was doing cs in school, I made a console version of battleship with cool shit, but they didnt let me retrieve the code

solemn latch
#

awh

#

im real happy with the ai rn.
it beat me twice today

glossy elk
#

here is the thing

solemn latch
#

twice with me actually somewhat trying to win

glossy elk
#

i dont have friends

solemn latch
amber fractal
#

I did make a minesweeper thing tho

#

Still have that

#

It's not exactly minesweeper though, because idk how minesweeper actually reveals the tiles it does when you click lol

solemn latch
#

i was going to do a minesweeper game, but discord games like that are often coordinate based.
so like f4
but often you accidentally do the wrong thing and that seems really frustrating

#

coloring rows and columns specific ways would help, but ah, not worth it

amber fractal
#

well in discord games like that are very hard because rate limits hate people

solemn latch
#

honestly, the ratelimits are not too bad especially since no one uses the bot pandasad

amber fractal
#

I made a procedurally generated 2d dungeon crawler that only has 2 enemies and a broken economy system

solemn latch
#

that seems fun

amber fractal
#

It wasnt lmao

#

I had to do it in some garbage app

#

The thing is fucking 2000 lines long and in some version of js that doesnt have simple stuff

#

I had to manually build in object.values, array.find and array.findIndex

#

Which, granted isnt hard, but still

solemn latch
#

the nice part of not being in any cs classes, can just do what i want

amber fractal
#

Well it was what I wanted to do, the class was just very basic and I had like 5 years of knowledge in cs, but they didnt let me skip it

#

And we couldnt work at our own pace so I literally was doing shit I already knew how to do mmLol

solemn latch
#

isnt that so sad?
plenty of experienced devs probably have taken classes like that.

amber fractal
#

I mean it was free college credit so I'm really not complaining

#

just wish I could've learned a new lang that's actually useful instead of learning the same one again

glossy elk
#

Hey guys question about verification

amber fractal
#

I wouldn't have minded learning C++

glossy elk
#

so I verified and everything

#

but next time I try to verify my bot

#

Do i have to put my id

#

again

amber fractal
#

Shouldnt need to

glossy elk
#

do u know this

#

for sure

amber fractal
#

Well it wouldnt make any sense...

#

your identity is already verified

glossy elk
#

so thats a no

#

?

amber fractal
#

Common sense says yes, but am I 100%? No.

solemn latch
ionic dawn
#

What's a partner for you bot?

#

Like moneyfly ?

earnest phoenix
#

another dev i assume

#

actually nvm

quartz kindle
#

you dont need to put your id again

glossy elk
#

@quartz kindle Now I am confused.

#

Xiuh said you do.

earnest phoenix
#

Tim big brain

#

listen to him

glossy elk
#

ikr

#

he is so big

#

But I found the answer.

earnest phoenix
#

wait he's big?

glossy elk
#

If it's in the same team, then you wont need to enter if it isnt u will have to.

timber frost
#

So I heard that nekos.life api isn't allowed. Is it only for certain things or all of it and does anyone know replacement(s) for it

earnest phoenix
#

for certain images

#

like the one's that can return minors

#

iirc

#

it's against tos/guidelines @timber frost

timber frost
#

hmm, do you know which ones exactly or any ones that are accepted?

solemn latch
#

finally something that works

karmic compass
#

how do i check if something includes something?
i have a message variable that comes from something (not discord) but message.includes("thing") gives me an error.

javascript btw

earnest phoenix
solemn latch
#

message.includes
doesnt make sense i dont think

#

message is an object

#

i think you want the string
message.content.includes

earnest phoenix
#

message.content.includes(...)

#

@karmic compass

karmic compass
#

is that in disc.js or

earnest phoenix
#

wot

#

what's disc.js

karmic compass
#

does message.content.includes work everyone or just in discord.js

timber frost
#

thx

karmic compass
#

sorry i meant discord.js

earnest phoenix
#

np

solemn latch
#

.includes works on any string

#

or array

karmic compass
#

ok so that works

#

nvm

earnest phoenix
#

nekos.club mmulu @timber frost

#

Nekos.fun

timber frost
#

thx

#

I'll look at them later

solemn latch
#

the gaps are because ๐ŸŸฆ
pandasad

#

no real way to fix that because char limits pandasad

opal plank
#

of course there is

#

re-host the emojis with a smaller name

#

a, b, c, 1, 2, a1, a2

solemn latch
#

i passed the 1k char limit of fields with like 80 emoji

#

i need 100

opal plank
#

rename the emojis mah dude

#

to 1 or 2 chars

solemn latch
opal plank
#

it'll lower the total count

solemn latch
#

lets see

opal plank
#

im actually amused rn

#

i managed to make a...
clears throat
FREE NITRO BOT

#

worst part is, i wasnt even meaning to

marsh lava
#

bruh how

solemn latch
#

even with only one custom emoji with just the name b

#

one custom emoji 100x

opal plank
#

why not pass it onto description then?

marsh lava
solemn latch
#

id be passing message char length

opal plank
#

description can hold 2k iirc

solemn latch
#

because i actually need 2 boards

#

i could do 2 messages, but ratelimits

opal plank
#

shouldnt be that bad with 2 messages

#

@marsh lava also, was doing a role play command when it kinda turned out to be a free nitro thing unintentionalyl

solemn latch
#

battleship is pretty fast pace against bot

opal plank
#

one would assume it'd be taking turns

solemn latch
#

or maybe im just skilled ๐Ÿค”

marsh lava
#

that would be a major major bug

solemn latch
#

no pvp yet

#

all of it is against the ai

#

shiet.
couldnt even do it with the 2k char limit

#

22 chars per emoji.
100 emoji
2200 chars

#

i wanted to do images, but games can last 50-70 moves, thats 50-70 images which is just way too much.

#

i might look into the salvo rules of the game to make it shorter, its kindof a long game to play in discord

opal plank
#

why not cache the board and then async change it?

#

rather than creating it every time

split marsh
#

if so how do i fix jsonfile errors

opal plank
#

dont use glitch

#

not for bots

split marsh
#

it still works either way

opal plank
#

'doesnt work' doesnt mean it should work

#

its not a platform for hosting bots

#

period

split marsh
#

yeah but it runs fine

solemn latch
#

its platform abuse

#

๐Ÿค”

split marsh
#

what

opal plank
#

yeah but they also ban you for doing that shit

solemn latch
#

^

opal plank
#

theya ggresively go against botting on their servers

solemn latch
#

they dont want you doing it

#

dont do it ๐Ÿคทโ€โ™‚๏ธ

opal plank
#

use a proper vps

split marsh
#

does it look like i have money

opal plank
#

dan hosting or something, plenty of free shit out there

#

just use stuff PROPER for bots

split marsh
#

damn

#

cant even do anything without getting harassed for using glitch.com

opal plank
#

its shit

#

ยฏ_(ใƒ„)_/ยฏ

split marsh
#

guess i'll ask my friend since it was his idea to do this

opal plank
#

you the one who choose to keep at it knowing its shit

split marsh
#

i literally dont

#

my friend does

opal plank
#

you did

#

move to dan or something else free

#

danHosting or some other free vps

split marsh
#

i'll ask my friend since

#

he is the one that is mainly programming the bot

#

that im making

opal plank
#

Confusing, but im not gonna ask

split marsh
#

i dont know anything about this discord bot

#

thing

opal plank
#

shouldnt they be the one coming here then?

split marsh
#

normally i need help

opal plank
#

but if he's the one coding the bot...?

split marsh
#

i also code the bot too

opal plank
#

hmmm aight

split marsh
#

i just dont know much about discord.js

#

and he is working right now so he cant help

opal plank
#

you know js at least?

split marsh
#

yeah

#

i know how to make commands

opal plank
#

not quite what i meant, but sure

split marsh
#

js isnt my main focus however

opal plank
#

JavaScript the language in general

split marsh
#

im more into lua

#

no

opal plank
#

if its something lib related we can likely help

split marsh
#

whats lib

opal plank
#

if its glitch people, just like i did, will prob tell you to mvoe to a proper vps

#

you said it yourself, discord.js

split marsh
#

oh

opal plank
#

Javascript is a language, discord.js is a library/wrapper

split marsh
#

oh

rancid bramble
#

I am trying to add a serverinfo command but it doesn't give the role and emoji count, can anyone help me with that?

#

instead of role and emoji count it gives this: [object Object]

split marsh
#

try using official discord emojis

earnest phoenix
#

I applaud you for ur patience, when dealing with stuff like this @opal plank

split marsh
#

probably object because

rancid bramble
#

I am not using emoji tho

#

just emoji count

split marsh
#

oh

earnest phoenix
#

Something I lack, unfortunately

opal plank
#

being a programmer requires patience @earnest phoenix lmao

earnest phoenix
opal plank
#

already used to this

split marsh
opal plank
#

@rancid bramble show us a snippet

split marsh
#

im gonna leave

#

thanks for your help atleast @opal plank

opal plank
#

np

split marsh
#

cya

rancid bramble
#

wdym?

opal plank
#

o/

#

a code

solemn latch
#

๐Ÿ‘‹

opal plank
#

whats the code you trying to run

rancid bramble
#

`const { MessageEmbed } = require("discord.js");
const Discord = require("discord.js");

module.exports = {
name: "serverinfo",
category: "everyone",
usage: "serverinfo",
description: "Sends the server info",
run: async (client, message, args) => {
let embed = new Discord.MessageEmbed()
.setColor(RANDOM)
.setTitle("Server Info")
.addField("Owner", (message.guild.owner))
.addField("Members", (message.guild.memberCount))
.addField("Emojis", (message.guild.emojis))
.addField("Roles", (message.guild.roles))
.setTimestamp()
return message.channel.send(embed)
}
};`

opal plank
#

how are you fetching roles and emojis?

#

emojis is a collection iirc

#

same for roles

#

lemem double check

#

you need to access cache

#

otherwise you trying to send a map

solemn latch
#

12.3 came out?

opal plank
#

yes

#

@rancid bramble then you can get the cache size

#

as for roles

solemn latch
#

lmao

#

all the changes

opal plank
#

same thing

#

prob some fixes

rancid bramble
#

you need to access cache
?

solemn latch
#

yeah it was, just being silly

opal plank
#

cache is a Map()

opal plank
#

both roles and emojis return cache

#

which is what you want to be accessing and checking sizeOf

solemn latch
#

what

#

approximate_member_count

opal plank
#

do you know what a MAP is in js?

solemn latch
#

iirc
its just .cache on the emoji manager

opal plank
#

no spoonfeed

#

:C

solemn latch
#

๐Ÿค”

rancid bramble
#

nvm done

#

thanks

opal plank
#

watch as he added that and notices it errors still

solemn latch
#

they added force fetch

#

intresting

#

so itll fetch from discord 100% never from cache if you ask it to

opal plank
#

finally not going to be using 2Gb of ram for 100 users, nice shit d.js

solemn latch
#

well, reading the docs it looks like they added more caching stuff

#

im not sure what it actually does

earnest phoenix
#

approximate_member_count
@solemn latch it's a change following the privileged intents btw, this will return an approximate member count in the REST request so you don't have to do anything gateway related

solemn latch
#

oh

#

ty

summer torrent
earnest phoenix
#

Hi

rain cradle
#

How do i get new member's invite?
like an invite manager

earnest phoenix
#

Do I do \n for newline?

rain cradle
#

yes

earnest phoenix
#

Thanks

drifting wedge
#

Is it hard to use mongo?

#

Like Iโ€™m adding it

#

But the issue is I wanna add like a module list thing

#

So I need to check to see if the module is on, and if not then Iโ€™ll see what to do

sudden geyser
#

How do i get new member's invite?
like an invite manager
@rain cradle one way is to cache all invites then see which invite has changed, but that can have strain as you have to cache all guild invites.

rain cradle
#

ok

halcyon ember
#

when I do a mysql query like UPDATE balances SET coins=coins+? WHERE id=? and the coins are like 5 plus 5.05 and for some reason inside the mysql server it gets turned into 10.0500000009

earnest phoenix
#

IEEE 754

midnight blaze
#
// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
//@match        https://discord.com/channels/"id"/"id"(I replaced them)
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

     (document.getElementsByClassName("full-motion theme-dark platform-web").innerHTML === "Annoying person")?document.getElementByClassName("full-motion theme-dark platform-web").innerHTML = "Blocked":null;
})();```

I tried Tampermonkey for fun. ClassName should be the html tag. I tried to replace all innerHtml texts of "Annoying person" with "Blocked". It didnt really work^^ is there a reason for it that it wont work for discord that easy or did I just make a mistake?
pale vessel
#

i don't think getElementByClassName exists

#

but getElementsByClassName returns an array so you have to iterate them over, you can't just set or view innerHTML like that

midnight blaze
#

ups, yeah, that is a typo, but ok, it wont work, but maybe this will work.

document.getElementsByTagName("html")

Do I still have to iterate them over?

pale vessel
#

yes, getElements, s

#

if you use IDs, it would be getElementById, "element", no s so you can use it as is

midnight blaze
#

yeah, I have never really thought about this, I have always used getElementById in the past

thick gull
#

is there a way to do this

#

or am i thinking too hard about this

#

:)

midnight blaze
#
// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
//@match        https://discord.com/channels/459195345419763713/e323232323232
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    let const = document.getElementsByTagName("span");
    for (let i = 0; i < x.length; i++) {
        (x[i].innerHTML === "Agent Mura")?x[i].innerHTML = "Noob":null
      }

})();

something like that, right?

pale vessel
#

@thick gull show toast.json

#

and what's food

thick gull
#

it works i just need to like use the quotes as a variable name or something lmao im not sure how to explain it

pale vessel
#

oh

thick gull
#

it's just defined

#

function

pale vessel
#

show the food part

thick gull
pale vessel
#

i mean images

thick gull
#

it works if i just check if it's "toast" but i want to easily expand it

midnight blaze
#
// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
//@match        https://discord.com/channels/459195345419763713/56201953913562e
// @grant        none
// ==/UserScript==


(function() {
    'use strict';
    const x = document.getElementsByTagName("h2");
    for (let i = 0; i < x.length; i++) {
        (x[i].innerHTML === "Agent Mura")?x[i].innerHTML = "Noob":null
      }

})();

this actually should be fine..still aint working

pale vessel
#

console.log(x), debug

midnight blaze
#

well, that doesnt really work with tampermonkey. Nothing logs in the console. AL3PepeShrug

pale vessel
#

try changing x[i].innnerHTML = to document.getElementsByTagName("h2")[i].innerHTML = , just that

midnight blaze
#

it doesnt seem to work :/ meh, would had been nice tho to be able to change discord with tampermonkey

#

I tried some basic stuff, but nothing worked

#

I take it back, it works. I had a problem with my browser

glossy elk
#

hey i need item names

#

for new bot

#

Wrong chat

midnight blaze
#

hmm, is this actually against the TOS rules? ๐Ÿค”

delicate shore
#

Hello

#

Anyone need help ?

#

I am getting bored I wanted to help if I could

earnest phoenix
#

^

fervent goblet
#

Is there a way to make a settings command that is not like one massive file?

#

Discord.js btw

coarse hearth
#

how do i put a spaceinthe prefix for example
eli help

pale vessel
#

trim the context after slicing the prefix

fringe axle
#
.setImage(`https://api.alexflipnote.dev/floor?image=${member.user.avatarURL({ dynamic: true, size: 512, format: 'png' })}&text=${text}`)
celest tendon
earnest phoenix
#

Webhocks pandasad

celest tendon
earnest phoenix
#

$1 > $0

celest tendon
#

i dont understand u dude -.-

earnest phoenix
#

Try to convert $1 > $0

celest tendon
#

i did it but it isnt work

sonic lodge
#

queue is undefined

#

does client even have a queue property?

celest tendon
#

how so

#

do u mean this modules

sonic lodge
#
const queue = client.queue;
//                   ^^^^^ doesn't exist, so...
// ...
var serverQueue = queue.get(message.guild.id);
//                ^^^^^ undefined```
celest tendon
#

i added my main.js

#

is it true?

fringe axle
#
.setImage(`https://api.alexflipnote.dev/floor?image=${member.user.avatarURL({ dynamic: true, size: 512, format: 'png' })}&text=${text}`)
``` Why the image is not loading?
sonic lodge
#

that has nothing to do with this problem

celest tendon
sonic lodge
#

i noticed in the image you sent you have the line const queue = new Map();

#

remove const queue = client.queue; and see what happens

celest tendon
sonic lodge
#

read the error

earnest phoenix
#

Change your YouTube api version and discord api version.

sonic lodge
#

@fringe axle does that user have a default avatar

earnest phoenix
sonic lodge
#

if so, it will return null

celest tendon
#

how can i change actually i dont know js i am beginner

#

and i dont have good english

sonic lodge
#

you should learn the basics of js before continuing

celest tendon
#

i solved some errors i didnt searching but i dont solve this command ..

karmic compass
#
.setImage(`https://api.alexflipnote.dev/floor?image=${member.user.avatarURL({ dynamic: true, size: 512, format: 'png' })}&text=${text}`)
``` Why the image is not loading?

@fringe axle can i have some context of what the image would look like? also you probably shouldn't include JSON in a url

earnest phoenix
#

@celest tendon go to package and search update button in glitch.om

wanton anvil
#

hey guys give me a nice idea for my bot ping me on your answer

earnest phoenix
#

Our bot is offline

celest tendon
#

i dont know glitch

earnest phoenix
#

I think

celest tendon
#

i am using vds

sonic lodge
#

you should learn the basics of js before continuing
@sonic lodge

celest tendon
#

glitch memory so trash

earnest phoenix
#

Ok send me our package file

sonic lodge
#

..that's not related to their problem

celest tendon
#

@earnest phoenix can you add me

earnest phoenix
#

My dm open so send me

sonic lodge
#

this will be great

fringe axle
#

@fringe axle can i have some context of what the image would look like? also you probably shouldn't include JSON in a url
@karmic compass Of course, wait.

#

It should look like this normally.

sonic lodge
#

that's the user's avatar?

karmic compass
#

hmm

fringe axle
#

Yea

#

I tried it

wanton anvil
#

hey guys give me a nice idea for my bot ping me on your answer
@wanton anvil any ideas

sonic lodge
#

what does member.user.avatarURL({ dynamic: true, size: 512, format: 'png' }) return

earnest phoenix
fringe axle
#

The avatar of yourself or if you mentioned someone the avatar of the mention.

wanton anvil
#

give me a nice idea for my bot ping me on your answer

karmic compass
#

can you send

#

your variable called text

fringe axle
#
  async run(message, args) {

    let argsC = message.content.split(" ").slice(1);

    let text = argsC.slice(1).join(" ");

    const member = message.mentions.members.first() || message.member;
    const userFlagsA = await member.user.fetchFlags();
    const userFlags = userFlagsA.toArray();
      const embed = new MessageEmbed()
      .setColor('#ea6ef1')
      .setTitle(`Floor Text`)
      .setImage(`https://api.alexflipnote.dev/floor?image=${member.user.avatarURL()}&text=${text}`)
    return message.say(embed);
  }
};
#

Full code.

karmic compass
#

hm

#

probably

#

because

#

in a link you can't have spaces

#

how do you connect spaces in a link again

#

%20?

faint prism
#

Yeah

fringe axle
#

Where are spaces in there?

wanton anvil
#

give me a nice idea for my bot ping me on your answer

#

give me a nice idea for my bot ping me on your answer

sonic lodge
#

oh you're trying to fetch an image from an api

faint prism
#

Don't spam @wanton anvil

celest tendon
#

@sonic lodge can i send my js project could you help me

wanton anvil
#

Don't spam @wanton anvil
@faint prism ok

#

give me a nice idea for my bot ping me on your answer

delicate shore
#

Is this how u add choices ?

karmic compass
#

hm

#

@fringe axle nothing is wrong with your code, i believe something is wrong with the api link. where did you find it/find the code for it?

#

i copied your code, got the same thing, manually filled in some of the api link fields, got an error

feral aspen
#

Category: economy

#

The economy part is like ${command.category}

#

and I cant make it capitalized on the first letter only

#

how can I do that?

delicate shore
#

How to get choices in JSON file

feral aspen
#

@delicate shore we saw your message, kindly waitt.

delicate shore
#

Ok

sonic lodge
#

@feral aspen get the first character of the string, convert it to uppercase, then append the rest of the string

feral aspen
#

Bro

#

Its not like that

#

**Category:** ${command.category}

#

How can I do that..

#

??

sonic lodge
#

are you trying to convert the first letter to uppercase

feral aspen
#

Yes.

#

That is what I am trying to do .,

#

Am I supposed to create a seperate variable?

sonic lodge
#
let str = 'economy';

// get the first character of the string
let firstCharacter = str[0]; // e

// convert it to uppercase
firstCharacter = firstCharacter.toUpperCase(); // E

// concat the new first character with the remainder of the string
let newStr = firstCharacter + str.substring(1); // "E" + "conomy"

console.log(newStr); // Economy```
feral aspen
#

Ok Thank you! ๐Ÿ˜„

earnest phoenix
#

@sonic lodge no spoonfeeding code

delicate shore
#

Me waiting for someone to reply

#

For question I posted 2 times

earnest phoenix
#

@delicate shore just make choice array

#

Lol

#

Easy

#

Me waiting for someone to reply
@delicate shore I'll help

#

If you stop whining

#

Are you tryna read JSON data and converting it to JS objects?

pale vessel
#

OOPLED#9848 no spoonfeeding code
@earnest phoenix he's not, he's showing how it works pepega

earnest phoenix
#

@delicate shore if you want to read and/or write JSON data then I found this good article online which I'll simplify a little for ya

thick gull
#

How to get choices in JSON file
@delicate shore require your json file const json = require(โ€œpathโ€))
then json.location.location

#

but replace location with whatever

#

so like
โ€œexampleโ€: {
โ€œabcโ€: โ€œcbaโ€,
โ€œBioโ€: โ€œyupโ€
}
json.example.Bio
=> โ€œyupโ€

earnest phoenix
#

require("path/to/json.json");

thick gull
#

typed on mobile KEKW

pale vessel
weak rain
#

well this is my code but is says me this is a owner only command ``` if (message.author.id = "554185890453389322") return message.reply("I m sorry but this is a owner only command")

#

and i m the owner

pale vessel
trim saddle
#

= attempts to set a variable

pale vessel
#

you're assigning it, if you want to compare, use == or ===

weak rain
#

ok ty

trim saddle
#

use === to compare variables

weak rain
#

hm okay ty

honest perch
#

Eslint says its === so its that

golden condor
#

== or ===

#

Both work

honest perch
#

Its ===

golden condor
#

@honest perch it's both @swift umbra

honest perch
#

Eslint says its ===

#

So its 3

#

End of

golden condor
#

It's both.

#

You can use both.

weak rain
#

``` if (message.author.id === 554185890453389322) return message.reply("I m sorry but this is a owner only command")

#

if (message.author.id === "554185890453389322") return message.reply("I m sorry but this is a owner only command")

golden condor
#

Es-lint might say to use === but you can use either.

#

Yeah that's right

weak rain
#

bot not working

honest perch
#

Es-lint might say to use === but you can use either.
@golden condor yes but 3 is better

earnest phoenix
#

Wrong

#

Kinda

#

Ok

#

=== compare if it is same type AND if it is same value

#

For examle
1 == "1" //true
1 === "1" //False

marble juniper
#

bot not working
@weak rain

  1. does it have errors
  2. can you show code
earnest phoenix
#

== checks if the value matches
=== checks if the value AND datattype matches

weak rain
#

i fixed it

marble juniper
#

k

weak rain
#

ty for help

golden condor
#

Neither is better. They both function mainly the same except for some cases

earnest phoenix
#

^

#

=== compare if it is same type AND if it is same value
@earnest phoenix we dunno if snowflakes are strings or numbers

#

Use ==

golden condor
#

Yes

#

But in this use case

#

It is fine

earnest phoenix
#

Nope

#

We dunno if he's comparing the snowflake to a string or number

#

Not number

#

But he might compare it to an integer

#

All of id return by djs is string

golden condor
#

Why did you emphasize he?

earnest phoenix
#

ive done that once

#

Why did you emphasize he?
@golden condor because I'm talking about him bruh

#

Snowflake return by djs is also string

#

ik

#

but in his example he used a string to compare it to the snowflake in some other place of his code he might compare a number to it

#

Why number

#

dude

#

read it again

pale vessel
#

why are you guys arguing about operators

golden condor
#

I have no idea so I just left

earnest phoenix
#

@swift umbra or ts

#

You should

golden condor
#

Oof

sterile thicket
#

How do I count all the members of all the servers my bot is in?

earnest phoenix
#

Sharded or no?

golden condor
#

You can loop it

earnest phoenix
#

You cant with sharding

golden condor
#

Yes you can.

earnest phoenix
#

he might compare a number to it
example:

if (message.author.id === 34616164346546161) //false because he's comparing a number to a snowflake and the snowflakr is a string
if (message.author.id == 34616164346546161) //trur because we ain't checking for the datatype

am i clear now

sterile thicket
#

js

earnest phoenix
#

You have to call shard broadcast @golden condor

golden condor
#

Yeah

earnest phoenix
#

Isnt looping directly

golden condor
#

Or fetchShardValues

earnest phoenix
#

tf

#

Okay?

#

what's a thread

#

Google it

#

ok

pale vessel
#

it's not true

earnest phoenix
#

No max for js

#

ok got it

sterile thicket
#

I didn't understand

#

the shard thing

earnest phoenix
#

@delicate shore you still need help with JSON
totally ignores the fact i never helped him in the first place

pale vessel
#

i'm retarded lul

earnest phoenix
#

k

pale vessel
earnest phoenix
#

see

#

that was the point i was tryna make

#

let num = 0;

client.guilds.cache.forEach(g => {
num += g.memberCount;
});

#

@sterile thicket

pale vessel
#

r e d u c e

earnest phoenix
#

Or that lol

#

because in his code somewhere he might compare the snowflake to a number and it won't work anyways

#

my internet is so fucking terrible

#

I'm dying

pale vessel
#

client.guilds.cache.reduce((x, y) => x + y.memberCount, 1);

earnest phoenix
#

what's x and what's y

sonic lodge
#

x is the accumulated value, and y is the current value

earnest phoenix
#

That 1 is the initial value

loud depot
#

How do I make commands..? Sorry, I'm new to this stuff.

earnest phoenix
#

What library

misty sigil
#

What language

earnest phoenix
#

How do I make commands..? Sorry, I'm new to this stuff.
@loud depot there are a million ways to

loud depot
#

welp

earnest phoenix
#

@earnest phoenix not really no

#

All have the same basic concept

sterile thicket
#

let num = 0;

client.guilds.cache.forEach(g => {
num += g.memberCount;
});
@earnest phoenix I was getting undefined
but #development message helped

misty sigil
#

tell us the language/library and we can help

earnest phoenix
#

which language do you use mate

loud depot
#

me-?

sterile thicket
#

client.guilds.cache.reduce((x, y) => x + y.memberCount, 1);
@pale vessel thanks, it worked

misty sigil
#

Yes

earnest phoenix
#

of coirse

#

you

loud depot
earnest phoenix
#

tf

loud depot
#

wait

earnest phoenix
#

What i hate about forEach is the the code doesnt wait for it to finish executing it just moves on

misty sigil
#

English isnโ€™t a programming language?!

earnest phoenix
#

by language we mean smth like Python or JavaScript not English

loud depot
#

OH

#

SORRY

#

WEYFGWEUGBEW

sonic lodge
#

so it's c#

earnest phoenix
loud depot
#

yknow what ima just figure this out on my own- sorry for being annoying lmfao

earnest phoenix
#

welp i won't be able to help with C# so better ask someone else

loud depot
#

๐Ÿค 

earnest phoenix
#

why not client.users.cache.length

#

yknow what ima just figure this out on my own- sorry-
@loud depot don't go wait a little and someone might be able to help

#

why not client.users.cache.length
@earnest phoenix not length it's size

loud depot
#

hh okay

earnest phoenix
#

Callum works with C# right

#

and he's typing

golden condor
#

I've just seen someone use a reduce function, I'm not sure how it works, can someone explain to me or send an mdn article? Thanks, I've never used one.

earnest phoenix
#

^^^^^^^^^^^^^^^^^^

golden condor
#

What's the problem?

earnest phoenix
#

ask Grape Boi

sonic lodge
loud depot
#

btw do I need some fancy computer to do this or can I use my chromebook

earnest phoenix
#

any computer works

golden condor
#

Any computer that can install dotnet

misty sigil
#

as long as it can run the code

loud depot
#

i think i can download it

earnest phoenix
#

You did

#

Bruh

loud depot
#

o

misty sigil
#

Iโ€™d doubt, as youโ€™re on chromebook

fervent goblet
#

How would i go about fixing redundancy in my code?

#

Discord.js

#

Btw

earnest phoenix
#

fixing what?

fervent goblet
#

Redundant

#

Code

pale vessel
#

such as

earnest phoenix
#

you mean useless code

#

not very good at English

golden condor
#

What is redundant about your code? Can you give an example

fervent goblet
#

I have a settings command but its just a switch statement for each setting. This goes for 300 lines

honest perch
#

Is funny how nuxt kept failing

golden condor
#

You could make functions for the same things?

fervent goblet
#

Hmm

#

I have a fs thing but its like a command handler but for settings

#

Its kinda stupid

elder bronze
#

Hi

#

I am developing a bot using python but the only problem that I am facing is that when I runs the code for connecting to server it fails

sonic lodge
#

connecting to what server

elder bronze
#

To discord

sonic lodge
#

what is your error?

elder bronze
#

It only shows no such directory found

#

Though I made one

sonic lodge
#

that's unrelated to connecting to discord

#

show the full error

elder bronze
#

Ok

#

I will send screen shot in mins

karmic compass
#

Can you put dashes in variable names

#

In js

sonic lodge
#

no

earnest phoenix
#

does adding an underscore to the name of a variable do anything

pale vessel
#

no

earnest phoenix
#

smh

sonic lodge
#

it gives the variable a certain feeling

pale vessel
#

it's just a naming convention

earnest phoenix
#

lmao wut

pale vessel
#

waitWhatSpin what

sonic lodge
#

nvm the joke doesn't make sense

pale vessel
#

dash =/= underscore

earnest phoenix
#

wut

#

=/=

sonic lodge
#

dash !== underscore

earnest phoenix
#

bruh

karmic compass
#

=/= is not equal to

earnest phoenix
#

i ain't talking about dashes aka hypens

karmic compass
#

If Iโ€™m correct

earnest phoenix
#

no

#

it's the sign =/ in maths

#

no extra =

#

talking about real laif not js

sonic lodge
#

oohh yeah, real life is a thing

earnest phoenix
#

Is it possible to use svg stuff from the D3 library to create profile and rank cards stuff?

spare robin
#

i nned help

#

i am searching a nitro code developer bot there is an bot or not

golden condor
#

What

#

Or a nitro code brute force bot

earnest phoenix
#

i am searching a nitro code developer bot there is an bot or not
@spare robin that'll get you banned made

#

/\

#

A

#

;V

delicate shore
#

How does these bot gets these much upvotes anyways

earnest phoenix
#

bruh

#

they're useful

#

so people vote them

#

Is it possible to use svg stuff from the D3 library to create profile and rank cards stuff?
halp

golden condor
#

Probably

wary flame
#

Probably yes but i'd recommend you use canvas (also on npm), it functions almost the same as html canvas, it has a toBuffer method, you can send the buffer with discordjs as attachment

earnest phoenix
#

I'll use svg because i don't want pixelated stuff and i won't use it for THAT complex stuff anyways

cosmic robin
#

im trying to install nodejs with curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt-get install -y nodejs but its outputing

Usage:  bash [GNU long option] [option] ...
        bash [GNU long option] [option] script-file ...
GNU long options:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --rcfile
        --restricted
        --verbose
        --version
Shell options:
        -ilrsD or -c command or -O shopt_option         (invocation only)
        -abefhkmnptuvxBCHP or -o option```
golden condor
#

@cosmic robin you should use nvm

cosmic robin
#

whats the command?

earnest phoenix
#

nvm

#

wtf

golden condor
#

I can show you

earnest phoenix
#

n e
v er
m ind
_ _

#

n ode
v ersion
m anager

golden condor
#

source ~/.bashrc

#

@coral trellis nsfw avatar

#

Not just do

cosmic robin
#

ite thx

golden condor
#

np

#

@cosmic robin use the step that says nvm, it's the best one as it means you can install a new version using that whenver

old ferry
#

o you know : how to remove unix time in module "ms" ?

golden condor
#

Wdym?

earnest phoenix
#

unix tine

#

who tf uses it anyways

old ferry
#

can you speak symply beacause i'm french ^^'

earnest phoenix
old ferry
#

okay

loud nebula
#

Does someone know how to map all members from a server?

rancid bramble
earnest phoenix
#

@loud nebula discord.js?

loud nebula
#

yes

earnest phoenix
#
<Guild>.members.cache.map(m => m);```
loud nebula
#

ok

#

ty

earnest phoenix
#

you didn't have to be that rude
@rancid bramble I'm not rude

rancid bramble
#

or you can talk in french in #memes-and-media
isnโ€™t that basically calling french shit?

#

anyway does not have anything to do with me ig

earnest phoenix
#

bruh

golden condor
earnest phoenix
#

shitpost allows other languages

misty sigil
#

offtopic doesnโ€™t

rancid bramble
#

still seems rude but ig you canโ€™t expect more

misty sigil
#

shitpost used to be called off topic afaik

golden condor
#

^

pure lion
#

So I have my index.ts and package.json and I'm logged in to my npm acc but what next?

kindred musk
#

my bot keeps getting the "connected to discord to much in a short time, we reggenerated your token" error for my bot
do you know if its hosting or code?
(this is the bots code: https://github.com/LevelObjective/Cooldown)

misty sigil
#

itโ€™ll be code probs

earnest phoenix
#

my bot keeps getting the "connected to discord to much in a short time, we reggenerated your token" error for my bot
do you know if its hosting or code?
(this is the bots code: https://github.com/LevelObjective/Cooldown)
@kindred musk did you run too many instances

#

Or did you login more than 1000 times in 24 hours

#

the 1000 ain't an exaggeration it is the actual limit set by discord

#

I can't download the quick.db module

#

help me please

#

read the npm page

#

it has install instructions

acoustic bridge
#

Looking for a "Suggestion command"

@client.command()
async def suggest(ctx, *, channel, message):
    member = ctx.message.author
    message = ctx.message.content
    channel = client.get_channel(741284150970941522)

    embed = discord.Embed(
    title = "Suggested by:",
    description = {member.name},
    color= discord.Colour.green()
    )
    userAvatar = member.avatar_url
    embed.set_thumbnail(url='{}'.format(member.avatar_url))
    embed.add_field(name="Suggestion:", value={message.content}, inline=False)
    await channel.send(embed=embed)

my only error is "Type error: suggest() missing 1 required key word-only argument: 'message'. Where do i have to include that

tight plinth
#

which line

acoustic bridge
#

it just throws the error after typing "so.suggest <message>

#

so. is my prefix

tight plinth
#

does it says at choch line is the error

#

it should

#

look at ur console

acoustic bridge
#

"await ctx.command.invoke (ctx)"

#

command invoke error,

slender thistle
#

You can't do *, arg1, arg2

#

d.py will convert the rest of the message and pass into an argument, so there can only be one argument after *,

acoustic bridge
#

I see, so i cut the * out of it and leave ctx, channel, message ?

slender thistle
#

I think what you need is channel, *, message

earnest phoenix
#

Hello

slender thistle
#

and tbh, do you need the channel argument still?

earnest phoenix
#

I want to make a logs channel for everyone else, but i need some help since its not working

#

at'all

acoustic bridge
#

well i have

channel = client.get_channel(741284150970941522)
``` for example
earnest phoenix
#

python?

slender thistle
#

Yeah, you have a variable with the same name. You're not relying on user input for the channel

pale vessel
#

snake cases? ah, yes, python

slender thistle
#

So why not just take the message as input and use it

earnest phoenix
#

shivaco, is discord.py came with intergrated command handler?

#

fuck grammar btw

slender thistle
#

Yup, there's the commands extension that simplifies creating commands

earnest phoenix
#

I see

#

i think it's there just to eh

#

you know

slender thistle
#

It's not there to just exist tbh

strange raven
#

does anyone know how to see how many servers your bots in?

earnest phoenix
#

framework

slender thistle
#

I've seen it used very widely and it's actually very helpful

earnest phoenix
#

language

#

djs with command handler when

tight plinth
#

djs with command handler when
@earnest phoenix its called discord.js-commando

slender thistle
#

I don't see why d.js doesn't have its own built-in commands extension equivalent

tight plinth
#

bc it's easier to make a command handler in javascript?

#

and that js != py

kindred musk
#

@kindred musk did you run too many instances
@earnest phoenix wdym i just ran it on glitch (and added the glitch start command)

slender thistle
#

Isn't that mostly because there's many tutorials for it, though? nekothinking

tight plinth
#

d.js is more popular too

#

so yeah that helps

strange raven
#

does anyone know how to see how many servers your bots in?

tight plinth
#

how is your bot coded

earnest phoenix
#

@strange raven framework?

slender thistle
#

What's a library your bot uses?