#development
1 messages · Page 1373 of 1
if i don;t delete them it would pile up righ?
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;
@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!
ye but im confused on how to keep a webhook which can be changable
@umbral zealot My youtube api not support live stream u know why
its not changeablew
@umbral zealot its about eval that sets a value into the database to appear on userinfo
when u use it u can override the name and pfp
but i don't really use eval
ye ik i saw the webhook.edit in the docs
@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.
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
My youtube api not support live stream u know why@drifting wedge
like how can i get datetime into unix
🥺 🥺
Why
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
cuz they didnt add that
idk i dont work for youtube
it doesnt tho
for anybody
Oh
Right, I have managed to fix it, thanks anyways
👍
can someone help me with this SQLite bs please i think everything's right? it looks it... but it's not working for somereason..
btw can someone give me the link of the default avatar in discord
@ivory seal what ?
ty
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 ?
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
@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!!!!
"
If by any chance, can a ready event be triggered more than once?? For one session
If by any chance, can a
readyevent be triggered more than once?? For one session
@rocky hearth more event listeners
we need that on starboard lmaoo
@ivory seal thx
wat?
It can if you destroy the client and then login again
client.destroy?
@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)```
Awesome. Maybe someone that does python can help 👍
oh idk python
is there any way u can get a webhook with the name of the webhook or its id?
@earnest phoenix it's not bullshit you're treating it like bullshit
@earnest phoenix no no no, it is bs,
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
delete from BlacklistedUser_IDs where User_IDs, Reason = VALUES(?, ?) invalid SQL
that's not how WHERE works
ah ok thanks @cinder patio
Actually, you cannot fetch a single webhook
oh
@earnest phoenix before calling sqlite bs, maybe you want to learn how it works? https://www.sqlitetutorial.net/sqlite-where/
@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?
What's BS is people button mashing random code then complaining it doesn't work 😛
but isn;t webhooks with channels lmao
but isn;t webhooks with channels lmao
@ivory seal *text channels
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!
i wouldn't use it if i didn't have to😭
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
lmao
u don't **have ** to use anythng
they are easier db's like enmap to use especially if u are a beginner
I'd recommend quick.db for beginners
Basically a wrapper for SQLite that is wayyyyyyyyy easier to use for beginners
Woo is typing...
once you learn more, you can use sqlite
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.
true true
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.
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
🤷♂️ 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 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.
as we said before use enmap or quick.db first
then properly learn sql/sqlite
then use it
and you'll need to learn every single one of those
no use copy pasting code or just getting temp fixes from somehwer
doesn't fix it in long term
you guys a recommending enmap/quick.db to someone who uses python? lmao
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)```
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 wait for me to start up among us then send the code so we can play together
@earnest phoenix lmao
Help me 🥺
@slender thistle 🥺
lol idk python so...
eh
Ctx.send would be sending to the member right?
too many snakes today
ctx.send OUTSIDE OF COMMANDS
Glad to see more python users on
@earnest phoenix you're actually acting like a baby now. Everyone here
LEARNTprogramming 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.🤡
Keep your cool
too many snakes today
@umbral zealot true
@sick fable Do you have the members intent activated?
does enmap work on python?

nvm
too many snakes today
@umbral zealotnode i-got-that-joke.py
enmap isn't Python
What do you mean by server members enabled? @quartz kindle
I'll help you with js, no worries @sick fable
ye im just an idiot lol
go to your discord developer portal
Tim I'll leave this to you, sorry and thanks, I've got a paper to write until tomorrow and it's almost 10pm
I'll help you with js, no worries @sick fable
@rocky hearth they literally said they're a python dev
@slender thistle Best of luck bro
@slender thistle good luck xD
go to your discord developer portal
@quartz kindle hmm?
Ohh
Kk
Should I enable it or disable it? 🤔
Kinda dumbass in coding
guys why isn't my code running
node main.py
server members has to be enabled, otherwise you will not receive an event when a member joins
Oh
or anything member related
thats code?
should work now
guys why isn't my code running
node main.py
@earnest phoenix somebody help please this goddamn shit is not working!
wait are u serious?
no
i was like ... for a moment lmao
i just started a bot project thats gonna take months lmao
The problem is the question was too well formed
People would make you think its the code
Hi
Hello
someone needs to learn about loops and functions 😄
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?
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
but thats basically stealing someone else's hardwork
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
those people: it is what it is
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
is prefix defined?
and cmd?
Why are you using an else statement for the if statement just add a return that ends the function from executing further
shoudn't it be let member=message.mentions.users.first()
or shoudn't it be args[x]
no need to ask permission
lemme try it
or
shoudn't it be args[x]
@ivory seal this code block is perfectly fine
@earnest phoenix
why are you slapping them with that image
oh
I'm coding a moderation bot, so how the bot Will auto detect the Mod role of each server?
cause why not
thats my mitake rip
@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
@earnest phoenix you will have to search for the role in the server and then see if the person has it
it says member.kick() is not a function
But bot is for public servers then how can i code the role for each server?
@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.
@umbral zealot gimme that line of code
@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
umm once u get the cached user u can do message.guild.member(user)
umm once u get the cached user u can do
message.guild.member(user)
@ivory seal i already did tho
@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
Ok


once u get the cached user remember to search that in the guild
👍
that applies to ban command too
@earnest phoenix i reccomend u reading guides
and database npm documentation
that helps a ton
Ok
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
gn
Thanks
Imagine thinking "developing" means "copying and rewriting code from tutorials and guides"

How to add our bot here for testing?
Adding the bot here and becoming verified have nothing to do with each other
oh he means discord verification?
Idk
@lyric mountain a person told me that you had to add your bot here first
what's a good vps for hosting that is also really cheap
It was the other way around actually
hm
You had to have your bot approved and then it'd be added here
if you want just cheap, servercheap is cheap
You "had"
Discord is not allowing to invite the bot to more servers. It needs Verified
@solemn latch is server cheap good also?
Discord is not allowing to invite the bot to more servers. It needs Verified
@earnest phoenix that is discord verification
its about half the performance of galaxygate
but cheaper by a lot
@lyric mountain how to verify it?
Is there any others @solemn latch
When your bot gets invited to 76+ servers you'll receive instructions in dm
theres contabo or whatever its called
Yep, contabo
Yeah I heard about that one
I'd not say half
Contabo is pretty good, the only issue you'll have is ST issues on cheapest plan
O
Heroku is also good for bots
Not the free plan
You can get a VPS instead of paying for heruko, though
I'd host my bot on my molded orange but not on heroku
heroku paid plans are like 10x the cost performance.
Is do good?
Do?
@solemn latch i agree with u
Digital ocean
great, but isnt the cheapest
Ah
if you need drive speeds
also heroku is offering github students pack
DO all the way
Hm ok
1 year google cloud is free
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
100% better
They are for websites or services
Not for bots
Never were, aren't and will never be
@solemn latch what's google cloud
Google's vps
they offer a range of services
google, amazon, microsoft all of these are same or not?
they give $300 for up to a year
No
not at all
which one better
O
google and amazon have a ton of features
Hm
"better" is a subjective term
I get thi error everytime I'm trying to start my bot? FetchError: request to https://discord.com/api/v7/channels/764114123185193041/messages failed, reason: getaddrinfo EAI_AGAIN discord.com
how do i delete a role with discord.js
@ancient nova I'd recommend going to DJS support on that one chief
@earnest phoenix same with you
Go to djs server
kk
Wait
Why are you sending everyone there @thorn yew
@earnest phoenix whats ur issue
@earnest phoenix they have djs questions
@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.
@earnest phoenix I didnt mean that lmao
I'm pretty sure it's got it
guys, is there a way to set bot's prefix in guild?
with a database @feral furnace
without database no right?
quickdb vs mongodb which would be faster? and which would be able to handle huge loads?
well, how will you remember what each guilds prefix is between restart?
the queries form mongodb seems to be slow. maybe its because im using a free ver on mlab?
If you are on windows do:
ping discord.com
If you are on linux do
curl discord.com
@ancient nova
well, how will you remember what each guilds prefix is between restart?
@solemn latch y i know that was just a question XD
well, how will you remember what each guilds prefix is between restart?
@solemn latch you can store the guildId as key
quickdb vs mongodb which would be faster? and which would be able to handle huge loads?
@crystal wigeon sql-based
is there a documentation or video for that case? @solemn latch
@crystal wigeon QuickDB isn't a db type
i searched but i couldnt found
ah i see
Big load of data may be slow on non relational dbs
i dont wanan switch to postgres i'll have to re-write most of my queries ;-;
@earnest phoenix I can open my console
You can't know.. @lyric mountain It's based on your use
it says it can't connect
Are you on linux or windows
He said big data
yeah
vps uses linux
What is big data
like 50k data
@ancient nova do curl discord.com
50k pog
and tell me what happens
we
I can't open my console
ye
Non relational is not meant to retrieve huge loads of data
data isnt a metric
Like, it's for quick access
Who said sql is
...dude
but i thought it could still handle few thousands of data
thanks
well postgres does have better performance
a few thousands of data doesnt make sense
but its just not freely available
Have a look at that article

😂
What are you on about g
You're comparing glass to sand
No I'm not
chil
Nosql and sql are both relational
my database can handle a few thousand requests per second on my current server.
dudes asking about 50k "Datas".
is there any free postgresql freely available?
not sure if it really matters at whatever 50k data is
Postgres is free
but im using the free ver on mlab
Yea well it's free..
yeah, free stuff is slow
You won't get better performance without paying
money = fast in all cases
Well you might get some better performance without spending money
well i dont wanan make the switch until my bot goes online ;-;
xD
You can transfer after it's online
if your more specific about what 50k data is, it might be a bit more clear 🤔
and all
50k guilds?
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
the server data and character details
what do you store about each guild
Period
@lyric mountain Why wont you read the things I sent lmao
No because I don't want to spend my internet plan
^^
No
Yes
Nosql is sql
Lmao
bruh
Structured query language
Not only structured query language
lmao
Please stop your baseless argument
"no" in nosql isn't a negation
yeah nice
A NoSQL (originally referring to "non-SQL" or "non-relational")
It isn't funny anymore
Goddammit you are plain dumb
what?
Nosql IS NOT a fcking negation of sql
If you think you are correct; go contact wikipidea, mongodb, and various other companies to fix their blogs
yo chill
You aren't correct, stop spreading bs
he just playing
Or he isn't and is really dumb
when someone has questions about databases, you dont troll answers.
yeet
I've had enough, can't argue with rocks
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
even if one of you are correct, it doesn't matter because you're just lashing out at each other
As I said, think what you want, I'll not argue with rocks
This ain't the place for that
Lmk when you apply for a job and get laughed at
yo chill he's a kid ;-;
I'm already a developer in an automation company
noice
Think you're better than anyone? Mr Fullstack Developer
I didnt say that
I claimed and proved my point
Link me an article that support your point @lyric mountain
Still arguing?
@earnest phoenix when I tried a different vps my bot ran without problems
it must be the vps I was using
ay
some outage maybe
🙂
@lyric mountain I might be wrong, prove me wrong 🙂
🤠
I already said you're right Mr Fullstack Developer
Now stop trying to fulfill your ego
And don't ping me for useless stuff
@lyric mountain k
Will I have to call a mod?
@lyric mountain naaahhh
What a kiddo
👍
They both are different db system
Hmm but which is better
Id depends which suits u
Also I'm completely new to all of this
Depends on your usage, sqlite is the most lightweight db probably
But it has barebones features
Wdym by barebones
The most essential stuff to work with
Also mongodb is paid or something I think
nah
Nah?
mongo is more versatile. U can put anything u like without any restrictions, simliar to a js object
Mongodb has paid plans
U can have only one FREE cluster
but u can download and use it offline. And create as many dbs as u want
From*
You can download the community server, it's completely free
I can't ssh into my vps, always getting dup - error: DuplicatedHandle() :6 dup() in/out/err failed
is the vps online?
im using Lua discordia
how do i make it have like
the auto fill thing
uhh
not sure what its called
the type suggestions
lmfao I'm the only one here code my bot in a mobile app
yeah
idk
:00
where the people that use Bdscript
@solemn latch
but like
shouldnt it be the same for every language
to enable the type suggestion thing
its vsc not the language i think
i would presume no, pretty sure vsc supports it by default for node.
i didnt
is there a button thats like "add library"
it was default
oh
there are modules
How to do java skript when you vote the bot on top.gg it will send a thank you message on discord
@solemn latch windows
?
wdym by which one arey ou using
vsc
no
i dont know what u mean by extension
i dont have one
i thought u meant module
then type lua
do i use a module
How to see how many shards are existing?
the first one seems pretty good.
i would just do a .count or .length on your shards
ok i got one
this.shard.length?
look at its features
dont just install a random one
install one with the features you want
🤷♂️ depends on your lib @tired panther
sorry ive never done this before
discord.js @solemn latch xd on node js 
It would be shardingManager.shards.length afaik or is it size? whatever you get the point :p
Someone's coded with DBFD?
im sure someone has, at some point
Is there anyone learning Js, too?
should delete it before a mod shows up and bans ya
Who's tired of coding bots
@solemn latch is it possible that it cant integrate the auto fill thing
idk i am not a lua user
@dense patio :D
auto fill depends on the language
100000000000% of the time
you should ask in a lua community.
theres no lua servers
What would I do without Spotify?
all of them are for roblox

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
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?
I didnt realize lua was such a dead language
only things that use it are gmod and roblox
@dense patio what are your intents
yeah
none
feelsbadman
nah
but its high level and extremely verbose so i prefer it
is your bot verified
yeah
well you dont really need any sensitive intents for guildCreate and guildDelete
so you didnt specify any intent in your client options?
can't add any if i don't have them for the bot app
nah, theres more than those intents
those are only sensitive intents
select all events that you need
get the number and put it under new Discord.Client({ ws: { intents: <here> } });
so you definitely need GUILDS for your feature to work
while i'm here, i have another question
how do i check if the bot has permissions in a certain channel?
you can use new Discord.Intents(arrayOfIntents) but providing the number is good enough
channel.permissionsFor(member).has(permission)
that works too, you just have to specify the channel instead of a member
ah
member.permissionsIn(channel)
channel.permissionsFor(member)
oh huh
that's what i had
i think the error i got was that member.permissionsIn was not a valid function
self explanatory?
eh
the member could be a user instead of a member
users have nothing to do with guilds
👍
Hello
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)
the guild owner is not cached so it's null
how do i get it?
you have to fetch it; await guild.members.fetch(guild.ownerID);
ok thanks
assign it to a variable
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
nvm
o
just GUILDS
know someone why i cant see client.guilds.cache.first().owner?
if you think your bot needs it then select it
hm
for example guild messages
well everything worked before
obviously you need message events
when i didn't specify intents
Hello, so I am making a file uploading service via nodejs on repl.it, and I have successfully done that. The problem is, is that whenever I try to view an image, example: https://pix.pixsite.repl.co/i/pixupload-1604857032956.png , it doesn't load yet it is in the repl: . Any...
you either use the link i gave or new Discord.Intents(["GUILDS", "GUILD_MESSAGES"])
how do i use the number
new Discord.Intents(NUMBER)?
no
😓
where
do you have the number
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
yeah 1537
in the new Discord.Client?
yes
ok thanks
inside ws: {}
i see
is creating a canvas as an attachment better than as an url?
also when I use
canvas.toDataURL()
the output is over 2048 characters.
the url will be a ton more than 2048.
You should make it an attachment since thats what attachments are for.
but If I were to put the image onto an embed I would have to change the attachment to an url
embeds take attachments
upload the image xd
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
embed.attachFiles()
embed.attachFiles({ attachment: buffer, name: "filename.png" }).setImage("attachment://filename.png") for example
buffer can be canvas.toBuffer()
Maybe I would look at the pages html to determine that
is there a way to ban a user who is not in a guild
Oh, intresting. I belive so but am not sure.
How long of a cool down is recommended between message edits,
You should follow the rate limit headers. Usually, your library handles that for you
like 10s?
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.
make it like a year
So how many seconds do you recommend?
~10-15s
Ideally you wouldn't make it on a timer at all.
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
dank memer has diffrent ratelimits due to its size right?
huge bots get their own set of rates afaik.
why is guild.ban not working
its members.ban()
i want to ban if the user isnt in the guild
wai-
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.
@pure lion
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.
Your library should handle rate limiting
and it does
Discord.js handles ratelimits iirc
it handles ratelimit for you
because you hit that ratelimit
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.
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
K
how would i override the dark mode color of something like the long description?
oh this is for bot development lmao
It's fine to ask that kind of question here.
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);
}
the formatting though
btw it in a embed
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?
nope
belive it wont change it on any existing server, but if it joins new ones it will?
what I should do
guys, how do you check how many voice channel your bot is in?
should I make bot rejoin it?
rename it
the role name doesnt matter, to be honest
@pale vessel it is untouchable
I've wrote this code bot.voice.connections.size which worked until the intent update of curse
yea @solemn latch
i can rename it, at least for me
should probably not link nsfw stuff in sfw channels
if you reinvite it, the role name is still going the be the same since you only changed the nickname
ok
i mean edit out of your message now 🤔
i just edit it
@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
ic
lol big oof
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
looks like mongoose
@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?
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
cry, it's a fucking pain looking at it, i can't even try to explain
i know lol
no checks whatsoever
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
I need good cheap bot hosting
just a heads up, hard to read code is harder to help for.
how is my code hard to read tho
you can have your code as ugly as you want, but dont expect useful help
🤷♂️ i didnt see it.
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")
}
}
};
};```
🤷♂️ your code seems fine to me
@languid inlet i like galaxygate, but digitalocean is a good option too
i use pm2
pm2 is a process manager not a host
oh
We all know the beset is bad.host
bot gets large or server gets large
small bots are fine on home networks
I want to use my rpi
rpi will work fine for awhile
but I won't be able to do that for like a month
ah
so I am looking for something temporary
i plan on making my bot have a kick, ban and warn commands
is that ok to host from my pc
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
yeah I won't
kk one moment
is there any free hosts
yeah but they all suck
yep
get an rpi
whats that
Raspberry Pi
it will help host
I have a 3B+ but I am getting a pi 4 gig or 8 gig soon for other projects
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?
depends on the lib
its pretty much a mini server
Please help,,
what lib @earnest phoenix
you just need stable internet and power to it
js
what ??
discordjs or eris
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?
I would map your client.guilds to their names
@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.

will return an array of guild names
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








