#development

1 messages · Page 1373 of 1

earnest phoenix
#

My youtube api not support live stream why anyone know why

ivory seal
#

if i don;t delete them it would pile up righ?

drifting wedge
#

but i think you can run event as many times as u want

#

if i don;t delete them it would pile up righ?
@ivory seal u can change webhook pfp and name

#

override

#

so u dont need more than 1 per channe;

umbral zealot
#

@fair river that doesn't tell us anything and we still can't tell you or explain to you how your own bot code works. So read it and figure it out, you're the one that wrote it!

ivory seal
#

ye but im confused on how to keep a webhook which can be changable

earnest phoenix
#

@umbral zealot My youtube api not support live stream u know why

drifting wedge
#

its not changeablew

fair river
#

@umbral zealot its about eval that sets a value into the database to appear on userinfo

drifting wedge
#

when u use it u can override the name and pfp

fair river
#

but i don't really use eval

drifting wedge
#

but its still the same

#

@fair river we dont know your code

ivory seal
#

ye ik i saw the webhook.edit in the docs

umbral zealot
#

@snow urchin I think I get it. You're doing moment(12341231235, "DD/MM/YYYY HH:mm:ss") as if you're parsing a String but you're not parsing a string, you're parsing a timestamp. it makes no sense to try to read it as a string date.

drifting wedge
#

you can check the badges with flags

#

thats it

#

idk what the fuck your doiing so i cant help

#

wondering, in python how can i get the unix time

earnest phoenix
#

My youtube api not support live stream u know why@drifting wedge

drifting wedge
#

like how can i get datetime into unix

earnest phoenix
#

🥺 🥺

drifting wedge
#

it just doesnt

#

no one's does

earnest phoenix
#

Why

rocky hearth
#

nah I mean if by any chance, could the

client.on('ready', () => console.log('hello'));

Can this hello be printed on console more than once?? For one session

drifting wedge
#

cuz they didnt add that

#

idk i dont work for youtube

#

it doesnt tho

#

for anybody

earnest phoenix
#

Oh

snow urchin
umbral zealot
#

👍

earnest phoenix
#

can someone help me with this SQLite bs please i think everything's right? it looks it... but it's not working for somereason..

ivory seal
#

btw can someone give me the link of the default avatar in discord

cosmic agate
#

@ivory seal what ?

earnest phoenix
#

@fair river oh god are you using light mode

ivory seal
#

ty

cosmic agate
#

can someone help me with this SQLite bs please i think everything's right? it looks it... but it's not working for somereason..
@earnest phoenix what part of it ?

fair river
#

@earnest phoenix i am using at everything 😂

#

sorry for your eyes dying

earnest phoenix
#

can someone help me with this SQLite bs please i think everything's right? it looks it... but it's not working for somereason..
@earnest phoenix it's not bullshit you're treating it like bullshit

ivory seal
#

lmao

#

we need that on starboard lmaoo

umbral zealot
#

@earnest phoenix we're gonna need more than "this sqlite bs" if you want help.

#

people need to describe their damn problem beyond "it's not working!!!! waaa "

rocky hearth
#

If by any chance, can a ready event be triggered more than once?? For one session

ivory seal
#

ye its not like we can read the code magically

#

unless there's a way for that 👀

earnest phoenix
#

If by any chance, can a ready event be triggered more than once?? For one session
@rocky hearth more event listeners

#

we need that on starboard lmaoo
@ivory seal thx

rocky hearth
#

wat?

cinder patio
#

It can if you destroy the client and then login again

ivory seal
#

client.destroy?

earnest phoenix
#

@earnest phoenix we're gonna need more than "this sqlite bs" if you want help.
@umbral zealot ```py
@bot.command()
@commands.check(owner_ID)
async def blacklist(ctx, member: discord.Member, *, reason=None):
member = ctx.discord.member.id
c.execute("insert into User_IDs, Reason VALUES(?, ?)", (member, reason))
db.commit()
embed = discord.Embed(title="", description="", colour=discord.Color.red())
embed.set_author(name="Blacklisted!")
embed.add_field(name="Success", value=f"{member.name}#{member.discriminator} -- {member.id} Has been Blacklisted from Using commands!")
await ctx.send(embed=embed)

@bot.command()
@commands.check(owner_ID)
async def unblacklist(ctx, member: discord.Member):
member = ctx.discord.member.id
c.execute("delete from BlacklistedUser_IDs where User_IDs, Reason = VALUES(?, ?)", (member, reason))
db.commit()
print("closed")
embed = discord.Embed(title="", description="", colour=discord.Color.red())
embed.set_author(name="Unblacklisted!")
embed.add_field(name="Success", value=f"{member.name}#{member.discriminator} -- {member.id} Has been Unblacklisted from Using commands!")
await ctx.send(embed=embed)```

umbral zealot
#

Awesome. Maybe someone that does python can help 👍

ivory seal
#

oh idk python

#

is there any way u can get a webhook with the name of the webhook or its id?

earnest phoenix
#

@earnest phoenix it's not bullshit you're treating it like bullshit
@earnest phoenix no no no, it is bs,

cinder patio
#

If you want to get a webhook by it's name then you would have to fetch all webhooks from the channel and use filter. To get a webhook with it's id, use fetchWebhook

umbral zealot
#

delete from BlacklistedUser_IDs where User_IDs, Reason = VALUES(?, ?) invalid SQL

#

that's not how WHERE works

ivory seal
#

ah ok thanks @cinder patio

cinder patio
#

Actually, you cannot fetch a single webhook

ivory seal
#

oh

cinder patio
#

Actually you can but it's a client method

#

not a text channel one

#

weird

umbral zealot
earnest phoenix
#

@earnest phoenix it's not bullshit you're treating it like bullshit

@earnest phoenix no no no, it is bs,
@earnest phoenix then stop using it?

umbral zealot
#

What's BS is people button mashing random code then complaining it doesn't work 😛

ivory seal
#

but isn;t webhooks with channels lmao

earnest phoenix
#

but isn;t webhooks with channels lmao
@ivory seal *text channels mmulu

cinder patio
ivory seal
#

i saw this

        const webhook = webhooks.first();      ```
but won't this only get the first one, and in a server won't there be multiple webhooks with multiple bots
#

@cinder patio thanks for that!

earnest phoenix
#

i wouldn't use it if i didn't have to😭

umbral zealot
#

Is someone holding a gun to your head or holding your family hostage and forcing you to use it?

#

If not, you don't have to

ivory seal
#

lmao

#

u don't **have ** to use anythng

#

they are easier db's like enmap to use especially if u are a beginner

earnest phoenix
#

I'd recommend quick.db for beginners

#

Basically a wrapper for SQLite that is wayyyyyyyyy easier to use for beginners

ivory seal
#

ye both work

#

enmap or quick.db

#

both are great for beginners

earnest phoenix
#

loading Woo is typing...

ivory seal
#

once you learn more, you can use sqlite

solemn latch
#

Everyone will reccomend something diffrent.
For someone who knows how to code, but is learning databases, anything sql I think is easiest.

#

Since sql is the most code like.

ivory seal
#

true true

earnest phoenix
#

Is someone holding a gun to your head or holding your family hostage and forcing you to use it?
@umbral zealot infact Yes. they are.

umbral zealot
#

The idea of both enmap and quick.db is that you do'nt need to write any SQL, you just use them like a Map object.

#

@earnest phoenix if that were true you'd have all the incentive in the world to stop mashing at the keyboard and actually learn it

solemn latch
#

🤷‍♂️ sql just made sense to me.

#

Lynx is on his second month learning databases

#

Was in early October he started asking about mongo

#

Databases are quite simple to get the basics, I think he's just viewing them like they are complex, so they are.

earnest phoenix
#

@earnest phoenix you're actually acting like a baby now. Everyone here LEARNT programming stuff themselves instead of whining around that they can't do anything because SQL is bullshit.

ivory seal
#

as we said before use enmap or quick.db first

#

then properly learn sql/sqlite

#

then use it

earnest phoenix
#

and you'll need to learn every single one of those

ivory seal
#

no use copy pasting code or just getting temp fixes from somehwer

#

doesn't fix it in long term

quartz kindle
#

you guys a recommending enmap/quick.db to someone who uses python? lmao

ivory seal
#

waitt

#

nvm idk how it works on python

earnest phoenix
#

run

sick fable
#

Alr, I coded a welcomer bot but idk I am adding bots to test and it ain't working nor it showing any error

#

Ima send the cide

#

Code

#
async def on_member_join(member):
	guild = ctx.guild
	channel = client.get_channel(id = 755322325603319858)
	embed = discord.Embed(title = f"A Wild {member.name} Appears!" , description = f"``You are our {len(guild.member_count)}th Member!" , colour = discord.Colour.green())
	embed.add_field(name = '**•Member Name!**' , value = f"{member.name}")
	embed.add_field(name = "**•Id**" , value = f"{member.id}")
	
	embed.add_field(name = "**•Member Created at**" , value = member.created_at.strftime("%a, %d %B %Y , %I %M %p UTC"))
	embed.add_field(name = "**•Joined this server on**" , value = member.joined_at.strftime("%a, %d %B %Y , %I %M %p UTC"))
	embed.set_image(url = member.avatar_url)
	embed.set_footer(text = "We are so happy to see you here!")
	await ctx.send(discord.Object(id = '755322325603319858') , embed = embed)```
earnest phoenix
#

Ima send the code
@sick fable wait for me to start up among us then send the code so we can play together

sick fable
#

@sick fable wait for me to start up among us then send the code so we can play together
@earnest phoenix lmao

#

Help me 🥺

#

@slender thistle 🥺

ivory seal
#

lol idk python so...

sick fable
#

:[

#

JavaScript weebs

#

😩

ivory seal
#

eh

solemn latch
#

Ctx.send would be sending to the member right?

umbral zealot
#

too many snakes today

slender thistle
#

ctx.send OUTSIDE OF COMMANDS

solemn latch
#

Glad to see more python users on

slender thistle
#

qw09ir

#

Alright

earnest phoenix
#

@earnest phoenix you're actually acting like a baby now. Everyone here LEARNT programming stuff themselves instead of whining around that they can't do anything because SQL is bullshit.
@earnest phoenix you see, I've been trying to LEARN it but It's hard to learn when you have no fucking clue about database bs, and when it looks correct it doesn't work, IT returns no Errors so it's Kinda hard to LEARN When there's nothing to traceback and learn from.🤡

slender thistle
#

Keep your cool

ivory seal
#

too many snakes today
@umbral zealot true

slender thistle
#

@sick fable Do you have the members intent activated?

quartz kindle
#

@sick fable do you have server members enabled in your developer portal?

#

lol shiv

ivory seal
#

does enmap work on python?

slender thistle
ivory seal
#

nvm

earnest phoenix
#

too many snakes today
@umbral zealot node i-got-that-joke.py

slender thistle
#

enmap isn't Python

sick fable
#

What do you mean by server members enabled? @quartz kindle

rocky hearth
#

I'll help you with js, no worries @sick fable

ivory seal
#

ye im just an idiot lol

quartz kindle
#

go to your discord developer portal

slender thistle
#

Tim I'll leave this to you, sorry and thanks, I've got a paper to write until tomorrow and it's almost 10pm

earnest phoenix
#

I'll help you with js, no worries @sick fable
@rocky hearth they literally said they're a python dev

sick fable
#

@slender thistle Best of luck bro

quartz kindle
#

@slender thistle good luck xD

ivory seal
sick fable
#

go to your discord developer portal
@quartz kindle hmm?

#

Ohh

#

Kk

#

Should I enable it or disable it? 🤔

#

Kinda dumbass in coding

earnest phoenix
#

guys why isn't my code running

node main.py
quartz kindle
#

server members has to be enabled, otherwise you will not receive an event when a member joins

sick fable
#

Oh

earnest phoenix
#

or anything member related

ivory seal
#

thats code?

sick fable
#

Alr I enabled it

#

Less see if it works

ivory seal
#

should work now

earnest phoenix
#

guys why isn't my code running

node main.py

@earnest phoenix somebody help please this goddamn shit is not working!

ivory seal
#

wait are u serious?

earnest phoenix
#

no

ivory seal
#

i was like ... for a moment lmao

#

i just started a bot project thats gonna take months lmao

solemn latch
#

The problem is the question was too well formed

#

People would make you think its the code

shell crystal
#

Hi

solemn latch
#

Hello

ivory seal
#

my friend create a bot which had 1000 if statements....

#

in index.js

umbral zealot
#

someone needs to learn about loops and functions 😄

ivory seal
#

truee

#

my first bot like tons of years ago when i didn't know js itself had like tons of if's statements

#

I have a question which has been intriguing my mind for a ton of time:
Why do people clone bots? They can just invite bots if they want, why clone from github and claim credit for it?

earnest phoenix
#

I have a question which has been intriguing my mind for a ton of time:
Why do people clone bots? They can just invite bots if they want, why clone from github and claim credit for it?
@ivory seal because you can monetize it

ivory seal
#

but thats basically stealing someone else's hardwork

earnest phoenix
#

yeah

#

that's literally why

ivory seal
#

i know few people who "created" a bot and setup a patreon for it

#

why tf do u need a patreon if ur just gonna steal stuff

earnest phoenix
#

those people: it is what it is

tribal siren
#

so i did this command

#

if(cmd === `${prefix}kick`){ if(!message.member.hasPermission('KICK_MEMBERS')) message.channel.send("You don't have permission to use that command."); else { let member = message.guild.members.cache.get(args); if(member) { try { await member.kick(); console.log('Kicked'); message.channel.send(`${member}, Kicked!`) } catch(err) { console.log(err); } } } }

#

then i try to use the command

#

it doesn't work

#

it doesn't even log any errors

#

what should i do?

#

language: JavaScript

ivory seal
#

is prefix defined?

tribal siren
#

yes

#

@ivory seal prefix is defined

ivory seal
#

and cmd?

tribal siren
#

yes

#

cmd is also defined

earnest phoenix
#

Why are you using an else statement for the if statement just add a return that ends the function from executing further

ivory seal
#

shoudn't it be let member=message.mentions.users.first()

earnest phoenix
#

Hi

#

I have a query

#

ask it

ivory seal
#

or shoudn't it be args[x]

earnest phoenix
#

no need to ask permission

tribal siren
#

lemme try it

earnest phoenix
#

or shoudn't it be args[x]
@ivory seal this code block is perfectly fine

tribal siren
earnest phoenix
#

why are you slapping them with that image

ivory seal
#

oh

earnest phoenix
#

I'm coding a moderation bot, so how the bot Will auto detect the Mod role of each server?

tribal siren
#

cause why not

ivory seal
#

thats my mitake rip

umbral zealot
#

@tribal siren your issue is probably that the member isn't cached. You will need to fetch the member from the user. Get the message.mentions.users.first(), get their ID, then message.guild.members.fetch(thatid) and you'll get the member, and it'll be cached.

#

An uncached member will be null when you try to get() it

ivory seal
#

@earnest phoenix you will have to search for the role in the server and then see if the person has it

tribal siren
#

it says member.kick() is not a function

earnest phoenix
#

But bot is for public servers then how can i code the role for each server?

umbral zealot
#

@earnest phoenix You can either look for specific permissions in roles, or, the better way, is to setup a per-server settings (configuration) stored in a database and let the server admins decide what the role is for your moderation commands.

earnest phoenix
#

@umbral zealot gimme that line of code

umbral zealot
#

@tribal siren log member and you'll see what it is. Possibly, it's actually a partial member, which means you still need to fetch it

ivory seal
#

umm once u get the cached user u can do message.guild.member(user)

tribal siren
#

umm once u get the cached user u can do message.guild.member(user)
@ivory seal i already did tho

umbral zealot
#

@earnest phoenix it's a few hundred lines of code, there's nothing to give you. learn about databases, and go from there.

#

we don't spoonfeed code anyway

earnest phoenix
#

Ok

tribal siren
#

oh, now it works

#

thank ya guys

umbral zealot
ivory seal
earnest phoenix
#

@umbral zealot thanks dude

ivory seal
#

once u get the cached user remember to search that in the guild

umbral zealot
#

👍

ivory seal
#

that applies to ban command too

earnest phoenix
#

I'm very confused because I'm developing a bot for all works

ivory seal
#

@earnest phoenix i reccomend u reading guides

#

and database npm documentation

#

that helps a ton

earnest phoenix
#

Ok

ivory seal
#

imagine if someone just gives you the code
it helps u rn but it doesn't really help u in the long term

#

anyways gn all

solemn latch
#

gn

earnest phoenix
#

Thanks

umbral zealot
#

Imagine thinking "developing" means "copying and rewriting code from tutorials and guides"

green skiff
earnest phoenix
#

How to add our bot here for testing?

lyric mountain
#

You don't, at least not anymore

#

Discord added a 50 bot limit to servers

earnest phoenix
#

Oo

#

But we had to verify our bot

#

How can we?

solemn latch
lyric mountain
#

Adding the bot here and becoming verified have nothing to do with each other

solemn latch
#

oh he means discord verification?

lyric mountain
#

Idk

earnest phoenix
#

@lyric mountain a person told me that you had to add your bot here first

thorn yew
#

what's a good vps for hosting that is also really cheap

solemn latch
#

no

#

galaxygate

lyric mountain
#

It was the other way around actually

thorn yew
#

hm

lyric mountain
#

You had to have your bot approved and then it'd be added here

solemn latch
#

if you want just cheap, servercheap is cheap

lyric mountain
#

You "had"

earnest phoenix
#

Discord is not allowing to invite the bot to more servers. It needs Verified

thorn yew
#

@solemn latch is server cheap good also?

lyric mountain
#

Discord is not allowing to invite the bot to more servers. It needs Verified
@earnest phoenix that is discord verification

solemn latch
#

its about half the performance of galaxygate

thorn yew
#

Hm

#

Ok

lyric mountain
#

It has nothing to do with top.gg

solemn latch
#

but cheaper by a lot

earnest phoenix
#

@lyric mountain how to verify it?

solemn latch
#

you shoulda got a pm from discord

#

once your bot hit 75 servers

thorn yew
#

Is there any others @solemn latch

lyric mountain
#

When your bot gets invited to 76+ servers you'll receive instructions in dm

solemn latch
#

theres contabo or whatever its called

lyric mountain
#

Yep, contabo

thorn yew
#

Yeah I heard about that one

solemn latch
#

also cheap, also almost half the performance of gg

#

🤷‍♂️

lyric mountain
#

I'd not say half

#

Contabo is pretty good, the only issue you'll have is ST issues on cheapest plan

thorn yew
#

O

feral furnace
#

Heroku is also good for bots

lyric mountain
#

No

#

Definitely no

feral furnace
#

Not the free plan

cinder patio
#

You can get a VPS instead of paying for heruko, though

lyric mountain
#

I'd host my bot on my molded orange but not on heroku

solemn latch
#

heroku paid plans are like 10x the cost performance.

thorn yew
#

Is do good?

lyric mountain
#

Do?

feral furnace
#

@solemn latch i agree with u

thorn yew
#

Digital ocean

solemn latch
#

great, but isnt the cheapest

lyric mountain
#

Ah

solemn latch
#

if you need drive speeds

feral furnace
#

also heroku is offering github students pack

solemn latch
#

DO all the way

thorn yew
#

Hm ok

feral furnace
#

if you enter github with university

#

i guess 1 year heroku is free

solemn latch
#

1 year google cloud is free

lyric mountain
#

also heroku is offering github students pack
@feral furnace both heroku and glitch publicly stated that they aren't meant nor should be used for bot hosting

solemn latch
#

100% better

lyric mountain
#

They are for websites or services

#

Not for bots

#

Never were, aren't and will never be

thorn yew
#

@solemn latch what's google cloud

lyric mountain
#

Google's vps

solemn latch
#

they offer a range of services

thorn yew
#

O

#

Is it good?

feral furnace
#

google, amazon, microsoft all of these are same or not?

solemn latch
#

they give $300 for up to a year

lyric mountain
#

No

solemn latch
#

not at all

feral furnace
#

which one better

thorn yew
#

O

solemn latch
#

google and amazon have a ton of features

thorn yew
#

Hm

lyric mountain
#

"better" is a subjective term

ancient nova
earnest phoenix
#

how do i delete a role with discord.js

thorn yew
#

@ancient nova I'd recommend going to DJS support on that one chief

#

@earnest phoenix same with you

#

Go to djs server

earnest phoenix
#

kk

#

Wait

#

Why are you sending everyone there @thorn yew

#

@earnest phoenix whats ur issue

thorn yew
#

@earnest phoenix they have djs questions

earnest phoenix
#

@ancient nova Have you checked your bot's connection to internet?

#

@earnest phoenix they have djs questions
If you don't know doesn't mean others don't.

thorn yew
#

@earnest phoenix I didnt mean that lmao

ancient nova
#

I'm pretty sure it's got it

feral furnace
#

guys, is there a way to set bot's prefix in guild?

earnest phoenix
#

Are you on windows or ubuntu

#

@ancient nova

solemn latch
#

with a database @feral furnace

feral furnace
#

without database no right?

crystal wigeon
#

quickdb vs mongodb which would be faster? and which would be able to handle huge loads?

solemn latch
#

well, how will you remember what each guilds prefix is between restart?

crystal wigeon
#

the queries form mongodb seems to be slow. maybe its because im using a free ver on mlab?

earnest phoenix
#

If you are on windows do:
ping discord.com
If you are on linux do
curl discord.com
@ancient nova

feral furnace
#

well, how will you remember what each guilds prefix is between restart?
@solemn latch y i know that was just a question XD

crystal wigeon
#

well, how will you remember what each guilds prefix is between restart?
@solemn latch you can store the guildId as key

lyric mountain
#

quickdb vs mongodb which would be faster? and which would be able to handle huge loads?
@crystal wigeon sql-based

feral furnace
#

is there a documentation or video for that case? @solemn latch

earnest phoenix
#

@crystal wigeon QuickDB isn't a db type

feral furnace
#

i searched but i couldnt found

crystal wigeon
#

ah i see

lyric mountain
#

Big load of data may be slow on non relational dbs

crystal wigeon
#

i dont wanan switch to postgres i'll have to re-write most of my queries ;-;

ancient nova
#

@earnest phoenix I can open my console

earnest phoenix
#

You can't know.. @lyric mountain It's based on your use

ancient nova
#

it says it can't connect

earnest phoenix
#

Are you on linux or windows

lyric mountain
#

He said big data

crystal wigeon
#

yeah

ancient nova
#

vps uses linux

earnest phoenix
#

What is big data

crystal wigeon
#

like 50k data

earnest phoenix
solemn latch
#

50k pog

earnest phoenix
#

and tell me what happens

crystal wigeon
#

we

ancient nova
#

I can't open my console

crystal wigeon
#

ye

earnest phoenix
#

oh..

#

means the server is down

lyric mountain
#

Non relational is not meant to retrieve huge loads of data

earnest phoenix
#

data isnt a metric

lyric mountain
#

Like, it's for quick access

earnest phoenix
#

Who said sql is

lyric mountain
#

...dude

crystal wigeon
#

but i thought it could still handle few thousands of data

#

thanks

#

well postgres does have better performance

solemn latch
#

a few thousands of data doesnt make sense

earnest phoenix
crystal wigeon
#

but its just not freely available

earnest phoenix
#

Have a look at that article

lyric mountain
#

Nosql IS NOT non relational

#

Nosql IS SQL

#

NoSQL = Not only SQL

earnest phoenix
crystal wigeon
#

😂

earnest phoenix
#

What are you on about g

lyric mountain
#

I'm saying about non relational

#

Like mongo

earnest phoenix
#

my dude

#

go google nosql examples

#

Lmk when you find mongodb listed

lyric mountain
#

You're comparing glass to sand

earnest phoenix
#

No I'm not

crystal wigeon
#

chil

lyric mountain
#

Nosql and sql are both relational

solemn latch
#

my database can handle a few thousand requests per second on my current server.
dudes asking about 50k "Datas".

crystal wigeon
#

is there any free postgresql freely available?

solemn latch
#

not sure if it really matters at whatever 50k data is

lyric mountain
#

Postgres is free

crystal wigeon
#

but im using the free ver on mlab

earnest phoenix
crystal wigeon
#

which is like slow

#

limited stuff

earnest phoenix
#

Yea well it's free..

solemn latch
#

yeah, free stuff is slow

earnest phoenix
#

You won't get better performance without paying

feral furnace
#

money = fast in all cases

earnest phoenix
#

Well you might get some better performance without spending money

crystal wigeon
#

well i dont wanan make the switch until my bot goes online ;-;

earnest phoenix
#

lmao

#

ok

#

Well..

crystal wigeon
#

xD

earnest phoenix
#

You can transfer after it's online

crystal wigeon
#

by online i meant

#

verified

solemn latch
#

if your more specific about what 50k data is, it might be a bit more clear 🤔

crystal wigeon
#

and all

earnest phoenix
#

50k guilds?

lyric mountain
#

Alhassan, I'll not bite the bait since I'm not interested in starting a discussion. I just stated that nosql and sql are nowhere near non-relational

crystal wigeon
#

the server data and character details

earnest phoenix
#

what do you store about each guild

lyric mountain
#

Period

crystal wigeon
#

nop the game character details are like 20k

#

i think i reduced it to 5k ig

earnest phoenix
#

@lyric mountain Why wont you read the things I sent lmao

lyric mountain
#

No because I don't want to spend my internet plan

crystal wigeon
#

sql = relational

#

nosql = non relational

#

simple

earnest phoenix
#

^^

lyric mountain
#

No

earnest phoenix
#

Yes

lyric mountain
#

Nosql is sql

earnest phoenix
#

Lmao

crystal wigeon
#

bruh

lyric mountain
#

Nosql is an extension of sql

#

Goddammit

crystal wigeon
#

lmao

#

what is sql?

#

full form of sql

#

what does sql mean?

lyric mountain
#

Structured query language

crystal wigeon
#

and no sql?

#

non structured query language

lyric mountain
#

Not only structured query language

crystal wigeon
#

lmao

earnest phoenix
#

Please stop your baseless argument

lyric mountain
#

"no" in nosql isn't a negation

crystal wigeon
#

yeah nice

earnest phoenix
#

.....

#

Just stop

feral furnace
#

A NoSQL (originally referring to "non-SQL" or "non-relational")

earnest phoenix
#

It isn't funny anymore

lyric mountain
#

Goddammit you are plain dumb

grizzled raven
#

what?

lyric mountain
#

Nosql IS NOT a fcking negation of sql

earnest phoenix
#

If you think you are correct; go contact wikipidea, mongodb, and various other companies to fix their blogs

crystal wigeon
#

yo chill

earnest phoenix
#

You aren't correct, stop spreading bs

crystal wigeon
#

he just playing

earnest phoenix
#

Or he isn't and is really dumb

crystal wigeon
#

bruh he trollin

#

xD

solemn latch
#

when someone has questions about databases, you dont troll answers.

crystal wigeon
#

yeet

earnest phoenix
#

My dude was saying nosql = sql = relational

#

🤦‍♂️

lyric mountain
#

I've had enough, can't argue with rocks

earnest phoenix
#

Oh I see.. you're blind

#

That's why you don't know the difference

lyric mountain
#

And you're brainless

#

All you did was taunt

earnest phoenix
#

You can keep that state

#

All I did was prove you wrong by providing a few screenshots and a good amount of articles

#

and all you did was deny it, claiming you are right

sudden geyser
#

even if one of you are correct, it doesn't matter because you're just lashing out at each other

lyric mountain
#

As I said, think what you want, I'll not argue with rocks

#

This ain't the place for that

earnest phoenix
#

Lmk when you apply for a job and get laughed at

crystal wigeon
#

yo chill he's a kid ;-;

lyric mountain
#

I'm already a developer in an automation company

crystal wigeon
#

noice

lyric mountain
#

Think you're better than anyone? Mr Fullstack Developer

earnest phoenix
#

I didnt say that

#

I claimed and proved my point

#

Link me an article that support your point @lyric mountain

lyric mountain
#

Still arguing?

ancient nova
#

@earnest phoenix when I tried a different vps my bot ran without problems

#

it must be the vps I was using

solemn latch
#

ay

ancient nova
#

some outage maybe

earnest phoenix
#

Yea

#

Probably

ancient nova
#

🙂

earnest phoenix
#

@lyric mountain I might be wrong, prove me wrong 🙂

ancient nova
#

🤠

lyric mountain
#

I already said you're right Mr Fullstack Developer

#

Now stop trying to fulfill your ego

earnest phoenix
#

Mr Fullstack Developer?

#

Lol?

lyric mountain
#

And don't ping me for useless stuff

earnest phoenix
#

@lyric mountain k

lyric mountain
#

Will I have to call a mod?

earnest phoenix
#

@lyric mountain naaahhh

lyric mountain
#

What a kiddo

earnest phoenix
#

👍

junior kite
#

Hmm what is nosql MySQL and SQL lite?

#

@lyric mountain is mongodb or SQL better?

rocky hearth
#

They both are different db system

junior kite
#

Hmm but which is better

rocky hearth
#

Id depends which suits u

junior kite
#

Also I'm completely new to all of this

lyric mountain
#

Depends on your usage, sqlite is the most lightweight db probably

#

But it has barebones features

junior kite
#

Wdym by barebones

lyric mountain
#

The most essential stuff to work with

junior kite
#

Also mongodb is paid or something I think

pale vessel
#

nah

junior kite
#

Nah?

rocky hearth
#

mongo is more versatile. U can put anything u like without any restrictions, simliar to a js object

junior kite
#

Mongodb has paid plans

rocky hearth
#

U can have only one FREE cluster

junior kite
#

And some free

#

Yes

#

Oh

#

Is it unlimited?

#

Basant are u free on 12th onwards?

rocky hearth
#

but u can download and use it offline. And create as many dbs as u want

junior kite
#

From*

cinder patio
#

You can download the community server, it's completely free

pure lion
#

I can't ssh into my vps, always getting dup - error: DuplicatedHandle() :6 dup() in/out/err failed

solemn latch
#

is the vps online?

earnest phoenix
#

im using Lua discordia

#

how do i make it have like

#

the auto fill thing

#

uhh

#

not sure what its called

#

the type suggestions

woven burrow
#

lmfao I'm the only one here code my bot in a mobile app

solemn latch
#

not at all

#

lots do

earnest phoenix
#

yeah

agile shuttle
#

idk

woven burrow
#

:00

earnest phoenix
#

@earnest phoenix do u know how to do the type suggestions thing

#

oops

woven burrow
#

where the people that use Bdscript

earnest phoenix
#

@solemn latch

solemn latch
#

kek

#

yeah, i dont use lua though

earnest phoenix
#

but like

#

shouldnt it be the same for every language

#

to enable the type suggestion thing

#

its vsc not the language i think

solemn latch
#

i would presume no, pretty sure vsc supports it by default for node.

earnest phoenix
#

but like

#

how do you add it

#

not lua specific but

solemn latch
#

i didnt

earnest phoenix
#

is there a button thats like "add library"

solemn latch
#

it was default

earnest phoenix
#

oh

solemn latch
#

there are modules

earnest phoenix
#

i use one

#

but it doesnt have auto fill thing

solemn latch
#

which one are you using?

#

seems many of them support auto complete

woven burrow
#

How to do java skript when you vote the bot on top.gg it will send a thank you message on discord

solemn latch
earnest phoenix
#

@solemn latch windows

solemn latch
#

?

earnest phoenix
#

wdym by which one arey ou using

solemn latch
#

which extension are you using

#

for lua

earnest phoenix
#

vsc

solemn latch
#

not ide

#

extension

earnest phoenix
#

oh

#

like

#

The discord bot extension?

solemn latch
#

no

earnest phoenix
#

i dont know what u mean by extension

solemn latch
#

in visual studio

#

which extension did you install

#

to support lua

earnest phoenix
#

i dont have one

solemn latch
#

then dont say you do

#

click the 4 boxes

earnest phoenix
#

i thought u meant module

solemn latch
#

then type lua

earnest phoenix
#

do i use a module

tired panther
#

How to see how many shards are existing?

solemn latch
#

the first one seems pretty good.

#

i would just do a .count or .length on your shards

earnest phoenix
#

ok i got one

tired panther
#

this.shard.length?

earnest phoenix
#

now what

#

i got the first one

solemn latch
#

look at its features

#

dont just install a random one

#

install one with the features you want

#

🤷‍♂️ depends on your lib @tired panther

earnest phoenix
#

sorry ive never done this before

tired panther
#

discord.js @solemn latch xd on node js PartyBlob

earnest phoenix
#

like u said ive previously used js

#

and so it was automatic

solemn latch
#

It would be shardingManager.shards.length afaik or is it size? whatever you get the point :p

golden tendon
#

Someone's coded with DBFD?

solemn latch
#

im sure someone has, at some point

golden tendon
#

Is there anyone learning Js, too?

shell crystal
#

Tired

#

I'm making a new bot.

#

I'm tired of coding. -_-

solemn latch
#

same

#

thats why i am in here

shell crystal
#

:(

#

English setting is available

solemn latch
#

ads

#

dont do that

shell crystal
#

Not just Turkish

#

Ok

solemn latch
#

should delete it before a mod shows up and bans ya

shell crystal
#

Who's tired of coding bots

earnest phoenix
#

@solemn latch is it possible that it cant integrate the auto fill thing

solemn latch
#

idk i am not a lua user

shell crystal
#

@dense patio :D

earnest phoenix
#

but like

#

this doesnt have to do with lua

#

i just want autofill

solemn latch
#

auto fill depends on the language

#

100000000000% of the time

#

you should ask in a lua community.

shell crystal
#

Hüüüü

#

Cry :F

#

Spotify yubbi

earnest phoenix
#

theres no lua servers

shell crystal
#

What would I do without Spotify?

earnest phoenix
#

all of them are for roblox

shell crystal
dense patio
#

so i have a guildCreate and a guildDelete event (discord.js v12) that gets the server name, server owner, member count, and server icon. after the new intents enforcement it obviously stopped working, but it still works for some servers for some reason. how do i make it work for every server?

#

copy and pasting that cuz i'll prolly have to send it again

shell crystal
dense patio
#

this is the development channel

#

take that elsewhere

#

so i have a guildCreate and a guildDelete event (discord.js v12) that gets the server name, server owner, member count, and server icon. after the new intents enforcement it obviously stopped working, but it still works for some servers for some reason. how do i make it work for every server?

shell crystal
#

Ok

#

Sorry

solemn latch
#

I didnt realize lua was such a dead language

earnest phoenix
#

only things that use it are gmod and roblox

pale vessel
#

@dense patio what are your intents

solemn latch
#

yeah

dense patio
#

none

solemn latch
#

feelsbadman

dense patio
#

do i absolutely need the guild members intent?

#

there has to be a workaround

pale vessel
#

nah

earnest phoenix
#

but its high level and extremely verbose so i prefer it

pale vessel
#

is your bot verified

dense patio
#

yeah

pale vessel
#

well you dont really need any sensitive intents for guildCreate and guildDelete

#

so you didnt specify any intent in your client options?

dense patio
#

can't add any if i don't have them for the bot app

pale vessel
#

nah, theres more than those intents

#

those are only sensitive intents

#

select all events that you need

dense patio
#

that's super useful

#

thanks

pale vessel
#

get the number and put it under new Discord.Client({ ws: { intents: <here> } });

#

so you definitely need GUILDS for your feature to work

dense patio
#

while i'm here, i have another question

#

how do i check if the bot has permissions in a certain channel?

pale vessel
#

you can use new Discord.Intents(arrayOfIntents) but providing the number is good enough

#

channel.permissionsFor(member).has(permission)

dense patio
#

ok thanks

#

for some reason i had permissionIn, dunno where i got that from

pale vessel
#

that works too, you just have to specify the channel instead of a member

dense patio
#

ah

pale vessel
#

member.permissionsIn(channel)
channel.permissionsFor(member)

dense patio
#

oh huh

#

that's what i had

#

i think the error i got was that member.permissionsIn was not a valid function

pale vessel
#

self explanatory?

#

eh

#

the member could be a user instead of a member

#

users have nothing to do with guilds

dense patio
#

oh i see what i did

#

alright

#

thanks for your help 🙇‍♂️

pale vessel
#

👍

empty ocean
#

Hello

dense patio
#

ok @pale vessel it completely broke lol

#

the bot started up fine but isn't responding to anything, error message UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'user' of null in my guildDelete event

#

(guild.owner.user)

pale vessel
#

the guild owner is not cached so it's null

dense patio
#

how do i get it?

pale vessel
#

you have to fetch it; await guild.members.fetch(guild.ownerID);

dense patio
#

ok thanks

pale vessel
#

assign it to a variable

dense patio
#

ok now the bot isn't responding but there's nothing in the console

#

the guildCreate and guildDelete events seem to be working at least

pale vessel
#

what intents did you select?

#

can you show a screenshot?

dense patio
#

nvm

pale vessel
#

o

dense patio
#

just GUILDS

pale vessel
#

lmao

#

no wonder

#

look at the right

#

it shows what events youll receive

dense patio
#

yeah

#

is there something wrong

#

do i need to specify everything

pale vessel
#

not really

#

read the intent names

earnest phoenix
#

know someone why i cant see client.guilds.cache.first().owner?

pale vessel
#

if you think your bot needs it then select it

dense patio
#

hm

pale vessel
#

for example guild messages

dense patio
#

well everything worked before

pale vessel
#

obviously you need message events

dense patio
#

when i didn't specify intents

pale vessel
#

intents are mandatory now

#

thats why

cosmic forum
dense patio
#

so would i do this:
ws: { intents: [`GUILDS`, `GUILD_MESSAGES`] }

#

etc

pale vessel
#

you either use the link i gave or new Discord.Intents(["GUILDS", "GUILD_MESSAGES"])

dense patio
#

how do i use the number

pale vessel
#

just give it

#

just put it

dense patio
#

new Discord.Intents(NUMBER)?

pale vessel
#

no

dense patio
#

😓

pale vessel
#

just the number

#

literally

dense patio
#

where

pale vessel
#

do you have the number

rocky hearth
#

you either use the link i gave or new Discord.Intents(["GUILDS", "GUILD_MESSAGES"])
either give the number or the above ^..........They both are the same thing

dense patio
#

yeah 1537

pale vessel
#

literally intents: 1537

#

that simple

#

come on

dense patio
#

in the new Discord.Client?

pale vessel
#

yes

dense patio
#

ok thanks

pale vessel
#

inside ws: {}

dense patio
#

i see

tired nimbus
#

is creating a canvas as an attachment better than as an url?
also when I use
canvas.toDataURL()
the output is over 2048 characters.

solemn latch
#

the url will be a ton more than 2048.

#

You should make it an attachment since thats what attachments are for.

tired nimbus
#

but If I were to put the image onto an embed I would have to change the attachment to an url

solemn latch
#

embeds take attachments

pale vessel
#

upload the image xd

tired nimbus
#

I dont see a method to set an attachment using discord.js

#

oh I see it

#

wait no

#

it is just setting an attachment alongside the embed

pale vessel
#

embed.attachFiles()

#

embed.attachFiles({ attachment: buffer, name: "filename.png" }).setImage("attachment://filename.png") for example

#

buffer can be canvas.toBuffer()

tired nimbus
#

ok then

#

yes it works thanks

solemn jolt
#

For bot name i need to type?
.bot-name {}

solemn latch
#

Maybe I would look at the pages html to determine that

gilded ice
#

is there a way to ban a user who is not in a guild

solemn latch
#

Oh, intresting. I belive so but am not sure.

neat wave
#

How long of a cool down is recommended between message edits,

pale vessel
#

3s

#

oh edits

umbral zealot
#

You should follow the rate limit headers. Usually, your library handles that for you

pale vessel
#

like 10s?

umbral zealot
#

ratelimits can change, they're currently 5/5s but it's a bad idea to go right up to that limit, so, the longer, the better.

pale vessel
#

make it like a year

neat wave
#

So how many seconds do you recommend?

pale vessel
#

~10-15s

umbral zealot
#

Ideally you wouldn't make it on a timer at all.

neat wave
#

10-15 seconds seems like a lo time

#

Dank memer has a command the exact same as my bot and edits quickly so I’m not sure

solemn latch
#

dank memer has diffrent ratelimits due to its size right?

#

huge bots get their own set of rates afaik.

gilded ice
#

why is guild.ban not working

pale vessel
#

its members.ban()

gilded ice
#

i want to ban if the user isnt in the guild

pale vessel
#

yes

#

it even says in the docs

gilded ice
#

wai-

pale vessel
pure lion
#

Hm

neat wave
#

So like can someone tell me if bigger bots are just exempt from rate limits because they can get away with editing a message every 3 seconds, and I can’t.

pale vessel
#

are you making a yanderesim server

#

ban every member that joins

solemn latch
#

large bots have a diffrent set of ratelimits yes

#

its not can do whatever they want

pale vessel
gilded ice
#

oh

#

o h

#

cries

neat wave
#

So like it would be nice to know what a normal bot can do, how large is the required cooldown, is all I’m asking and getting no clear response.

solemn latch
#

there is no clear line

#

ratelimits are dynamic

neat wave
#

So basically I need to keep modifying this time so I can get my bot approved on top.gg

sudden geyser
#

Your library should handle rate limiting

neat wave
#

Js

sudden geyser
#

and it does

still merlin
#

Discord.js handles ratelimits iirc

solemn latch
#

it handles ratelimit for you

neat wave
#

Right, so why did I get declined for editing messages too quickly

#

It makes 0 sense

solemn latch
#

because you hit that ratelimit

sudden geyser
#

Your library handles 429s. You still hit the rate limit.

#

When making a command, think about what a reasonable time should be to block/delay.

neat wave
#

And I have and it supposedly isn’t

#

So it really does not help

sudden geyser
#

Then what did you set it to and was it present when they were testing it

#

You can always talk to the mod who declined your bot for the record

neat wave
#

K

naive gull
#

how would i override the dark mode color of something like the long description?

#

oh this is for bot development lmao

sudden geyser
#

It's fine to ask that kind of question here.

naive gull
#

ah

#

no one 👀

solemn latch
#

im terrible with css pandasad

#

I would just try overwriting the color

lucid prawn
#

I need help I'm trying to @ the person who did the command and make it @ someone else Like !kick @ivory marsh here my coded

            if(message.content.startsWith(prefix + "fuck" )){
                message.channel.send('Love UwU');
                }
                if(message.content.startsWith(prefix + "fuck" )){
                    var embed = new Discord.MessageEmbed()
                          .setTitle(message.author.toString() + 'fucked' + message.author.toString())
                          .setTimestamp()
                          .setImage(
'')
                      message.channel.send(embed);
                }
solemn latch
#

the formatting though

lucid prawn
#

btw it in a embed

cosmic spear
#

hey, I changed my bot's nickname on discord/developers but the role's name is the same, is that going to change by itself in time?

pale vessel
#

nope

solemn latch
#

belive it wont change it on any existing server, but if it joins new ones it will?

cosmic spear
#

what I should do

ancient nova
#

guys, how do you check how many voice channel your bot is in?

cosmic spear
#

should I make bot rejoin it?

pale vessel
#

rename it

solemn latch
#

i belive the url you are using is considered nsfw btw @lucid prawn

#

for the image

pale vessel
#

the role name doesnt matter, to be honest

cosmic spear
#

@pale vessel it is untouchable

ancient nova
#

I've wrote this code bot.voice.connections.size which worked until the intent update of curse

lucid prawn
#

yea @solemn latch

pale vessel
#

i can rename it, at least for me

solemn latch
#

should probably not link nsfw stuff in sfw channels

pale vessel
#

if you reinvite it, the role name is still going the be the same since you only changed the nickname

lucid prawn
#

ok

solemn latch
#

i mean edit out of your message now 🤔

lucid prawn
#

i just edit it

solemn latch
#

so youll probably want to use
message.mentions

cosmic spear
#

@pale vessel ok thx for help i realized the untouchable issue was because of my discord client

#

it has just disappared by itself

#

i can rename it now

#

ty

pale vessel
#

ic

lucid prawn
solemn latch
#

yeah, kinda common for devs to be like that 🤷‍♂️

#

its not really something we need to know

#

I dont mind it, the nsfw stuff I just said to prevent you getting reported to discord and banned

#

or mods here

stark abyss
#

cannot overwrite 'recent1' model once complied.

#

what is this error ? mongodb?

pale vessel
#

looks like mongoose

stark abyss
#

yeah but how to fix

thick gull
#

@lucid prawn ok so if your having a NSFW command you would want to check if the channel is NSFW first

#

also why are you doing this twice?

earnest phoenix
#
bot.on('message', msg => {
    if (msg.content.startsWith("/kick")) {
        var SplitMessage = msg.content.split(" ")
        const user = msg.mentions.members.first()
        const reason = SplitMessage[2];
        console.log(reason)
        if (user) {
            const member = msg.guild.member(user); 
            if (member) {
                try {
                    console.log("Kick Submission")
                    user.send(`You Have Been Kicked From ${msg.guild.name}: ${reason}`);
                    msg.channel.send(`> ${user.member.tag} Has Been Kicked.`);
                    console.log("1")
                    msg.delete(); 
                    member.kick()                
                } catch(error){
                    if(error.message === "DiscordAPIError: Missing Permissions") {
                        console.log("Unable to ban other administrators")
                    }
                }
            };
        };```
#

ok so

#

If i try to kick someone

#

it logs "Kick Submission"

#

and sends them the dm with the reason

#

but it does not kick them

#

and doesnt print 1

#

so its probably catching an error, ill get that error 1 sec

#

ok so

#

the error is

#

TypeError: Cannot read property 'tag' of undefined

#

then sends me a paragraph

#

of directories

#

your user object is already a member

pale vessel
#

cry, it's a fucking pain looking at it, i can't even try to explain

earnest phoenix
#

i know lol

pale vessel
#

no checks whatsoever

earnest phoenix
#

they'll also get surprised how their bot eats 400+ mb of ram just on startup

#

no checks whatsoever
@pale vessel

#

bruh im testing

#

i want to get the essential out of the way

#

before i do permissions

#

they'll also get surprised how their bot eats 400+ mb of ram just on startup
@earnest phoenix why will it do that

#

also how do i get the persons name

#

msg.channel.send(`> ${user.displayName} Has Been Kicked.`);

#

when i try this it says

#

undefined hsa been kicked, even if they arent undefined

#

@pale vessel also i dont care about how you read my code, im the only person who is going to see my bot's scripts so i dont need your opinion on why its gross to look at

languid inlet
#

I need good cheap bot hosting

solemn latch
#

just a heads up, hard to read code is harder to help for.

earnest phoenix
#

how is my code hard to read tho

solemn latch
#

you can have your code as ugly as you want, but dont expect useful help

#

🤷‍♂️ i didnt see it.

earnest phoenix
#
bot.on('message', msg => {
    if (msg.content.startsWith("/kick")) {
        var SplitMessage = msg.content.split(" ")
        const user = msg.mentions.members.first()
        const reason = SplitMessage[2];
        console.log(reason)
        if (user) {
            const member = msg.guild.member(user); 
            if (member) {
                try {
                    console.log("Kick Submission")
                    user.send(`You Have Been Kicked From ${msg.guild.name}: ${reason}`);
                    msg.channel.send(`> ${user.member.tag} Has Been Kicked.`);
                    console.log("1")
                    msg.delete(); 
                    member.kick()                
                } catch(error){
                    if(error.message === "DiscordAPIError: Missing Permissions") {
                        console.log("Unable to ban other administrators")
                    }
                }
            };
        };```
solemn latch
#

🤷‍♂️ your code seems fine to me

earnest phoenix
#

cry said it will use 400+ mb usage on startup

#

why is that

solemn latch
#

@languid inlet i like galaxygate, but digitalocean is a good option too

earnest phoenix
#

i use pm2

solemn latch
#

pm2 for hosting?

earnest phoenix
#

i think

#

it keeps the bot up

#

so

solemn latch
#

pm2 is a process manager not a host

earnest phoenix
#

oh

languid inlet
#

We all know the beset is bad.host

earnest phoenix
#

i host i from my pc

#

is that bad

solemn latch
#

worst.host is better KEKW

#

not really

#

just not viable when your bot gets large

earnest phoenix
#

bot gets large or server gets large

solemn latch
#

small bots are fine on home networks

languid inlet
#

I want to use my rpi

solemn latch
#

rpi will work fine for awhile

languid inlet
#

but I won't be able to do that for like a month

solemn latch
#

ah

languid inlet
#

so I am looking for something temporary

earnest phoenix
#

i plan on making my bot have a kick, ban and warn commands

#

is that ok to host from my pc

solemn latch
#

i got a vps thats got like 3 or 4 weeks on it i am not using, as long as your promise not to abuse it

languid inlet
#

yeah I won't

solemn latch
#

kk one moment

earnest phoenix
#

is there any free hosts

solemn latch
#

yeah but they all suck

languid inlet
#

yep

earnest phoenix
#

how would they suck

#

make the bot slow?

languid inlet
#

get an rpi

earnest phoenix
#

whats that

languid inlet
#

Raspberry Pi

earnest phoenix
#

oh i know what that is

#

how will that help manage a bot tho

languid inlet
#

it will help host

#

I have a 3B+ but I am getting a pi 4 gig or 8 gig soon for other projects

earnest phoenix
#

How can I get all the server names on which my Bot is on it?

#

Please help fast

#

@languid inlet so it acts like a mini server?

#

@solemn latch you know?

solemn latch
#

depends on the lib

languid inlet
#

its a single board computer that can be setup as a web server

#

a mini server

solemn latch
#

its pretty much a mini server

earnest phoenix
#

Please help,,

solemn latch
#

what lib @earnest phoenix

languid inlet
#

you just need stable internet and power to it

earnest phoenix
#

js

solemn latch
#

lib

#

not language

earnest phoenix
#

what ??

solemn latch
#

discordjs or eris

earnest phoenix
#

discordjs

#

if my bot has like 5 chat commands sorta like dyno and it only runs for my 1 server, will that be ok to host from my pc u think?

#

...

#

please?

solemn latch
#

I would map your client.guilds to their names

earnest phoenix
#

@earnest phoenix you could try editing it and inside the client.on() event putting the guild name

#

and when its ready it will display all the servers

#

maybe?

#

idk im new to bots

#

I can't do it now.

solemn latch
#

client.guilds.cache.map(g => g.name)

earnest phoenix
solemn latch
#

will return an array of guild names

earnest phoenix
#

client.guilds.cache.map(g => g.name)
@solemn latch thank you

#
bot.on('message', msg => {
    if (msg.content.startsWith("/kick")) {
        var SplitMessage = msg.content.split(" ")
        const user = msg.mentions.members.first()
        const reason = SplitMessage[2];
        console.log(reason)
        if (user) {
            const member = msg.guild.member(user); 
            if (member) {
                user.send(`You Have Been Kicked From ${msg.guild.name}: ${reason}`);```
#

I split my messages by " "

#

So I can get the kick command, user, and reason