#development
1 messages · Page 1028 of 1
discord js
bot.users.cache.size not show correct number
rly
<Client>.user for the client user, then use the .avatarURL method. Make sure you're logged in before trying to use it.
while i have solutions, they'd be like this
- Get index after
filter ->>and use #- method to delete it(would be optimal) - Return the whole array with one call, parse in code, do another call with new array
- Destroy array, loop filter, remove/edit unwanted obj, reassemble array, save it
@quartz kindle
@hazy girder hepsini gostermesi icin ne yapmamiz gerekiyor
those are the only 3 things i can figure out, the first would be ideal, but without index position im stuck, thought there might eb a hacky way around it
onu hatırlamıyorm
omg thats a function xD. Thanks bro
@blazing ravine
client.guilds.reduce((a, b) => a + b.memberCount, 0).toLocaleString()
pastebin
mb
bu 12de çalşr mi idk
ik
thanks
I have this code: https://hasteb.in/ewelumud.xml and it doesn't change the background colour of the full screen, does anyone know why?
this is all it does:
is this a bot ?
no
@opal plank so you want to delete an item, but you dont have its index?
you want to delete it by item content?
@digital ibex something could be overriding it
basically, yeah
oh
use inspect element
doing it with relation tables might be easier, but i kinda wanna learn how to mess with jsonb tables too
const question3 = () => {
return new Promise((resolve, reject) => {
rl.question("What will your bot be doing?", async function (activity) {
bottxt = bottxt + '\nclient.on("ready", function(){\nclient.user.setActivity("' + activity + '");\n});\nclient.on("message", async message => {\nvar command = message.content.toLowerCase().slice(settings.prefix.length).split(' ')[0];\nvar args = message.content.split(' ').slice(1);\nif (!message.content.startsWith(settings.prefix) || message.author.bot) return;\n'
resolve()
})
})
}
```for some reason i get the error: SyntaxError: Unexpected string at line 31 witch is the part with the rly long string
My bot is hosting on Heroku. But my bot is doing the transactions 2 times. It shows Uptimes differently in the Stats command. Why is it How can I solve it
use glitch :Dab:
neither
ik
rly
nor heroku nor glitch are bot hosting websites
glitch is only good for webpages
@hazy girder
they agressively go against bots being hosted
hm, @pale vessel any ideas?
idk
can't really help unless i have access to the live site, sorry
oh rip
oh well
i want ask DBL user is 100k+ why in my bot status only 20k?
@marble geode your bot does not cache all users
@pale vessel how to do it i use client.users.cache.size
@earnest phoenix canvas + gifencoder, alternatively, if you're lazy, use canvacord
why would you cache all users?
well, you can enable that option in client options
status for what?
but it might eat up your memory
If you just want to cache all users for a status, you'd be better off adding all guilds member count together
can anyone help me?
duplicates is one thing but it's way better than caching 100k users
ty for info :)
you definding args in the midle of txt
@opal plank im making a bot generator and im puting in script for a js file
go on...
use ``im pretty sure the next ' breaks the string
ok
yeah thnx it worked
👍
well it can make very basic bots now
@opal plank i gave it a little research and it seems you're right, there is no easy way to delete array items by value
thats why i needed a hacky code lol
i'll probably return the whole array instead and parse it in the code
@opal plank ty for info :) but i only 12 years kid 😄
np
@blazing ravine how to do that?
also, you need to be 18+ to use api @marble geode
wut
13+ to use discord, 18+ to use API
you do
legally bind
where u getting this info
im under 18, ik so many bot devs under 18 "breaking tos" then
my friend is 9 years but he bot is very good
wtf
ya
The developer ToS?
he corder to
im guessing you're too
he know c++, html, js, java, pyton, css

heya im trying to make my ss command not be retarded but
if (!msg.author.id === '528229753258246145' && !msg.channel.nsfw) {
return msg.channel.send('Warning: you must be in an `nsfw` channel to run this command')
}
not woerkinegrwger
ill brb feel free to shit on my code or whatever
i am lie abt my age lol
umm
@opal plank Which ToS? The https://discord.com/new/terms or https://discord.com/developers/docs/legal
!msg.author.id === "someid" would become false === "someid"
You're probably looking for msg.author.id !== "someid"
a
yay the bot generator works
My bot is hosting on Heroku. But my bot is doing the transactions 2 times. It shows Uptimes differently in the Stats command. Why is it How can I solve it
speaking of Discord, in their redesigned homepage, they show their UI with a dark blue but we're still using plain old boring grey 😔
don say "dont use heroku"
how're u getting the uptime?
i use panel lol
btw is there a way i can run cd in a batch file to cd to the batch files location
how're u getting the uptime?
@digital ibex<Client>.uptime
?
you asked
im asking the guy a question, he's saying the uptime is different lmao
i've used it a bit
this might be for verification tho @slender thistle
wanna make a purge command or log it when the event fires?
u dont need to be 18+ for verification either
of messages? @earnest phoenix
yes
channel.prune time
@opal plank Not related to Discord
Went through Discord ToS, developer ToS, and privacy policy
doesn't say that anywhere
i'll double check where thats from, but it was being said in DAPI for quite some time under new changes in policy
do u know how to make a kick ban mute for your bot
what language?
java script
@earnest phoenix i was trying that too it kind of didnt work out
and mute u do urself
@digital ibex wdym?
mute has nothing to do with any js libraries
like, theres nothing called Member.mute or anything
uh
no issue i made mute command now
@digital ibex can u help me make kick and ban command for my bot
I just told u how to do it
.addField("Emoji Count", `This server has ${msg.guild.emojis.size} emojis`)
.addField("Roles Count", `This server has ${msg.guild.roles.size} roles`)```
I figured it out @slender thistle
@delicate shore what ru making??
Member.ban(messages to delete:Number, reason:String)
Member.kick(reason:String)
oh
night hyper ^
You know how to check if you need cache @delicate shore
Docs
okk
@delicate shore my project is a fun and moderation bot
idk about server stats
btw java and javascript are two completely different things
oh, i've been coding in java this whole time 😳
xd
im doing java script
javascript
yeah
hence the name discord.js @digital ibex
@slender thistle https://github.com/discord/discord-api-docs/pull/1780
its not yet in place
because java is a completely different programming language
though i was correct, they are changing the policy
oh
tbh, I wanna move away from js
oh God
why
and move to a language like c or something
well uh
i was indeed correct, though it only applies in august

But what exactly is defined as "legal age to form a binding contract with Discord"
@opal plank @slender thistle
to sign a contract
so under 18

i remember this convo on dapi a while ago but i didnt have the source on hands
so you can still use the API but only under your guardian's approval
:dab:
thats actually a rip
the problem is, nobody actually asks their parents anything lol
^^
yeah lmao, i dont even have a credit card so ye
https://ptb.discordapp.com/channels/264445053596991498/272764566411149314/729718602848272417 theres even people admitting being under 13
well im 13
¯_(ツ)_/¯
i was in the roblox discord for some reason and the amount of people who came and where like 7 and got banned
but im a better boi cause i have a green name
ur 14, not that old.
actually 4
most of the people with the bot dev role dont even class as beginners
I'm 16 but feel ancient.
the reason you need to be atleast 14 is COPPA
the problem is, nobody actually asks their parents anything lol
@quartz kindle totally not relatable
^
did you ask your parents to use things on the internet?
never
I always asked my parents
\s
like why ask ur parents for vbucks just buy em
lmao
lol
freedom
person: mom can I have 5 dollars for this game
mom: no
person: dad can I have 5 dollars for this game
dad: yeah sure
ma give me you creditcard this gamergirl on Twitch wants a new PC
fs commits no when i run it in an exe
One time I got a winlock and managed to get rid of it by myself but my mom knew about it
lmao
commit help pls
other than that, not a single time
What's a winlock
lol
A program essentially at the top of all windows that doesn't let you do anything
in my school work today i have a task saying try to convince somebody to give you £5
and it runs on OS startup too so it's quiet hard to get rid of it if you have no idea what you're doing
ah so it locks you out of everything
yeah
back when i was 12 we only had a dial up connection, so pretty much everything on the internet was annoying to load
also the parental thing was easy to exploit in windows XP 2003
the dumbest thing that's happened to our computer is my little brother falling for one of those fake "your computer has a virus" popups
my parents never learned how to use any sort of parental thing, i was always the one having to teach them how to do things
tf lol
I have a question
Is it possible to code a bot using a mac?
yes
yes
teaching your parents how to parenting
no macs suck to much
yes
why wouldn't it be
tim is a legend
i made one fake popup any my mom went crazy and wanted to get a new pc
bruh i had to teach an entire school how to use a computer lol
tf
@earnest phoenix https://discord.js.org/#/docs/main/stable/class/GuildEmojiManager
then .size
my dad got a fake fbi virus warning that locked his pc
and i removed it for him lmao
lol
*pray to tim*
if(command === "serverstats"){
if(!msg.member.hasPermission("MANAGE MESSAGES"))
return msg.reply("**You need atleast `Manage Messages` perms to use this command**")
const embed4 = new Discord.MessageEmbed()
.setColor("RANDOM")
.setTitle("Server Info")
.setImage(msg.guild.iconURL)
.setDescription(`${msg.guild}'s information`)
.addField("Owner", `The owner of this server is ${msg.guild.owner}`)
.addField("Member Count", `This server has ${msg.guild.memberCount} members`)
.addField("Emoji Count", `This server has ${msg.guild.emojis.cache.size} emojis`)
.addField("Roles Count", `This server has ${msg.guild.roles.cache.size} roles`)
msg.channel.send(embed4)
}```
fake fbi thingy demanding a bitcoin payment in exchange for not arresting you for supposed illegal activities found on your pc
'dont worry dad, i'll hack em'
it does not reply
ogod, theres a person under 13 here
fake fbi thingy demanding a bitcoin payment in exchange for not arresting you for supposed illegal activities found on your pc
@quartz kindle when you hop on pirate bay and get fbi virus
@pure lion
help pls
dont ping
@digital ibex 'a'? prob a bunch
MANAGE MESSAGES is not a permission.
why
MANAGE_MESSAGES
anyhow, getting offtopic
sweden made pirate bay
yeah, true
some people
no
some
they dont
shut
marine, the defualt help command?
there fake
aight im out
@Home_Spice
How do I make a help command for python
How do you create your commands?

¯_(ツ)_/¯
I have a bot that has some commands but idk how to make em
so you've never made a command before?
How did you code the bot
show us a bit of the code
Help command should come after you make some commands imo

if its too big put it on pastebin

I have a bot that's it
whats those webs again i forgot
'help command should be dynamic so you can do it any stage of your deployment'
id u dont have code yet i recommend discord.js
Welp many people helping at once is a clusterfuck
I got a ping
so you only made a bot account?
I used one of the discord bot maker apps that's how I did some
ffs
Lots of people helping = good i guess?
no
no lmaoo
theres a discord bot maker for python?
he's not using javascript
@digital ibex he hasnt wrote any code yet
but who pinged me in here tho
nobody
i hate hava
It becomes a total fuckery that one moderator can't manage and it causes a ton of misunderstandings and confusion
I have python
well he asked how to do it in python 
So can we tone it down with the amount of people trying to help
he asked does anybody use python
i'll remove myself for that sake of that
To help
back to postgres fuckery
and nobody does
your fake
bruh
this is development
:dab:
shivaco does
@earnest phoenix if you made a bot in a bot maker, then keep using the bot maker. if you want to start using python, then you need to start from scratch, you need to learn a bit about the python programming language and how to write a basic python program, before you can even start making a bot in python
dev elopment
python is a general purpose programming language, its not specifically made for discord bots, so it requires some general programming knowledge
python is a general purpose programming language, its not specifically made for discord bots, so it requires some general programming knowledge
@quartz kindle sad
@quartz kindle when I try to send an embed with discord.js-light with message.reply it won't work lol
umm
because embeds are embedded
.reply("",embed) @marble juniper
ah
why do I feel like if a programming language is made for discord would be shit
discord.py has a commands extension that you can use. It makes managing commands simpler than it is and there's a default help command that most users use
why do I feel like if a programming language made for discordwould be shit
$addRole(user)
$deleteTheBot()
ok im stupid
does anybody know why fs dont work when compiled to an exe
https://corona-virus.is-inside.me/UCocQmY8.png
@marble juniper did you put anything in the string
now i think about learning GO and write a bot with it
@earnest phoenix why are you trying to compile a nodejs module?
@earnest phoenix no ik how to fix the issue thanks to tim lol
ok
poll time
make a bot in java
make a bot in c
make an esolang and try not to die
yes
ever met ascencia
@earnest phoenix why are you trying to compile a nodejs module?
@digital ibex im running a js file that uses fs
not exciting


PYTHON IS THE BEST
ok just so u know, ur not compiling fs
its fake noody uses it
python is good
-langwars
ok just so u know, ur not compiling fs
@digital ibex yes
k
send ur code
send ur code
@digital ibex it works when i use it in a bat file
how to make wanted with canvacord?
npm uninstall canvacord
npm i canvas
why aren't these trolls getting muted yet? 
:O
train a AI to detect Trolls. then add this AI to a bot
if perosn does s!emote bruh
https://pastebin.com/97iA4NRE @digital ibex
and the bot replies with the emoji
get the bruh emoji and its ID

then do <channel>.send(<:bruh:<ID>>)
gtg
fuk off non gaming fish
im so scared
Can we not
^
This channel has already been a clusterfuck for the past few minutes and if anyone starts language wars or pointless arguments, I'll start muting
shivaco do u know why fs doesnt work when i compile my js file and bat file to an exe?
Because it doesn't want to. I don't know JS
ok
epic
gaming fish, "doesn't work" is very broad. explain more
so nothing happens and i get no error
do u know where its breaking?
its not breaking everything works fine even the stuff after
and it works as a .bat file
then whats not working?
the part where it suposed to make a new .js file
afaik, you can't create a file with nodejs
its possible that there is some wired permission issue in the filesystem
maybe
idk then, ive never heard of it so i can't really help
create one for Linux and see if it works there
idk how to do that
wait ik what the issue is
fs makes a file in the same location as the js file wich dont is inside the exe so i need to change the output
Collection [Map] {
'ban' => { run: [AsyncFunction] },
'btc' => { run: [AsyncFunction] },
'check' => { run: [AsyncFunction] },
'close' => { run: [AsyncFunction] },
'create' => { run: [AsyncFunction] },
'eth' => { run: [AsyncFunction] },
'help' => { run: [AsyncFunction] },
'invoice' => { run: [AsyncFunction] },
'mute' => { run: [AsyncFunction] },
'tax' => { run: [AsyncFunction] },
'unmute' => { run: [AsyncFunction] }
}
How could I forEach a map like this?
And get all the command names.
@earnest phoenix Collection.forEach
That just gives me the objects.
You can use .keys() to return an Iterator of all the keys.
Then use the spread operator to get only an array of strings
which will be the command names
you can
How would I do that? Because it's not working
It says .keys().map() is not a function.
(node:34236) UnhandledPromiseRejectionWarning: TypeError: client.commands.keys(...).map is not a function```
message.react('™️')
I got it haha
Map.keys() returns a key iterator, so you cant map it directly, you'd need to use either [...] or Array.from()
[...keys]
\🚫
\👍
use default:
Also, ideally that's user disableable
Since bots can share prefixes, having it react to a command that your bot doesn't have, may be annoying if they are doing commands another bot has.
const otherg = new Discord.MessageEmbed()
.setTitle("Gay-o-Meter")
.setColor("RANDOM")
.setThumbnail(`https://cdn.glitch.com/38b33121-f779-43cc-a95d-c99a7cf7a9d4%2FLGBT_Rainbow_Flag.png?v=1594052534262`)
.setDescription(`**${check} ${finallolgg} % gay**`)
.setFooter(`** Bruh That's Gay**`);
msg.channel.send(otherg)
}```
this is my code
but
this is result
let check = args.slice(2).join(" ")```
this is how i define check
you need to tell us what's wrong
i dunno
not just throw us some code and say "this doesn't work". is the issue the field description?
Okay, now what's wrong with it exactly. Is it the **Bruh that's Gay** part? If so, that's the footer, and you can't use markdown there.
i think you must write let check = args.slice(0).join(' ')
I'm not quite sure what check is even doing
Sadly I still don't understand. You're explaining this quite vaguely. check is args.slice(2).join(" ") and assumed to be an array of strings split by a space, but that would likely end with an empty array. So, you then have finallolgg, which we don't even know what it's doing.
gaming fish can you explain the issue you're having with it.
I would use pkg to make exes
basicly, when i run my js file with a bat it creates the file im trying to create, but when i turn it into an exe it doesnt make the file
ok wait
i will send whole code
if(command === "howgay"){
var randomgg = [
`69`,
`0`,
`1`,
`2`,
`39`,
`100`,
`50`,
`46`,
`72`,
`37`,
`40`,
`4`,
`99.99`
];
let finallolgg = Math.floor(Math.random() * randomgg.length);
var check = args.slice(2).join(" ")
if(!check){
const youg = new Discord.MessageEmbed()
.setTitle("Gay-o-Meter")
.setColor("RANDOM")
.setThumbnail(`https://cdn.glitch.com/38b33121-f779-43cc-a95d-c99a7cf7a9d4%2FLGBT_Rainbow_Flag.png?v=1594052534262`)
.setDescription(`You are ${finallolgg} % gay`)
.setFooter(`Brvh that's gay`);
} else{
const otherg = new Discord.MessageEmbed()
.setTitle("Gay-o-Meter")
.setColor("RANDOM")
.setThumbnail(`https://cdn.glitch.com/38b33121-f779-43cc-a95d-c99a7cf7a9d4%2FLGBT_Rainbow_Flag.png?v=1594052534262`)
.setDescription(`${check} is ${finallolgg} % gay`)
.setFooter(`Brvh that's gay`);
msg.channel.send(otherg)
}
}``` @sudden geyser
If your just trying to get the second arg, just get the second arg
🤔
Or first arg?
gay-o-meter sounds so wrong
idk
args[1]
but
My bot is hosting on Heroku. But my bot is doing the transactions 2 times. It shows Uptimes differently in the Stats command. Why is it How can I solve it
dont use heroku
it can be more than 2 letters
no
Args are words, without spaces
heroku isnt designed for hosting bots is super funky
a function
????
?
?
?
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}```
sort of, but it can use improvements
i spilt juce on my laptop and now the key presses are not satisfying
it's as simple as multiplying the result of Math.ranodm() by the maximum
Which is what he is doing
@solemn latch it only has 10 awnsers :/
the length of the array
how to let
I think that's what he wants
hmm
Then use your existing randomizer, but do it with 100 instead of array size
And feed that number in
message.channel.send(BLABLABLA(1, 100))
@spare mirage i wanna let it a const and set it as description
Math.floor(Math.random() * 100)
Will give you a number from 0 to 100
100 would be super rare tho
Math.round would be better
no it would be equal
Floor rounds down
So if the number was 99.99 it would come up as 99
why setstatus not work
``
tim is you see this help me i constantly get this error with discord.js-light https://lumap.is-inside.me/w9fQdpKN.png wtf i didnt changed anything
@tight plinth if you're using .members.fetch(id), do .members.fetch({id:id}) instead
@spare mirage no?
ok
it is on v12
thx @marble juniper for providing code that dont work
ah nvm
oh
hmm
@tight plinth smh im using discord.js-light for like 10 minutes
hmm
just put dnd
provide twitch url
^
in the options
@earnest phoenix whats library
Thats language
japOS?
no
Spotify doesn't allow that
bots can't use rpc
thanks
np
how do i give higher permsions to an exe file
apparently the error is triggered from this file (im trying to do my avatar command) https://lumap.is-inside.me/ClCSTtvq.png
without the comma @blazing ravine
weird
bot.user is null
It's self-explanatory: bot.user is null. Are you logged in
put this code in the ready event
^
@quartz kindle https://canary.discordapp.com/channels/264445053596991498/272764566411149314/729744051074498630 any idea why?
ok
That's another library
.catch
@tight plinth .fetch(id) instead of .fetch({id: id})
Ohhh
how do i make my bot message on another specific server i want?
more code @blazing ravine
no like
im trying to make a log server for my bot
like
when my bot joins a server it notifies me on that log server
wait that needs webhooks right
not work
bot.user.setPresence({ status: 'dnd' })
.then(console.log)
.catch(console.error);
Its still pretty much the same way @elfin flower you can get the channels once on startup, and send the messages each time
i dont wanna use webhooks since my brain malfunctioned the first 10 seconds of a webhook tutorial @solemn latch
wait a bit and try again @blazing ravine
@blazing ravine maybe setStatus will work now
client.user.setPresence({ status: 'idle' }) @blazing ravine try this idk
@blazing ravine show code
bot.user.setPresence({ status: 'dnd' })
.then(console.log)
.catch(console.error);
where did you put the code?
ready
show the surrounding code
that's for setStatus()
mhm
how do i make a bot react using a custom emoji ?
// const reactmessage = await msg.channel.send(embedw)
// await reactmessage.react('🇩')
// reactmessage.react('3⃣')
// reactmessage.react('🇼')
// reactmessage.react('🇦')
// reactmessage.react('🇲')
// reactmessage.react('🇰')
// reactmessage.react('🇪')
// reactmessage.react('✅')
use ID
liek this
name:id
react("emoji id")
doesnt matter
ic
both works
how do i get an emoji id? xd
you can use a bot or right click the emoji with developer option on or use inspect element
@blazing ravine A bot doesnt update his status until it goes offline
just happend to me
how do i make my bot DM Direct Message
Send the message to a user
@elfin flower docs -_-
@spare mirage well guess what buckaroo
docs didnt help
lmaooo
What are the advantages of JDA over discord.js?
well d.js is bad anyways
why do you think that
pog
The advantage is JDA is written in Java, and the advantage of Discord.js is it's written in JavaScript.
Thank you so much @sudden geyser
docs
Hm
hello
I'm having this small issue with something... this works perfectly fine, but my issue is that when theres multiple messages it looks something like this:
It's not that Discord.js is bad. It's that in case scenarios, it'll be more preferable to choose something else. For example, a lot of people use Python for math.
This is for coding help
does anyone know how I can fix this and make the messages go up instead of down?
im using node.js btw
This is bot developing help
the reason why I feel discord.js is bad is because it gives u everything
@elfin flower what library do u use
wasi, you can still ask other questions here, mods have helped me with my website before which doesn't have anything to do with discord
bruh
and you're not actually doing the coding urself in d.js
blout, its just message.channel.send('message')
Yes but you need to share what you have tried, what do youthink is the problem and what you want to do exactly
Thats probably not how direct messages work lol
and you're not actually doing the coding urself in d.js
what are u trying to do then?
discord.py? blout
direct message
https://stackoverflow.com/questions/49098057/how-to-make-a-discord-py-bot-private-direct-message-someone-whos-not-the-author
exists
omg
chill
This should work
okay
get_user returns a User object that inherits abc.Messageable so you can use User.send where User is some instance of an user
client.send_message(ctx.message.author, "Text") ```
the reason why I feel discord.js is bad is because it gives u everything
@digital ibex that's not necessarily an issue. What's an issue is how the library works. People run into the issue of Discord.js caching everything and how big the resource usage is.
chill
Im still right xD
and is JDA better in that?
its an issue for me
I feel like java is much ram heavier
It is
Ive gotten enough help
Ok
hey small question guys, i got my bot up and running (for the most part) and i managed to play mp3 files, yet i cant find any documentations (or really bad ones) on youtube-dl or wavelink, can anyone help me or reccomend me something?
(discod.py)
thanks
I like discord.js. Don't see myself moving to eris even if my bot gets big
:(
Lol
^^
I only have one query
And if i do have to move it'll be easy. I don't rely on too many discord.js utility stuff like embeds and such
That is caching data called storing ?
Like I get the user name nickname roles a date o joining
So is it data storing ?
just mentione it
you should answer the questions to the best of your ability
How can U add 2 fields next to eachother (embeds)
put inline to true
ye
fields: [
{
name: '',
value: '',
inline: true
},
{
name: '',
value: '',
inline: true
},
];
you can have up to three fields inline
fields: [
{
name: '',
value: '',
inline: true
},
{
name: '',
value: '',
inline: true
},
];
@strange trout imagine making embeds like that tbh
no offense <3
embed builder?

new MessageEmbed()
.setTitle()
thats using the builder
you can just build the object yourself
i use the builder, but mainly because i hate micro optimization
whats the builder :/
what you do
Imagine discord.js devs decide to change the syntax of some part of the embed builder and then you have to go and fix all your embeds
:?
nothing wrong with manually building embed
its actually better code wise
{embed: {/fields here/},}
:o
This is the main reason I don't want to switch to eris
?
why not just add it directly to your site?
wai shi thats right
This is the main reason I don't want to switch to eris
what are you pointing to with this pic?
in a bot?
well it isnt actually much (in my opinion), i have written applications over 100k lines
and some bots over 5k lines
That's just the main bot
Still got the framework
API
And a couple other things
My point is that it would be a pain to port over
does anybody know how to change the output dircetory on fs
Imagine discord.js devs decide to change the syntax of some part of the embed builder and then you have to go and fix all your embeds
@strange trout that's why versions exist (major versions).
The documentation outlining every single change and what it's been changed to is super helpful.
what are the main categories for commands
fun, moderation. is all I have now where do I put purge and ping
Wherever you want them
what would sound good and make sense
It's your choice to decide where it goes. I'd put Ping under a Bot or General category, while putting purge (if it does what I think it does) under Moderation.
how can i get the current directory in js?
__dirname
ok
let languages = message.guild ? require (`../../assets/languages/${message.client.data.guild.Languages}`) : require("../../assets/languages/english");
message.language = languages;```
1st time Command Run and 2nd time Command Run
why does this look like 💩? xD
Code
const embedhelp = new Discord.MessageEmbed()
.setTitle("Help!")
.setDescription(`Help commands to help u out!`)
.addField("Fun : ", "`image \n size \n 8ball \n tts \n say`", true)
.addField("Moderation : ", "`ban \n kick \n mute \n purge`", true)
.addField("Utility : ", "`ping \n stats`", true)
.setColor("#d29e04")
.setFooter(`Justii#3473`);```
Command raised an exception: IndexError: list index out of range
im trying to fix the search thing but i found nothing which could help me
still looks like shit lmaoo
why is bot ping 1k
@spare mirage Cuz u apparently can't code
put infront of image also a \n
Why put spaces before and after \n
It wouldnt matter lmao
it does
Yes it will
yes ik
FIXED IT
.setDescription(`Help commands to help u out!`)
.addField("Fun : ", "`\nimage\nsize\n8ball \ntts\nsay`", true)
.addField("Moderation : ", "`\nban\nkick\nmute\npurge`", true)
.addField("Utility : ", "`\nping\nstats`", true)
.setColor("#d29e04")
.setFooter(`Justii#3473`);```
here
do it like this
\n ligma is a breakline and then ligma
remove the first
n
\n
in image
and ban
and ping
because field moves it down anyways
Don't you have a command handler Justii?
in python you have to add them
Why are you manually writing the help command
uhh what!
imagine not just using fs and reading all the file names in the command folder
also when you use \n that much you would rather wanna use backticks
Cuz he doesn't know what a command handler does apparently
ok then
Like u don't want to know anything
do it the hard way
Command raised an exception: IndexError: list index out of range```
We need to spoon feed you every time
You can filter through your commands object and sort them by catagory
And then put them in ur help cmd
bruh wtf
I dont ask for spoonfeed
for anti spoon feed
I asked for advice

Any one Know how can i add this ?
just use fs and filter through the commands folder to find files that end with js
Every time we give you advice u "don't know what to do with it"
from the modules.exports you can get name etc.
ffs
and map it
@spare mirage https://youtu.be/FCMxA3m_Imc
Watch the next lesson: https://www.khanacademy.org/computing/computer-programming/programming/drawing-basics/p/making-drawings-with-code#?utm_source=YT&utm_medium=Desc&utm_campaign=computerprogramming
Computer Programming on Khan Academy: Learn how to program drawings, anim...
@trim burrow setFooter takes 2 parameters "TEXT", image (url)
and use .join
my thing just deletad all my desktop shortcuts
so it makes a linebreak
aight Im out
is there a way i can revert that
@tulip ledge can you write the full code plz ?
@earnest phoenix ever knew trash can existed
No
lmao
and u say I ask for spoonfeed
You do
@earnest phoenix ever knew trash can existed
@marble juniper yes but there shortcuts not actual files
