#development
1 messages · Page 1348 of 1
Find anything that starts with const that you tried changing, like:
const lol = "lol";
lol = "nvm";
That would throw assignment error
at Client.<anonymous> (D:\github\pepe-bot\index.js:98:23)
at Client.emit (events.js:314:20)
file:line:column
nope
its === for strict equal
= is assigning == or === is for comparing
wheres that javascript tutorial link
yeah that ^^^
do i just make let pp to something else then??
Just change the = in that line to == or ===
đ€Šââïž
i did
yep works
Just change the
=in that line to==or===
... thereâs a huge difference between comparing 2 values or comparing them + their type
kk gl then
thx
... thereâs a huge difference between comparing 2 values or comparing them + their type
@boreal iron Not for that purpose and he is inexperienced
bro wtf was that
hmm
Wtf is that
wtf
or should i say pp
bro
Wtf
report
- Must not show NSFW content (mentioning of NSFW in description, icons and emojis)
- Your server must not present any content on top.gg that is against Discord's Terms of Service, this includes but not limited to:
a. Discriminatory/Derogatory content/language (emojis, names, description)
b. Underage dating servers - Must not conduct illegal activities or activities listed below, this includes but is not limited to:
a. Scam related servers (invite rewards, free nitro)
b. Account generators/Alt account (selling/generating accounts for paid services) - Must not be in competition with top.gg
- Must abide by top.ggâs Terms of Service
Website administrators reserve the right to issue punishments without providing reasons
Moderators can issue punishments at their own discretion regardless of if the rules donât specify an offence at the time.
Your friend needs help
lmao
is that code in a json file
anyone her have experience making bots
anyone her have experience making bots
@jade stirrup Me
Actually, just about everyone here does
would you be available to help improve mine
Except a certain someone
lol
would you be available to help improve mine
@jade stirrup Rn?
well whenever you have the time
let embed = new MessageEmbed()
.setColor('#0099ff')
.setTitle('Top.GG Bot List')
.setURL('https://top.gg/bot/id')
.setImage("https://top.gg/api/widget/id.png")
.setTimestamp()
message.channel.send(embed)
what wrong there?
What language are you using @jade stirrup
discord.
team of people who will code u a free discord bot
let embed = new MessageEmbed()
.setColor('#0099ff')
.setTitle('Top.GG Bot List')
.setURL('https://top.gg/bot/id')
.setImage("https://top.gg/api/widget/id.png")
.setTimestamp()
message.channel.send(embed)
@hollow pond The links
đ€
not exactly coding no just setting it up
No links normal
?
What's the problem?
not exactly coding no just setting it up
It doesn't require a team of people to setup a bot
not exactly coding no just setting it up
@jade stirrup Setting it up like what?
i used something called botghost
Im cant get bot widget
It doesn't require a team of people to setup a bot
@earnest phoenix Most inexperienced people do it alone
like helping me setup music a game system
If open in browser = all okay
But like you just get the token and paste it, how hard is that?
well i dont know how to code a bot so that would take a lot of youtube videos to make one đ
but if im try get widget bot just return this
well i dont know how to code a bot so that would take a lot of youtube videos to make one đ
@jade stirrup Wait rly? I made my first bot in about 2 weeks tho
Its why im dont know what wrong
Its why im dont know what wrong
@hollow pond Neither do I understand, sorry
@hollow pond because the browser will url decode the url and trim it
Remove the %22 behind .png
well if your offering to code one for me then go ahead but since im currently not paying then thats the website that im using to make a bot
I don't think that's the problem @jade stirrup
It renders properly even if it is so
@neat harness did uyou know how to code though when you made it
unless you click the link outside of the bot
@neat harness did uyou know how to code though when you made it
@jade stirrup Nope just basic knowledge of HTML5 and CSS3 which is irrelevant
ok
JS is simple as logic
but i still have no idea what program to use
but i still have no idea what program to use
@jade stirrup Discord.js
How much im need repeat this
ok ill check it out
Then I assume Discord doesnât like the websiteâs ssl authority
How much im need repeat this
@hollow pond You mean the Image is not showing up?
Just donât load the image
yes
Hmm
im try and http and https
Try to upload the image to a public service like imgur
Is there anyway to require modules synchronously Example:
It waits for module 1 to complete all actions and then executes module 2.
https://media.discordapp.net/attachments/738650882744254514/770016046575910912/unknown.png
That wonât work if a rewriterule is active
@boreal iron Doesn't matter I don't think
djs: how do I get all the users the bot is watching (all members of all guilds) client.users.cache.size is not returning the correct value
Insecure connections are not supported anyway
djs: how do I get all the users the bot is watching (all members of all guilds) client.users.cache.size is not returning the correct value
thats the users
Looks like discord also have a whitelist or domains or ca authorities it trusts
not members
@neat harness do i have to download something
@neat harness do i have to download something
@jade stirrup node.js, a simple code editor or notepad if you can read it.
djs: how do I get all the users the bot is watching (all members of all guilds) client.users.cache.size is not returning the correct value
You can't unless you go fetch every user from every guild manually.
Then learn at https://discordjs.guide
i know
You can't unless you go fetch every user from every guild manually.
@sullen harness Can't you just usefetchAllMembers?
Or that ofc
im confused
If it's worth the extra ram usage is up to you though.
where do i go to creat my bot
@trim peak
https://discord.com/developers @jade stirrup
Integrate your service with Discord â whether it's a bot or a game or whatever your wildest imagination can come up with.
ive done the discord developer portal thing thats where i made the bot
Then follow the steps in discordjs.guide
k
wut
i dont know the admin password
@jade stirrup Sad
Use a VPS
Maybe if you have money
or try Glitch or Heroku
For trash-tier bot
what are those things
Hosting servers
oh naa
Glitch and Heroku are free if you want to just try
Or get a VPS if you're serious
@jade stirrup
Glitch and Heroku are free if you want to just try
@jade stirrup These two? No
no VPS
Or get a VPS if you're serious
@jade stirrup This one, yeah, around $2 to even $1k a month
dam why so much
$2 are the cheapest ones I think
I'd start by learning how to code (if you don't know already) before even thinking about a VPS.
what would be a good starting one
$1k are for God Tier computing, a discord bot won't need that much lmao
what would be a good starting one
@jade stirrup Glitch or Heroku
@jade stirrup https://www.youtube.com/watch?v=Q7Zz7U5Yx5o
New Version: https://www.youtube.com/playlist?list=PLpid1SL3UnSJrYcTXql0W8ouUtDLbcVXW
Glitch project: https://glitch.com/~blu-tutorial-bot
Uptime Robot: https://uptimerobot.com/
Follow me here: https://www.roblox.com/users/378506598/profile
Join our Discord server here: http...
k thanks
np
@neat harness dont use glitch.com with uptimerobot, etc now... you can ping using Google though... which wont make your respo get blocked because they use google captcha to add this feature that disallow pinging services (but google)
It's for a starter bot, for someone who is barely making their first bot
We need simplicity guys
just curious how much would it cost to hire someone to make a bot
pinging glitch.com can get your project blacklisted so you cant access it no more
if they want to make their first bot, then doing it locally is much better
just curious how much would it cost to hire someone to make a bot
@jade stirrup $20 or more
hmm thats pretty cheap
if they want to make their first bot, then doing it locally is much better
@vernal rivet Said don't have admin pass
hmm thats pretty cheap
@jade stirrup But maintaining it is rid
what device are you using?
yeah my brother forgot the admin password
@jade stirrup đ
you shouldn't need it
Ok ok use your computer DONE
you shouldn't need it
@vernal rivet Need for node.js installation
it says i do '
wdym root
i was asking him, as he is the only having the problem
theres only 2 profiles im currently using the alt one
and the other one is the one that your forgot the password for?
yes
Yeah, definitely not the root
windows, or Mac os?
Mac os i believe
ofc mac has to be difficult sometimes.
It's harder to crack MAC OS I think
In win you can just self grant superuser
By using console boot
perhaps this could work: https://www.hellotech.com/guide/for/how-to-reset-admin-password-on-mac
hmm theres a way according to google to do stuff but io dont want to mess around and ruin something
you wont ruin it if you follow the instructions
hmm theres a way according to google to do stuff but io dont want to mess around and ruin something
@jade stirrup Good
Quick question (d.js)- I'm using the message.guild.me.hasPermission(['MANAGE_MESSAGES', 'MANAGE_NICKNAMES', 'READ_MESSAGE_HISTORY', 'USE_EXTERNAL_EMOJIS']) function to check perms for a command. When the bot has exactly those permissions, it returns false. However, when the bot has ADMINISTRATOR permissions, it returns true. Anyone know why?
https://support.apple.com/en-us/HT202860 did you read this?
You can change the password that you use to log in to your Mac, or reset the password if you don't remember it.
ill read that now
"page not found" lol
Okay, but if it has the perms I listed, I want it to still return true. How can I do that?
that didnt help
My mongoose is acting up
yours
I'm not sure what the problem is
what does your code look like?
It's been spamming for days
it looks like casting errors
it says i can open up the terminal but i dont know hown
if (
(auth.cooldown + (1 * 60 * 1000)) < message.createdTimestamp
) {
auth.cooldown = message.createdTimestamp;
auth.exp = auth.exp + Math.round(Math.random() * 5 * auth.multiplier);
auth.coins = auth.coins + Math.round(Math.random() * 100 * auth.multiplier);
}
if (auth.exp >= auth.nextExp) {
auth.exp = auth.exp - auth.nextExp;
auth.level = auth.level + 1;
auth.nextExp = auth.nextExp + 100;
auth.coins = auth.coins + (auth.level * 10000);
auth.crystals = auth.crystals + (auth.level * 10);
}
what does your if statement look like for the perm check cam?
@vernal rivetjs if (!message.guild.me.hasPermission(command.requiredBotPerms)) { /*...*/ }requiredBotPerms:
requiredBotPerms: ['MANAGE_MESSAGES', 'MANAGE_NICKNAMES', 'READ_MESSAGE_HISTORY', 'USE_EXTERNAL_EMOJIS']
NaN means Not a Number
NaN means Not a Number
@vernal rivet But it is a number
@vernal rivet But it is a number
@neat harness you sure it's not a string?
exp: {type: Number, default: 0},
coins: {type: Number, default: 0},
ÂŻ_(ă)_/ÂŻ
double Pings :kellyded:
@vernal rivet Triple đ
@neat harness why dont you use += or -=
console.debug the exp and coins when you are asking for them
@vernal rivet Just about 1k people are typing at the same time lmao
you don't need to ping me everytime, i am here
@neat harness why dont you use += or -=
@hollow sedge I lack javascript programming experience, I just found that that thing exists
@hollow sedge I lack javascript programming experience, I just found that that thing exists
@neat harness ah okay
self.dblpy = dbl.DBLClient(self.bot, self.token, autopost=True, webhook_path='/MyPath', webhook_auth='MyAuth', webhook_port=MyWebhookPort)```
so this is my dbl client and i have autopost enabled, but it doesnt update my servers on top.gg
looks like your casting a NaN to a String, which is against casting rules.
looks like your casting a NaN to a String, which is against casting rules.
@vernal rivet Wait wait wait, I just showed you it isn't a string tho?
I mean, the same code works well on my other bots
@vernal rivet lint errors
probably
Is
auth.exp = auth.exp + Math.round(Math.random() * 5 * auth.multiplier);
```the same as
```js
auth.exp += Math.round(Math.random() * 5 * auth.multiplier);
```?
yes
yes
+= means add value to existing value
Kk thanks
np
I think I found the problem
what type is auth.multiplier
Number
Sorry to continue to bother you panda, but I'm trying to work this out today. Any thoughts? (#development message)
But it seems to be undefined
I think I found the problem
@neat harness Umm... Client mods are very against the ToS.
in order to change th admin pass i need the admin pass
@neat harness Umm... Client mods are very against the ToS.
@buoyant aspen Ssssshhhh
im currently in the terminal
makes it hard to see the text
@hollow sedge Sry I had to manually CSS and i'm bad at it
lol you should just decrease the opacity
oofers
God Typo ate up my weeks of hard work
mutiplier: {type: Number, default: 1},
oofers
@neat harness how much would you charge to make a bot
@neat harness how much would you charge to make a bot
@jade stirrup Just to make it? It really depends on what kind of bot you want?
i thought you just learned js
learn js
And to what degree, Beginner, Intermediate or Advanced

like moderation,music,game,levels all the thing to make a discord server basically
i thought you just learned js
@hollow sedge Not really, just didn't pay attention to some js features I dont use
lets say intermediate
like moderation,music,game,levels all the thing to make a discord server basically
@jade stirrup Well, I can make basic games, I don't know about music, but everything else I can. So uhh, maybe not

I can't make music or games, so it wouldn't be proper for me to...
@jade stirrup if you want all that stuff you might as well invite bots that are already out there
@jade stirrup if you want all that stuff you might as well invite bots that are already out there
@hollow sedge True
I mean, a customized for a server bot would be worth but for that only, idk
but thats a pain and i want my own bot
but thats a pain and i want my own bot
@jade stirrup Have both simultaneously
then make one
but thats a pain and i want my own bot
@jade stirrup why do you want your own bot?
yes
@jade stirrup why do you want your own bot?
@hollow sedge The feeling of accomplishment
He doesn't want to start from zero?
its difficult to explain why i want a bot
hmm
people need to understand if you want one, then you are going want to put in the work and learn how to make it.
He doesn't want to start from zero?
@neat harness using libraries is not starting from zero, getting someone else to create an entire bot for you is definitely way past that
i want to make one but this computer keepts me from making one
@neat harness using libraries is not starting from zero, getting someone else to create an entire bot for you is definitely way past that
@hollow sedge Hmm
i want to make one but this computer keepts me from making one
@jade stirrup Have someone help you make it or use repl.it
its your best option right now, till you fix your admin problem
or glitch.com if you're too lazy
don't do glitch, it will haunt you afterwards
Yes, yes I know, glitch is trash
what language should i select
I quit glitch moths ago
@jade stirrup BROO
what language should i select
@jade stirrup discord.js
if you are new, then python, or javascript
^
JS is better for begginers
i still have no idea what im doing
the language you choose is what you want to learn, and use. we are not going to tell that x language is better than y language. they both are good in their own ways. it just depends on what the programmer wants to use.
I'm still pissed at this God-Tier Typo
mutiplier: {type: Number, default: 1},
@jade stirrup maybe just look at a few tutorials for the languages and see what you like best
@jade stirrup maybe just look at a few tutorials for the languages and see what you like best
@hollow sedge +1
asm is clearly the most superior beginner language
i love writing my discord bot with raw 1s and 0s
ummmmmm no glass is more superior beginner language, idk where you thought that was better
:happy_boy: ummmmmm no glass is more superior beginner language, idk where you thought that was better
@vernal rivet
yes?

ok so will i need tutorials to learn how to make a bot
depends
ok so will i need tutorials to learn how to make a bot
@jade stirrup It's easier that way
if you feel like you do, then yes, if not, then no
ok
But, not rly
if you feel like you do, then yes, if not, then no
@vernal rivet Confusing Sentence bruh

if you feel like you need it, then yes use it, if not, then don't use it.
a lot of what a programmer does is based on what they feel like doing. we never do what we don't like
i mean does anyone want to helpđŹ
Well, I would like to, but my bot has a bunch of errors rn
||what a great question after what i said ||||
, when i said that we don't like doing what we don't like.jk||
and should i use python javascript or node.js
node.js is not a language
javascript and node.js
it says it is
there about 40 differant ones to choose from
server is kind of misleading there
Choose wisely
nah, it depends on what you want
server is kind of misleading there
@vernal rivet Sry, that's how I like to describe it

so which language then
i mean its not a bad description, but its very misleading of what it really is
nah, it depends on what you want
like a starter one
do you want structure in your code style, or not deadlord?
yesif its what im thinking that means
when i say structure, i mean strict structure, like it has to look like this?

yes

then i would really say python would be the best. python has whitespace syntax. this means spaces, matters.
javascript is more flexible with its code style, and this can lead to absolute trash code styles.
Like dis
if you want one that has amazing doc, and guide for discord libraries, then javascript is the best
what am i looking at, thats like too much for my eyes to handle
well dam thats a hole lot of codes there
i mean i looked at the docs, and my eyes were burning from looking at the white background
omg what is @neat harness
javascript is more flexible with its code style, and this can lead to absolute trash code styles.
ah i see
*that
@hollow sedge My bot code lmao
Yeah, it's my own
that looks really complex
hurts to see
hurts to see
@hollow sedge I'd agree to that
why did you line break so many times unnecessarily
i would like to beg to differ tbh
@vernal rivet Clean code
why did you use line breaks so much

why did you line break so many times unnecessarily
@hollow sedge Cuz I like it
aggggghghghgh
i dont use line breaks because if i want everything to be in view i can just toggle word wrap in VS Code
this will take me forever
'e!msg' is a string, not a object
PS C:\Users\Reegan & Brendan\Downloads\Owners Pet> node mybot.js
C:\Users\Reegan & Brendan\Downloads\Owners Pet\mybot.js:4
if('e!msg'.content.startsWith(prefix)) return;
^TypeError: Cannot read property 'startsWith' of undefined
@earnest phoenixe!msg?
Np
@hollow sedge Cuz I like it
@neat harness one of your lines is literally just ) {
nah, it won't take you long
@neat harness one of your lines is literally just ) {
@hollow sedge đ
I like codes that're going downwards not sidewards
oh wait your talking to swyrene 
except i know nothing abut coding
i thought you were referring to me
lol no yours looks clean
neglected also doesn't know programming, but he is learning, and he is doing pretty good
lol no yours looks clean
@hollow sedge +1
S C:\Users\Reegan & Brendan\Downloads\Owners Pet> node mybot.js
C:\Users\Reegan & Brendan\Downloads\Owners Pet\mybot.js:4
if('msg'.content.startsWith(prefix)) return;
^TypeError: Cannot read property 'startsWith' of undefined
@earnest phoenix Do you usemessageormsg?
material i think. if your asking about my vscode theme
yes that is what im asking
like deep ocean material i think, let me look
It depends
You can use msg or message but make sure to synchronize it with your entire code
@earnest phoenix is the 'msg' a example, or do you have that in your code
it speaks the truth
they dont lie
K but what about the
startsWithproblem
@earnest phoenix That is the cause
The msg message difference
@still merlin
if('msg'.content.startsWith(prefix)) return;
@earnest phoenix That's an example and why the quotes
if you want icon theme, then use materail theme icon
if(!msg.content.startsWith(prefix)) return;
That's an example and why the quotes
@earnest phoenix change it tomessagethen
cloudfox is happy
if(!message.content.startsWith(prefix)) return;
much thanks for introducing me to this
np lol
Searching... Material Theme... was it?
man this community has coded this dudes entire bot lol
halp
man this community has coded this dudes entire bot lol
@compact briar LMAO
idk what db to learn and how
sqlite
idk what db to learn and how
@zenith knoll Try quick.db or mongoose

sqlite
@vernal rivet Dude.....
what is your message event look like?
lol and it keeps going @neat harness
client.on("message", async message => {
if(!message.content.startsWith(prefix)) return;
})
@earnest phoenix
lol and it keeps going @neat harness
@compact briar Imagine my bot with 3k+ lines of codes
So thats what it should look like
@earnest phoenix Yes ofc
lol i mean this is like 30 hours in of every single thing thats added.
xd
im all for helping if i can but lord
i tried recommending watching YouTube vids to learn last night đ€·ââïž
Interesting that mostly people ask questions in js not python
basically people prefer it. not much to judge there
i think its bc if you google how to get started it comes up with js first
^^^^
i think its bc if you google how to get started it comes up with js first
@compact briar Very true
and js is a more common language than py anyways
Nope don't agree but ok
I started learning 6 months ago and ever since, only JS shows up on google, and occasionaly Py
client.on("message", async message => {
if(!message.content.startsWith(prefix)) return;
while ur at it might as well check if the author is a bot just in case ;)

while ur at it might as well check if the author is a bot just in case ;)
@abstract coyote After it works first, we're still struggling here
bruh js is used waaay more in other applications.
bruh js is used waaay more in other applications.
@compact briar
oh allrigjt
Or maybe it's becuz py programmers more experienced than js programmers?
So they don't need help here
oh matt is here ||sorry had to do that
||
@vernal rivet It's lit, the theme I mean
or because its easier @earnest phoenix đ€
you have to define client before using it đ€Šââïž
can someone terach me mysql lmao
Agree, discordpy is not user friendly i worked for almost 2 months to understand that library fully, but it's a pretty good and powerful one
Js more friendlier
client.on('message') has to be below const client or const Discord, preferably below client.on('ready')

computer: "WHAT THE FUCK IS CLIENT"
me: "WHAT DO YOU MEAN"
story of my life
@earnest phoenix
oh matt is here ||sorry had to do that :happy_boy: ||
yossssss
events doesn't matter what order they are in. they just have to be under the variable declaration
yes
Or maybe it's becuz py programmers more experienced than js programmers?
@earnest phoenix I wouldn't say so. Both JS and Python are easy-to-use and learn languages. There are a lot of newbies when it comes to Discord bots in the JS and Python community.
Then you have languages like Java and you don't see as many newbies using it, or C#, or Rust
Then again, I tried searching "Discord bot" and "How to make a Discord bot" and the first popups I get are for discordpy.
Why is this part of the code not working cry
But Google search results are not sorted the same for everyone.
@earnest phoenix read the error and figure out what it is saying
cause the code style is disgusting 
idk man, js sometimes complains about random stuff
@earnest phoenix I wouldn't say so. Both JS and Python are easy-to-use and learn languages. There are a lot of newbies when it comes to Discord bots in the JS and Python community.
Then you have languages like Java and you don't see as many newbies using it, or C#, or Rust
Agree, but if you look at this two libraries dpy and djs, dpy seems more unfriendlier for begginers
JavaScript has way too many flavors.
its going to be impossible to make a good bot if you cant figure out the simplest of errors.
please
@zenith knoll Pretty Please @earnest phoenix
dude you didnt read it good enough
Dude I read that entire site yall sent me
@earnest phoenix The Entire?
anyone know how to get the bot's ping to the user in python? probably not possible since it's through discord đŠ

lmao cloudfox
Weve been spoonfeeding ur whole bot
Discord.py is sort of user friendly, but not at the same time. Most newbies aren't going to understand decorators or classes compared to Discord.js' event emitters and stuff. At the same time, Discord.py's unfriendliness comes with the benefit of a great command handler.
since this morning
Weve been spoonfeeding ur whole bot
@zenith knoll +100 on that
lmao cloudfox
@vernal rivet I NEED HELP đŠ
oh wait you're serious 
yes
i don't do py for a strict reason, cause of that god stupid fuckign whitespace syntax
Weve been spoonfeeding ur whole bot
@zenith knoll
i said this yesterday lol
i don't do py for a strict reason, cause of that god stupid fuckign whitespace syntax
@vernal rivet i feel the same way about brackets
I think you can write like: js if true if true if true // do stuff
In JavaScript.
but tbh i don't always use brackets. i try and use them if i need to, and if it is a single line if, then i don't use brackets
you can
thats what i do
i dont do that
Then whitespace does matter for you
and no don't fucking use discord bot maker.
dude
yes there are plenty
js doesn't have the best code style. it has to rely on eslint tbh
and no don't fucking use discord bot maker.
@vernal rivet Who fucking does
but please. maybe he will make the entire bot for you, like we have been doing for two days
WE are TRYING to help, BUT you dont have a BASIC UNDERSATANDING of js, and expect us to write the bot for you
IT WOULD BE EASIER for us TO JUST send a bot file for you
they way you act like u want it
people that don't want to learn how to program the right way. you don't need to pay for thing to make a bot if you can do it yourself for free
time to go to my friend who helps and teaches and doesn't criticize like do you know a 13yr who just KNOWS java script?
@earnest phoenix age isnt a barrier, you are making it one in your head
also toppat, could you please say that a bit nicer. i understand that you are frustrated, but it will be nicer if you were to say it a bit nicer.
im trying lmao
all good my dude
im saying, you cant expect us to write the bot for you
Thats what I have so far
i used caps to highlight important info
Is it good
i used caps to highlight important info
@zenith knoll
I played with coding since I was 12
i mean we all start somewhere
:shrug: i mean we all start somewhere
@vernal rivet
I played with coding since I was 12
@neat harness
That's what I have so far it's python
lmao is this dude really throwing shots rn

HTML5, CSS3, JavaScript, PHP, and basic knowledge of Python
Thats what I have so far
@jade stirrup why did you take a picture of the screen, its so blurry we cant see anything
ok, i am going to judge you, if you say coding, instead of programming, i will lose all my respect for you. i won't hate you, but i won't look at you the same
i got trusty google
yeah i dont know how to screenshot in mac
what about coder
@jade stirrup why did you take a picture of the screen, its so blurry we cant see anything
@hollow sedge Yeah, SS please
Does mac not have a Print Screen button?
ok, i am going to judge you, if you say coding, instead of programming, i will lose all my respect for you. i won't hate you, but i won't look at you the same
@vernal rivet he said he "played" with coding
programmer
AQ Command + Shift + 4?
^
There are a lot of ways: https://support.apple.com/en-us/HT201361
im currently using a differen't keyboard then the original one
@sudden geyser @jade stirrup better yet just send the link to your repl
I am trying to make a .bc command. ( Will clear bot commands and bot messages ) instead of members messages.. but how do i make it so it only clears bot msgs?
( discord.js )
uh
i know he was saying that, but i wanted to put that there. its a pet peeve of mine that it annoys me when people say coder and coding, instead of programmer, and programming.
check if the msg is sent by a bot?
yes
I am trying to make a .bc command. ( Will clear bot commands and bot messages ) instead of members messages.. but how do i make it so it only clears bot msgs?
@earnest phoenix Filter the bots messages from the fetched messages
but like, when is the line of code for it
Use <TextChannel>.messages.fetch(...), filter all messages for those sent by the bot (check the author ID), then <TextChannel>.bulkDelete?
He wants some spoonfeed I guess
Something like that
oooo epic
@vernal rivet i feel the same way about brackets
@hollow sedge lol that's why I never attracted into js although I'm java master
use predicates
can i get a platter filled with how to use and learn mysql at table four?
thanks
lmao
LMAO

@hollow sedge lol that's why I never attracted into js although I'm java master
@earnest phoenix yeah after working in c# i just feel like python is so much more readable
?
https://www.w3schools.com/js/default.asp
@vernal rivet ?
idk what you mean c# is pretty readable 
lmao
@zenith knoll You sound pretty insightful
idk
:dogekek: idk what you mean c# is pretty readable :dogekek:
@vernal rivet well sure, but python is more readable
i been programming for like 5 years now
how did i get a green role too lmao
i didnt get no reaction role
or i forgot
idk
oofers
I like myself some Python and Rust.
Yea But working with java is like understanding the programming, it was all becuz of java that i got experienced in python (although i still hate js for no reason)
Interesting @zenith knoll
Wew
im on browser discord
It's ur bot's botinfo
you like what you like. but if you say you hate something without actually trying it first to its fullest, then i won't listen to your complaints. thats the one thing about some people i know that strictly program in py. not saying you do that, but the problem is that they don't like it, but never tried it.
My first bot got declined fot eval issues
My second for broken help command
My third for open NSFW contents
My fourth one for open chat-log / tracking
My fifth one for Nekos.Life
o
i got accepted first try
in uh
u months
2*
8/15/2020
got accepted on 10/8/2020
I got accepted in one week, and accepted first try
whats nekos.life
My bot was accepted in 3 weeks from 6 months ago, but got instantly deleted for eval command leaks
My first bot got declined fot eval issues
My second for broken help command
My third for open NSFW contents
My fourth one for open chat-log / tracking
My fifth one for Nekos.Life
@neat harness focus on one bot then? Working with 5 bots might be the problem
whats nekos.life
@zenith knoll API Endpoint
nsfw thing
uh
dont go there
ok
@neat harness focus on one bot then? Working with 5 bots might be the problem
@hollow sedge No, I mean like I try one and it breaks, I feel bad, i delete it, and make another one, repeat
My first bot got declined fot eval issues
My second for broken help command
My third for open NSFW contents
My fourth one for open chat-log / tracking
My fifth one for Nekos.Life
@neat harness
That's just start man, once my bot got declined because it had do not disturb status xD
lol fr?
fr
i think it produces inappropriate pictures of minors, whenever a bots declined for using nekos.life it says that
unless your into that kind of things
then go for it, but viewer advise
Neither am I
Lmao
i think it produces inappropriate pictures of minors, whenever a bots declined for using nekos.life it says that
@still merlin yup, thats what it says in the announcement
illegalality
its against discord tos and illegal
^
swyrene isnt 18 and uses it lkmao
@neat harness y u use it
@zenith knoll Bcz... I had to
đ
how do u get mysql

how do u get mysql
@zenith knoll you make an sql
thats why its called MYsql
im making a new project who wants to speenfeed me the code
hey, cloudfox aint wrong
first to react to it ill dm u
No to mysql for discord bots
lmao
I made a multipurpose bot based of the first word in my head
there was a spider on my desk and i screamed spider
so my bot is called spiderbot
spida man
why isnt it letting me upload a photo
https://www.youtube.com/watch?v=YDR9XnEHu8Q works right?
MY RESOURCES:
Learn JavaScript - https://www.youtube.com/playlist?list=PL_cUvD4qzbkzrpH8det0pvoT_Oxu1JV34
Learn Object-Oriented Programming - https://www.youtube.com/playlist?list=PL_cUvD4qzbkwvywTq-EhPLgpq6Ika5EQB
Programming Discord Server: http://discord.gg/bZSwjPy
GitHub:...
screambot sounded weird
like
use sqlite instead
why
easier to handle
weird yet unique
https://www.youtube.com/watch?v=YDR9XnEHu8Q works right?
@zenith knoll how would we know if that works?
ig lol
prefix is eek, AAAAAA and AAAHH
here it is
oh right py is snake case
Discord.MessageEmbed()
It literally says 72 commands loaded so whatever's not here it's NSFW
i'm no discord py expert but did you check the discord.py docs
so hows that
whats eval
evaluate
whats eval
@zenith knoll to evaluate a certain command
evaluate a snippet of code
is that good for a start
run some code via discord
here it is
@jade stirrup delete the () after orange
basically does whatever you do in a command code in discord
that would mean you are running a function
its often used for testing stuff
is mysql 2 good or nah
@hollow sedge ok done
its good, but sqlite is going to be better to use, as it is easier to handle
3
@jade stirrup also embed is capitalized: discord.Embed
done
SQLite is đ
@jade stirrup also when you are adding fields to an embed, it actually creates another instance of it so you would need to do embed = embed.set_author or embed = embed.add_field
my name isn't based on SQLite for the record
but i thought it was, because it is pretty lite
what does that mean
yea i voted all
SQLite is pretty good, My father uses it for his job, He's going to teach me
my dad works at google so he uses googledb
@still merlin ur father is irrelevant
my dad works at google so he uses googledb
@zenith knoll ur dad is irrelevant
hes a T6 so stfu
T6?
my dad is bill gates so mongo is better
lol
Json is đ lol
@zenith knoll u should use firebase to support ur dad
I tried using it once, Brought hell to my bot
Json is đ lol
@earnest phoenix :đ€ź
my bot is still broken lol
JSON RUNS Y OU
json is trash at heavy weight data
JSON RUNS U'
Json is my childhood
if ur using python
MY BOT USES JSON RN
pickle is better
When I didn't know about mongo yet
im usin it
But then
Json was my first ever database
im usin it
@zenith knoll i didnt want to do this to you, but how many people are using your bot?
have fun with json files corrupting 
can u put a mongo server in a vps?
Anyone know of an easy way to check what permissions a function uses? (d.js)
a mongo server??
@zenith knoll i didnt want to do this to you, but how many people are using your bot?
@hollow sedge idk, but there are like a efw thousand ppl who made a eco acc
Json was my first ever database
That's why its đ
it says 97k users in the servers its in
@hollow sedge idk, but there are like a efw thousand ppl who made a eco acc
@zenith knoll expect to see that number decline overtime as your json database loses everything it ever loved
y
i mean, it was kinda fun and i learnt new stuff while working with my json database
yert
but then it broke my bot :/
the problem is that json has a limit of how much it can handle
cloud what u use rn
@zenith knoll mongoDB Atlas
I use nothing currently, I'm planning on using SQlite
airtable is pretty good tbh
Lol i remember someone calling Execl as database
@earnest phoenix excel sucks as a db, use google spreadsheets
I don't have a need for a database currently, So I plan on finishing a bot migration then I'll learn for my second bot
@earnest phoenix excel sucks as a db, use google spreadsheets
Pretty sure for big bots i have to use mongodb
rethink db?
That's perfect seriously
thoughts on rethinkdb?
Never Heard...
dank memer uses it
Mongo looks complicated
thoughts on rethinkdb?
@zenith knoll i dont think many people use it
Mongo looks complicated
@still merlin mongo is less complicated than the other ones lol
dank memer uses it
@zenith knoll
google sheets api is just shit. you can't change my mind, because that is a true fact
Mongo looks complicated
@still merlin
sql is the past guys (joke)
I swear I learned mongo faster than jsonđ
I was debating databases a while ago before i settled on sqlite
I looked at a mongo example thing and it was complicated
I looked at a mongo example thing and it was complicated
@still merlin just think of it as a huge dictionary
ez
I've never read a dictionary-
..you're joking right?
No
i mean a programming language dictionary
does cloudfox knows airtable?
Oh, no as well lol
does cloudfox knows airtable?
@vernal rivet cloudfox does not
Actually I did read a small irl dictionary but thats not relevant
its the better google sheets. like its api docs is just godly, and is pretty easy to use.
I'll look one up now
đ€ ill keep that in mind if i ever make an app that relies on spreadsheets
Btw, did google pay you for that?
why would google pay you to trash on their product
yea
google sheet's api is just shitty, and nothing they do is not going to make it better
i tried using google classroom api a while ago but couldnt figure it out
perhaps i should try again
maybe
well google apis are always complicated you have to make 274928472 account answer 4729737 questions o order to get the api
idek what that means but ok
or you just don't deal with it
truee
Bruh mysql
ever know when u make a complex-ish program, and then the language u uses messes u up..
:{
i made a rotate function
but the array gets passed in, but the array gets changed
ik ik
just a lot more workkk
oh.. lemme check urs
Discord not 'Discord'
@earnest phoenix remove 'Discord' (the quote's)
('discord.js').Client i think
i can't remember the syntax atm
but it's a common thing, prob in the discord.js docs
Did your code work until you did something
thanks but yeah your program sounds hard
@earnest phoenix it's the n queens challenge in codewars
i understand the answer PERFECTLY now, just putting it in code is complete mind rape
idk what the problem is
well have you read the error
because you don't have it installed
correct, i.e. isn't installed
You're requiring something that you don't have, Or its in your package.json but you haven't installed it đ€·
You don't know how to install something with npm?
I'm sorry but do you even know how to code?
OPERATING SYSTEM
I'm sorry but do you even know how to code?
@still merlin don't get snide yet.. everyone was a complete noob at some point
javascript is the best os 
o gosh ease him up
Going straight to a bot isn't the best idea
true
English best programming language
@earnest phoenix 'npm help' in your console/terminal
i learned from humble beginnings; messing around on chrome dev tools
I learned from a js file with arrays etc
hmm it started messing around on page urls to get different stuff
init, like the word says, is for initialization
this is so complex to explain from the bottom up
take a guess what's the command to install packages
it's like u wanna build a fence when u never did yardwork
close enough
ite ima press
npm install pkg or npm i pkg for short
@earnest phoenix This will be helpful if its your first time, https://stackoverflow.com , https://discord.js.org/#/docs/main/stable/general/welcome , https://www.codecademy.com/articles/glossary-javascript
the one it couldnt find
^
go back and read what's the error complaining about, that
Do you even know what sqlite is?
typing on mobile is pain
yes
Bruhs somethings wrong and its not running through
I'll have to upload a screenshot
use hastebin or code blocks
Which will be a while since I had to run out for a few minutes
It says error by line 21 and something like that
I'll have to get the screenshot when I get home
node . or node <filename>.js
I recommend node . as its quicker depending on your package name
For me???
Ok
I've never coded in python before
Actually, I made a simple program but never a bot
@earnest phoenix
do you even know what sqlite is
I need to go to bed in a minute
Agggg
ok bois... the end road, i passed 2 of 3
yes
sry ik nobody asked but this ive been working on for like 4 hrs
you need py for that i think
i've gotta go call my mother, then I've gotta go to bed. bye
counting in yesterday, somewhere around 7
for the build script in better-sqlite3
you still probably need py for the build script. node-gyp i believe needs py to be installed.
no, the build script is needed to build the package, thats it
can you make a bot in two languages?
@earnest phoenix yes, but you probably don't need it.
fs.readdir("./assets/commands/", (err, content) => {
if(err) console.log(err);
if(content.length < 1) return console.log('Veuillez créer des dossiers dans le dossier commands !');
var groups = [];
content.forEach(element => {
if(!element.includes('.')) groups.push(element); // Si c'est un dossier
});
groups.forEach(folder => {
fs.readdir("./assets/commands/"+folder, (e, files) => {
let js_files = files.filter(f => f.split(".").pop() === "js");
if(js_files.length < 1) return console.log('Veuillez créer des fichiers dans le dossier "'+folder+'" !');
if(e) console.log(e);
js_files.forEach(element => {
let props = require('./assets/commands/'+folder+'/'+element);
bot.commands.set(props.help.name, props);
props.help.aliases.forEach(alias => {
bot.aliases.set(alias, props.help.name);
});
});
console.log(js_files.length + `commande, à bien été charger`)
});
});
});```
``` props.help.aliases.forEach(alias => {
^
TypeError: Cannot read property 'forEach' of undefined
at F:\code\Détente [FR]\Bot juzoo opti\main.js:39:36
at Array.forEach (<anonymous>)
at F:\code\Détente [FR]\Bot juzoo opti\main.js:36:22
at FSReqCallback.oncomplete (fs.js:156:23)```
yet in each order there is aliases 
module.exports.help = {
name: "eval",
aliase: ["evals"],
category: 'owner',
fonction: [
"- Commandes permettant de tester du code javascript"
],
perm: ["Fondateur"],
utilisation: [
"!eval [message a évaluer]"
],
example: [
"!eval message.guild.name"
]
}```
aliase !== aliases

fonction != function đ


