#development

1 messages · Page 1348 of 1

neat harness
#

Yes

#

Probably isn't in this part of the code

quiet arch
#

hmm

#

let me check

#

nope i didnt

neat harness
#

Find anything that starts with const that you tried changing, like:

const lol = "lol";
lol = "nvm";
#

That would throw assignment error

quiet arch
neat harness
#

at Client.<anonymous> (D:\github\pepe-bot\index.js:98:23)

#

at Client.emit (events.js:314:20)

quiet arch
#

where?

#

what line

earnest phoenix
#

98

#

i guess

neat harness
#

file:line:column

quiet arch
neat harness
#

Fp

#

use == not =

tired nimbus
#

its === for strict equal

neat harness
#

= is assigning == or === is for comparing

tired nimbus
#

wheres that javascript tutorial link

earnest phoenix
neat harness
#

yeah that ^^^

quiet arch
#

do i just make let pp to something else then??

neat harness
#

Just change the = in that line to == or ===

earnest phoenix
#

đŸ€Šâ€â™‚ïž

quiet arch
#

i did

neat harness
#

Then it's fine

#

Run it again

quiet arch
#

yep works

boreal iron
#

Just change the = in that line to == or ===

... there’s a huge difference between comparing 2 values or comparing them + their type

neat harness
#

kk gl then

quiet arch
#

thx

neat harness
#

... there’s a huge difference between comparing 2 values or comparing them + their type
@boreal iron Not for that purpose and he is inexperienced

tired nimbus
#

bro wtf was that

quiet arch
#

hmm

quartz kindle
#

Wtf is that

quiet arch
#

pepe licking pepe

#

hihi

neat harness
#

wtf

quiet arch
#

or should i say pp

tired nimbus
#

bro

quartz kindle
#

Wtf

neat harness
#

report

quiet arch
#

a friend wanted it

#

i dunno why

neat harness
#
  1. Must not show NSFW content (mentioning of NSFW in description, icons and emojis)
  2. 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
  3. 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)
  4. Must not be in competition with top.gg
  5. 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.

quartz kindle
#

Your friend needs help

boreal iron
#

lmao

tired nimbus
#

is that code in a json file

neat harness
#

is that code in a json file
@tired nimbus Yes

#

Lmao

earnest phoenix
#

LMAO

#

ima go write js code in .py file

neat harness
#

Bot file not json file

#

Bruh bot file is .js

#

That mybot.js you have

jade stirrup
#

anyone her have experience making bots

neat harness
#

anyone her have experience making bots
@jade stirrup Me

#

Actually, just about everyone here does

jade stirrup
#

would you be available to help improve mine

neat harness
#

Except a certain someone

earnest phoenix
#

lol

neat harness
#

would you be available to help improve mine
@jade stirrup Rn?

jade stirrup
#

well whenever you have the time

hollow pond
#

what wrong there?

neat harness
#

What language are you using @jade stirrup

jade stirrup
#

im actually looking to put together a team of people

#

english

tired nimbus
#

discord.

earnest phoenix
#

team of people who will code u a free discord bot

neat harness
earnest phoenix
#

đŸ€”

hollow pond
#

im getting this

jade stirrup
#

not exactly coding no just setting it up

earnest phoenix
#

its an invalid link

#

ig

hollow pond
#

No links normal

neat harness
#

?

hollow pond
#

its bug

#

when im try copy from github

neat harness
#

What's the problem?

earnest phoenix
#

not exactly coding no just setting it up
It doesn't require a team of people to setup a bot

neat harness
#

not exactly coding no just setting it up
@jade stirrup Setting it up like what?

jade stirrup
#

i used something called botghost

hollow pond
#

Im cant get bot widget

neat harness
#

It doesn't require a team of people to setup a bot
@earnest phoenix Most inexperienced people do it alone

jade stirrup
#

like helping me setup music a game system

neat harness
#

i used something called botghost
@jade stirrup Fp

#

I mean it's okay

hollow pond
#

If open in browser = all okay

neat harness
#

But like you just get the token and paste it, how hard is that?

jade stirrup
#

well i dont know how to code a bot so that would take a lot of youtube videos to make one 😆

hollow pond
neat harness
#

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

hollow pond
#

Its why im dont know what wrong

neat harness
#

Its why im dont know what wrong
@hollow pond Neither do I understand, sorry

boreal iron
#

@hollow pond because the browser will url decode the url and trim it
Remove the %22 behind .png

jade stirrup
#

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

neat harness
#

I don't think that's the problem @jade stirrup

#

It renders properly even if it is so

hollow pond
#

@boreal iron all okay

#

its only if im copy bot code from github

jade stirrup
#

@neat harness did uyou know how to code though when you made it

neat harness
#

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

jade stirrup
#

ok

neat harness
#

JS is simple as logic

jade stirrup
#

but i still have no idea what program to use

neat harness
#

but i still have no idea what program to use
@jade stirrup Discord.js

hollow pond
jade stirrup
#

ok ill check it out

boreal iron
#

Then I assume Discord doesn’t like the website’s ssl authority

neat harness
#

How much im need repeat this
@hollow pond You mean the Image is not showing up?

boreal iron
#

Just don’t load the image

hollow pond
#

yes

neat harness
#

Hmm

hollow pond
#

im try and http and https

boreal iron
#

Try to upload the image to a public service like imgur

hollow pond
#

but its not just image

#

its bot widget

boreal iron
#

That won’t work if a rewriterule is active

#

It will redirect u to https

earnest phoenix
neat harness
#

That won’t work if a rewriterule is active
@boreal iron Doesn't matter I don't think

blissful coral
#

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

boreal iron
#

Insecure connections are not supported anyway

earnest phoenix
#

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

boreal iron
#

Looks like discord also have a whitelist or domains or ca authorities it trusts

earnest phoenix
#

not members

blissful coral
#

HIk

#

Ik

#

How do i get members

jade stirrup
#

@neat harness do i have to download something

neat harness
#

@neat harness do i have to download something
@jade stirrup node.js, a simple code editor or notepad if you can read it.

sullen harness
#

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.

neat harness
jade stirrup
#

i know

neat harness
#

You can't unless you go fetch every user from every guild manually.
@sullen harness Can't you just use fetchAllMembers?

sullen harness
#

Or that ofc

jade stirrup
#

im confused

sullen harness
#

If it's worth the extra ram usage is up to you though.

jade stirrup
#

where do i go to creat my bot

earnest phoenix
#

@trim peak

neat harness
jade stirrup
#

ive done the discord developer portal thing thats where i made the bot

neat harness
#

Then follow the steps in discordjs.guide

jade stirrup
#

k

neat harness
jade stirrup
#

yep i cant install it

#

i dont know the admin password

#

@neat harness

tired nimbus
#

wut

neat harness
#

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

jade stirrup
#

what are those things

neat harness
#

Hosting servers

jade stirrup
#

oh naa

neat harness
#

Glitch and Heroku are free if you want to just try

#

Or get a VPS if you're serious

#

@jade stirrup

jade stirrup
#

does that cost mney

#

and how much

neat harness
#

Glitch and Heroku are free if you want to just try
@jade stirrup These two? No

jade stirrup
#

no VPS

neat harness
#

Or get a VPS if you're serious
@jade stirrup This one, yeah, around $2 to even $1k a month

jade stirrup
#

dam why so much

neat harness
#

$2 are the cheapest ones I think

sullen harness
#

I'd start by learning how to code (if you don't know already) before even thinking about a VPS.

jade stirrup
#

what would be a good starting one

neat harness
#

$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
#

yep

#

alright ill look into it do you have the links to one of those by any chance

jade stirrup
#

k thanks

neat harness
#

np

vernal rivet
shy turret
#

@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)

vernal rivet
#

repl.it would be a better alternative

neat harness
#

It's for a starter bot, for someone who is barely making their first bot

#

We need simplicity guys

jade stirrup
#

just curious how much would it cost to hire someone to make a bot

shy turret
#

pinging glitch.com can get your project blacklisted so you cant access it no more

vernal rivet
#

if they want to make their first bot, then doing it locally is much better

neat harness
#

just curious how much would it cost to hire someone to make a bot
@jade stirrup $20 or more

jade stirrup
#

hmm thats pretty cheap

neat harness
#

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

vernal rivet
#

what device are you using?

jade stirrup
#

yeah my brother forgot the admin password

#

mac

#

older one

neat harness
#

yeah my brother forgot the admin password
@jade stirrup 🙂

vernal rivet
#

you shouldn't need it

earnest phoenix
#

Ok ok use your computer DONE

neat harness
#

you shouldn't need it
@vernal rivet Need for node.js installation

jade stirrup
#

it says i do '

vernal rivet
#

are you using the root profile?

#

or a different profile?

neat harness
#

are you using the root profile?
@vernal rivet Well no, duh

#

How would he log on

jade stirrup
#

wdym root

vernal rivet
#

kellyded i was asking him, as he is the only having the problem

neat harness
#

Like, your default profile @jade stirrup

#

The default Administrator Profile

jade stirrup
#

theres only 2 profiles im currently using the alt one

vernal rivet
#

and the other one is the one that your forgot the password for?

jade stirrup
#

yes

neat harness
#

Yeah, definitely not the root

vernal rivet
#

windows, or Mac os?

jade stirrup
#

Mac os i believe

vernal rivet
#

kellyded ofc mac has to be difficult sometimes.

neat harness
#

It's harder to crack MAC OS I think

#

In win you can just self grant superuser

#

By using console boot

hollow sedge
jade stirrup
#

hmm theres a way according to google to do stuff but io dont want to mess around and ruin something

hollow sedge
#

you wont ruin it if you follow the instructions

neat harness
#

hmm theres a way according to google to do stuff but io dont want to mess around and ruin something
@jade stirrup Good

buoyant aspen
#

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?

vernal rivet
jade stirrup
#

ill read that now

hollow sedge
#

"page not found" lol

vernal rivet
#

because administrator bypasses the perm checks. it has all the perms

#

now try

buoyant aspen
#

Okay, but if it has the perms I listed, I want it to still return true. How can I do that?

jade stirrup
#

that didnt help

vernal rivet
#

which link dead?

#

what does your if statement look like for the perm check cam?

neat harness
jade stirrup
#

yours

neat harness
#

I'm not sure what the problem is

vernal rivet
#

what does your code look like?

neat harness
#

It's been spamming for days

vernal rivet
#

it looks like casting errors

jade stirrup
#

it says i can open up the terminal but i dont know hown

neat harness
#
              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);
              }
buoyant aspen
#

what does your if statement look like for the perm check cam?
@vernal rivet js if (!message.guild.me.hasPermission(command.requiredBotPerms)) { /*...*/ }requiredBotPerms:

requiredBotPerms: ['MANAGE_MESSAGES', 'MANAGE_NICKNAMES', 'READ_MESSAGE_HISTORY', 'USE_EXTERNAL_EMOJIS']
vernal rivet
#

NaN means Not a Number

neat harness
#

NaN means Not a Number
@vernal rivet But it is a number

buoyant aspen
#

@vernal rivet But it is a number
@neat harness you sure it's not a string?

neat harness
#
  exp: {type: Number, default: 0},
  coins: {type: Number, default: 0},
buoyant aspen
#

¯_(ツ)_/¯

vernal rivet
#

double Pings kellyded

#

console.debug the exp and coins when you are asking for them

neat harness
#

double Pings :kellyded:
@vernal rivet Triple 😛

hollow sedge
#

@neat harness why dont you use += or -=

neat harness
#

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

vernal rivet
#

you don't need to ping me everytime, i am here

neat harness
#

@neat harness why dont you use += or -=
@hollow sedge I lack javascript programming experience, I just found that that thing exists

hollow sedge
#

@hollow sedge I lack javascript programming experience, I just found that that thing exists
@neat harness ah okay

white sun
#
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
vernal rivet
#

looks like your casting a NaN to a String, which is against casting rules.

neat harness
#

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?

vernal rivet
#

the error says otherwise

#

errors are never wrong

neat harness
#

I mean, the same code works well on my other bots

hollow sedge
#

@vernal rivet lint errors

vernal rivet
#

probably

neat harness
#

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);
```?
vernal rivet
#

yes

hollow sedge
#

yes

neat harness
#

K thx

#

My logic didn't add up for a sec

vernal rivet
#

+= means add value to existing value

neat harness
#

Kk thanks

vernal rivet
#

np

neat harness
vernal rivet
#

what type is auth.multiplier

neat harness
#

Number

buoyant aspen
#

Sorry to continue to bother you panda, but I'm trying to work this out today. Any thoughts? (#development message)

neat harness
buoyant aspen
#

I think I found the problem
@neat harness Umm... Client mods are very against the ToS.

jade stirrup
#

in order to change th admin pass i need the admin pass

neat harness
#

@neat harness Umm... Client mods are very against the ToS.
@buoyant aspen Ssssshhhh

jade stirrup
#

im currently in the terminal

hollow sedge
#

that background is very distracting

#

makes it hard to see the text

neat harness
#

makes it hard to see the text
@hollow sedge Sry I had to manually CSS and i'm bad at it

hollow sedge
#

lol you should just decrease the opacity

vernal rivet
#

oofers

neat harness
#

God Typo ate up my weeks of hard work

mutiplier: {type: Number, default: 1},
vernal rivet
#

oofers

jade stirrup
#

@neat harness how much would you charge to make a bot

neat harness
#

@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?

hollow sedge
#

i thought you just learned js

vernal rivet
#

learn js

neat harness
#

And to what degree, Beginner, Intermediate or Advanced

hollow sedge
#

now you're commissioning bots?

#

lol

vernal rivet
jade stirrup
#

like moderation,music,game,levels all the thing to make a discord server basically

neat harness
#

i thought you just learned js
@hollow sedge Not really, just didn't pay attention to some js features I dont use

jade stirrup
#

lets say intermediate

neat harness
#

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

jade stirrup
#

wdym maybe not

#

music i can do without

neat harness
#

I can't make music or games, so it wouldn't be proper for me to...

hollow sedge
#

@jade stirrup if you want all that stuff you might as well invite bots that are already out there

neat harness
#

@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

jade stirrup
#

but thats a pain and i want my own bot

neat harness
#

but thats a pain and i want my own bot
@jade stirrup Have both simultaneously

vernal rivet
#

then make one

hollow sedge
#

but thats a pain and i want my own bot
@jade stirrup why do you want your own bot?

jade stirrup
#

yes

neat harness
#

@jade stirrup why do you want your own bot?
@hollow sedge The feeling of accomplishment

hollow sedge
#

yeah then make it

#

why is he (or she) asking you to make it then

neat harness
#

He doesn't want to start from zero?

jade stirrup
#

its difficult to explain why i want a bot

neat harness
#

hmm

vernal rivet
#

people need to understand if you want one, then you are going want to put in the work and learn how to make it.

hollow sedge
#

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

jade stirrup
#

i want to make one but this computer keepts me from making one

neat harness
#

@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

vernal rivet
neat harness
#

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

vernal rivet
#

its your best option right now, till you fix your admin problem

neat harness
vernal rivet
#

don't do glitch, it will haunt you afterwards

neat harness
#

Yes, yes I know, glitch is trash

jade stirrup
#

what language should i select

neat harness
#

I quit glitch moths ago

hollow sedge
#

@jade stirrup BROO

neat harness
#

what language should i select
@jade stirrup discord.js

vernal rivet
#

if you are new, then python, or javascript

hollow sedge
#

^

neat harness
#

JS is better for begginers

jade stirrup
#

i still have no idea what im doing

vernal rivet
#

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.

neat harness
#

I'm still pissed at this God-Tier Typo

mutiplier: {type: Number, default: 1},
hollow sedge
#

@jade stirrup maybe just look at a few tutorials for the languages and see what you like best

neat harness
#

@jade stirrup maybe just look at a few tutorials for the languages and see what you like best
@hollow sedge +1

prisma oriole
#

asm is clearly the most superior beginner language

#

i love writing my discord bot with raw 1s and 0s

vernal rivet
#

happy_boy ummmmmm no glass is more superior beginner language, idk where you thought that was better

neat harness
#

:happy_boy: ummmmmm no glass is more superior beginner language, idk where you thought that was better
@vernal rivet doggowave

vernal rivet
#

yes?

neat harness
jade stirrup
#

ok so will i need tutorials to learn how to make a bot

vernal rivet
#

depends

neat harness
#

ok so will i need tutorials to learn how to make a bot
@jade stirrup It's easier that way

vernal rivet
#

if you feel like you do, then yes, if not, then no

jade stirrup
#

ok

neat harness
#

But, not rly

#

if you feel like you do, then yes, if not, then no
@vernal rivet Confusing Sentence bruh MegaThonk

vernal rivet
#

if you feel like you need it, then yes use it, if not, then don't use it. shrug a lot of what a programmer does is based on what they feel like doing. we never do what we don't like

jade stirrup
#

i mean does anyone want to help😬

neat harness
#

Well, I would like to, but my bot has a bunch of errors rn

vernal rivet
#

||what a great question after what i said happy_boy , when i said that we don't like doing what we don't like.||||jk||

jade stirrup
#

and should i use python javascript or node.js

vernal rivet
#

node.js is not a language

neat harness
#

javascript and node.js

jade stirrup
#

it says it is

neat harness
#

node.js is a server

#

for js

vernal rivet
#

node.js is javascript. its only a environment that javascript runs int

#

in*

jade stirrup
#

there about 40 differant ones to choose from

vernal rivet
#

server is kind of misleading there

neat harness
#

Choose wisely

vernal rivet
#

nah, it depends on what you want

neat harness
#

server is kind of misleading there
@vernal rivet Sry, that's how I like to describe it

jade stirrup
#

so which language then

vernal rivet
#

i mean its not a bad description, but its very misleading of what it really is

neat harness
#

nah, it depends on what you want

jade stirrup
#

like a starter one

vernal rivet
#

do you want structure in your code style, or not deadlord?

jade stirrup
#

yesif its what im thinking that means

vernal rivet
#

when i say structure, i mean strict structure, like it has to look like this?

neat harness
jade stirrup
#

yes

abstract coyote
vernal rivet
#

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.

neat harness
vernal rivet
#

if you want one that has amazing doc, and guide for discord libraries, then javascript is the best

hollow sedge
#

uh

#

discord py doc is really good too

vernal rivet
#

happy_boy what am i looking at, thats like too much for my eyes to handle

jade stirrup
#

well dam thats a hole lot of codes there

vernal rivet
#

i mean i looked at the docs, and my eyes were burning from looking at the white background

hollow sedge
#

omg what is @neat harness

#

*that

neat harness
#

omg what is @neat harness

javascript is more flexible with its code style, and this can lead to absolute trash code styles.

hollow sedge
#

ah i see

neat harness
#

*that
@hollow sedge My bot code lmao

hollow sedge
#

but this is your own?

#

omg

neat harness
#

Yeah, it's my own

jade stirrup
#

that looks really complex

hollow sedge
#

hurts to see

neat harness
#

hurts to see
@hollow sedge I'd agree to that

hollow sedge
#

why did you line break so many times unnecessarily

vernal rivet
#

i use allman brace style happy_boy

neat harness
#

i would like to beg to differ tbh
@vernal rivet Clean code

hollow sedge
#

why did you use line breaks so much

vernal rivet
neat harness
#

why did you line break so many times unnecessarily
@hollow sedge Cuz I like it

jade stirrup
#

aggggghghghgh

hollow sedge
#

i dont use line breaks because if i want everything to be in view i can just toggle word wrap in VS Code

jade stirrup
#

this will take me forever

vernal rivet
#

'e!msg' is a string, not a object

neat harness
#

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 phoenix e!msg?

#

Np

hollow sedge
#

@hollow sedge Cuz I like it
@neat harness one of your lines is literally just ) {

vernal rivet
#

nah, it won't take you long

neat harness
#

@neat harness one of your lines is literally just ) {
@hollow sedge 🙂

#

I like codes that're going downwards not sidewards

vernal rivet
#

oh wait your talking to swyrene dogekek

jade stirrup
#

except i know nothing abut coding

vernal rivet
#

i thought you were referring to me

hollow sedge
#

lol no yours looks clean

vernal rivet
#

neglected also doesn't know programming, but he is learning, and he is doing pretty good

neat harness
#

lol no yours looks clean
@hollow sedge +1

hollow sedge
#

@vernal rivet what theme is that

#

it looks epic

neat harness
#

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 use message or msg?

vernal rivet
#

material i think. if your asking about my vscode theme

hollow sedge
#

yes that is what im asking

vernal rivet
#

like deep ocean material i think, let me look

neat harness
#

It depends

#

You can use msg or message but make sure to synchronize it with your entire code

vernal rivet
#

material theme

still merlin
#

@earnest phoenix is the 'msg' a example, or do you have that in your code

hollow sedge
#

omg

#

this theme

#

is beautiful

vernal rivet
#

i had to edit the font, using fira code

#

lol it is

neat harness
vernal rivet
#

it speaks the truth

hollow sedge
#

they dont lie

neat harness
#

K but what about the startsWith problem
@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

vernal rivet
#

if you want icon theme, then use materail theme icon

neat harness
#

if(!msg.content.startsWith(prefix)) return;

hollow sedge
#

😼 i didnt know you could get icon themes

#

omg yes

vernal rivet
#

remember 'string', "string", `string`

#

yert

neat harness
#

That's an example and why the quotes
@earnest phoenix change it to message then

vernal rivet
#

cloudfox is happy

neat harness
#

if(!message.content.startsWith(prefix)) return;

hollow sedge
#

much thanks for introducing me to this

vernal rivet
#

np lol

neat harness
#

Searching... Material Theme... was it?

vernal rivet
#

yert

#

material theme in extensions

compact briar
#

man this community has coded this dudes entire bot lol

zenith knoll
#

halp

neat harness
#

man this community has coded this dudes entire bot lol
@compact briar LMAO

zenith knoll
#

idk what db to learn and how

vernal rivet
#

sqlite

neat harness
#

idk what db to learn and how
@zenith knoll Try quick.db or mongoose

vernal rivet
neat harness
#

sqlite
@vernal rivet Dude.....

vernal rivet
#

what is your message event look like?

compact briar
#

lol and it keeps going @neat harness

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

compact briar
#

lol i mean this is like 30 hours in of every single thing thats added.

neat harness
#

xd

compact briar
#

im all for helping if i can but lord

neat harness
#

Lolz

#

I had to spoonfeed in the end cuz it was too hard to explain

compact briar
#

i tried recommending watching YouTube vids to learn last night đŸ€·â€â™‚ïž

earnest phoenix
#

Interesting that mostly people ask questions in js not pythonThonk

vernal rivet
#

basically people prefer it. not much to judge there

compact briar
#

i think its bc if you google how to get started it comes up with js first

vernal rivet
#

^^^^

neat harness
#

i think its bc if you google how to get started it comes up with js first
@compact briar Very true

compact briar
#

and js is a more common language than py anyways

earnest phoenix
#

Nope don't agree but ok

neat harness
#

I started learning 6 months ago and ever since, only JS shows up on google, and occasionaly Py

abstract coyote
#

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 ;)

vernal rivet
neat harness
#

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

compact briar
#

bruh js is used waaay more in other applications.

neat harness
#

bruh js is used waaay more in other applications.
@compact briar bloblul

abstract coyote
#

oh allrigjt

earnest phoenix
#

Or maybe it's becuz py programmers more experienced than js programmers?thonkku

#

So they don't need help here

vernal rivet
#

oh matt is here ||sorry had to do that happy_boy ||

neat harness
vernal rivet
#

that fact is very untrue dead light

#

yert

compact briar
#

or because its easier @earnest phoenix đŸ€”

neat harness
#

const client has to be on top

#

@earnest phoenix

compact briar
#

you have to define client before using it đŸ€Šâ€â™‚ïž

zenith knoll
#

can someone terach me mysql lmao

earnest phoenix
#

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

neat harness
#

client.on('message') has to be below const client or const Discord, preferably below client.on('ready')

vernal rivet
#

happy_boy
computer: "WHAT THE FUCK IS CLIENT"
me: "WHAT DO YOU MEAN"
story of my life

neat harness
#

@earnest phoenix

abstract coyote
#

oh matt is here ||sorry had to do that :happy_boy: ||
yossssss

vernal rivet
#

events doesn't matter what order they are in. they just have to be under the variable declaration

zenith knoll
#

yes

sudden geyser
#

Or maybe it's becuz py programmers more experienced than js programmers?thonkku
@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

vernal rivet
#

C# is superior

sudden geyser
#

Then again, I tried searching "Discord bot" and "How to make a Discord bot" and the first popups I get are for discordpy.

neat harness
sudden geyser
#

But Google search results are not sorted the same for everyone.

compact briar
#

@earnest phoenix read the error and figure out what it is saying

neat harness
#

const Discord has to be above const client

#

@earnest phoenix

vernal rivet
#

cause the code style is disgusting shrug

#

idk man, js sometimes complains about random stuff

earnest phoenix
#

@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

zenith knoll
#

dude

#

please

sudden geyser
#

JavaScript has way too many flavors.

compact briar
#

its going to be impossible to make a good bot if you cant figure out the simplest of errors.

zenith knoll
#

learn some basic JS logic before coding a bot @earnest phoenix

#

please

neat harness
#

please
@zenith knoll Pretty Please @earnest phoenix

compact briar
#

dude you didnt read it good enough

neat harness
#

Dude I read that entire site yall sent me
@earnest phoenix The Entire?

hollow sedge
#

anyone know how to get the bot's ping to the user in python? probably not possible since it's through discord 😩

vernal rivet
zenith knoll
vernal rivet
#

lmao cloudfox

zenith knoll
#

Weve been spoonfeeding ur whole bot

sudden geyser
#

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.

zenith knoll
#

since this morning

neat harness
#

Weve been spoonfeeding ur whole bot
@zenith knoll +100 on that

hollow sedge
#

lmao cloudfox
@vernal rivet I NEED HELP 😩

vernal rivet
#

oh wait you're serious happy_boy

hollow sedge
#

yes

vernal rivet
#

i don't do py for a strict reason, cause of that god stupid fuckign whitespace syntax

compact briar
#

Weve been spoonfeeding ur whole bot
@zenith knoll
i said this yesterday lol

hollow sedge
#

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

vernal rivet
#

fair

hollow sedge
#

NO

#

dont use discord bot maker

zenith knoll
#

unembeded

#

yw

#

please use them neglected

sudden geyser
#

I think you can write like: js if true if true if true // do stuff
In JavaScript.

vernal rivet
#

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

zenith knoll
#

i dont do that

sudden geyser
#

Then whitespace does matter for you

vernal rivet
#

and no don't fucking use discord bot maker.

zenith knoll
#

dude

compact briar
#

yes there are plenty

vernal rivet
#

shrug js doesn't have the best code style. it has to rely on eslint tbh

zenith knoll
#

stop

#

im cringing

#

stop

neat harness
#

and no don't fucking use discord bot maker.
@vernal rivet Who fucking does

compact briar
#

but please. maybe he will make the entire bot for you, like we have been doing for two days

zenith knoll
#

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

vernal rivet
#

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

hollow sedge
#

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

zenith knoll
#

star my msg pls

#

lmao

vernal rivet
#

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.

zenith knoll
#

im trying lmao

vernal rivet
#

all good my dude

zenith knoll
#

im saying, you cant expect us to write the bot for you

sudden geyser
jade stirrup
zenith knoll
#

i used caps to highlight important info

jade stirrup
#

Is it good

zenith knoll
#

i used caps to highlight important info
@zenith knoll

neat harness
#

I played with coding since I was 12

vernal rivet
#

shrug i mean we all start somewhere

neat harness
#

:shrug: i mean we all start somewhere
@vernal rivet
I played with coding since I was 12
@neat harness

jade stirrup
#

That's what I have so far it's python

compact briar
#

lmao is this dude really throwing shots rn

zenith knoll
neat harness
#

HTML5, CSS3, JavaScript, PHP, and basic knowledge of Python

hollow sedge
#

Thats what I have so far
@jade stirrup why did you take a picture of the screen, its so blurry we cant see anything

zenith knoll
#

ok but i need spoonfeeding on mysql

#

jk

#

lmao

vernal rivet
#

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

zenith knoll
#

i got trusty google

jade stirrup
#

yeah i dont know how to screenshot in mac

sudden geyser
#

what about coder

neat harness
#

@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?

zenith knoll
#

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

vernal rivet
#

programmer

sudden geyser
#

AQ Command + Shift + 4?

hollow sedge
#

^

sudden geyser
jade stirrup
#

im currently using a differen't keyboard then the original one

hollow sedge
#

@sudden geyser @jade stirrup better yet just send the link to your repl

earnest phoenix
#

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 )

zenith knoll
#

uh

vernal rivet
#

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.

zenith knoll
#

check if the msg is sent by a bot?

earnest phoenix
#

yes

neat harness
#

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

earnest phoenix
#

but like, when is the line of code for it

zenith knoll
#

?

#

wat

sudden geyser
#

Use <TextChannel>.messages.fetch(...), filter all messages for those sent by the bot (check the author ID), then <TextChannel>.bulkDelete?

neat harness
#

He wants some spoonfeed I guess

sudden geyser
#

Something like that

earnest phoenix
#

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 KEKW

vernal rivet
#

use predicates

zenith knoll
#

can i get a platter filled with how to use and learn mysql at table four?

thanks

#

lmao

#

LMAO

vernal rivet
hollow sedge
#

@hollow sedge lol that's why I never attracted into js although I'm java master KEKW
@earnest phoenix yeah after working in c# i just feel like python is so much more readable

vernal rivet
zenith knoll
#

?

neat harness
vernal rivet
#

dogekek idk what you mean c# is pretty readable dogekek

zenith knoll
#

ive been programming for 2 months so dont expect me to know anything

#

lmao

neat harness
#

lmao
@zenith knoll You sound pretty insightful

zenith knoll
#

idk

hollow sedge
#

:dogekek: idk what you mean c# is pretty readable :dogekek:
@vernal rivet well sure, but python is more readable

vernal rivet
#

i been programming for like 5 years now

zenith knoll
#

how did i get a green role too lmao

#

i didnt get no reaction role

#

or i forgot

#

idk

vernal rivet
#

oofers

zenith knoll
#

¯_(ツ)_/¯

#

i mean ill take it but how i got it is the question

sudden geyser
#

I like myself some Python and Rust.

earnest phoenix
#

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)

neat harness
zenith knoll
#

hmm?

#

what

#

i cant see it

#

not cached

neat harness
#

Wew

zenith knoll
#

im on browser discord

neat harness
#

It's ur bot's botinfo

zenith knoll
#

ooo

#

yae

#

yea

#

good bot

#

def didnt use dbm or buy it

#

mhm

#

trust

vernal rivet
#

shrug 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.

neat harness
#

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

zenith knoll
#

o

#

i got accepted first try

#

in uh

#

u months

#

2*

#

8/15/2020

got accepted on 10/8/2020

still merlin
#

I got accepted in one week, and accepted first try

zenith knoll
#

whats nekos.life

neat harness
#

My bot was accepted in 3 weeks from 6 months ago, but got instantly deleted for eval command leaks

hollow sedge
#

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

neat harness
#

whats nekos.life
@zenith knoll API Endpoint

still merlin
#

nsfw thing

hollow sedge
#

uh

zenith knoll
#

ok ik but what does it do

#

o

hollow sedge
#

dont go there

zenith knoll
#

ok

neat harness
#

@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

earnest phoenix
#

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

hollow sedge
#

lol fr?

neat harness
#

fr

still merlin
#

i think it produces inappropriate pictures of minors, whenever a bots declined for using nekos.life it says that

vernal rivet
#

unless your into that kind of things happy_boy then go for it, but viewer advise

zenith knoll
#

im

#

not

#

18

#

so

#

uh

#

its a no

neat harness
#

Neither am I

vernal rivet
#

then don

#

dont*

neat harness
#

Lmao

zenith knoll
#

Neither am I
@neat harness y u use it

#

then

#

illegal

hollow sedge
#

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

zenith knoll
#

illegalality

hollow sedge
#

its against discord tos and illegal

still merlin
#

^

zenith knoll
#

swyrene isnt 18 and uses it lkmao

neat harness
#

@neat harness y u use it
@zenith knoll Bcz... I had to

zenith knoll
#

👀

neat harness
#

For the content

#

I mean, I had no bot ideas

zenith knoll
#

how do u get mysql

vernal rivet
zenith knoll
#

wow

#

i made my bot off of a book LMAO

hollow sedge
#

how do u get mysql
@zenith knoll you make an sql
thats why its called MYsql

zenith knoll
#

im making a new project who wants to speenfeed me the code

vernal rivet
#

hey, cloudfox aint wrong

zenith knoll
#

first to react to it ill dm u

earnest phoenix
#

No to mysql for discord bots

zenith knoll
#

lmao

still merlin
#

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

zenith knoll
#

spida man

sudden geyser
#

why wasn't it called spider

#

oh wait I'm dumb

#

I meant scream

jade stirrup
#

why isnt it letting me upload a photo

still merlin
#

screambot sounded weird

zenith knoll
#

like

vernal rivet
#

use sqlite instead

zenith knoll
#

why

vernal rivet
#

easier to handle

sudden geyser
#

weird yet unique

neat harness
hollow sedge
still merlin
#

ig lol

sudden geyser
#

prefix is eek, AAAAAA and AAAHH

jade stirrup
vernal rivet
#

oh right py is snake case

zenith knoll
#

Discord.MessageEmbed()

neat harness
zenith knoll
#

nvm

#

py

still merlin
#

i'm no discord py expert but did you check the discord.py docs

jade stirrup
#

so hows that

zenith knoll
#

whats eval

vernal rivet
#

evaluate

neat harness
#

whats eval
@zenith knoll to evaluate a certain command

zenith knoll
#

yea

#

what it do

vernal rivet
#

evaluate a snippet of code

jade stirrup
#

is that good for a start

still merlin
#

run some code via discord

hollow sedge
#

here it is
@jade stirrup delete the () after orange

neat harness
#

basically does whatever you do in a command code in discord

hollow sedge
#

that would mean you are running a function

still merlin
#

its often used for testing stuff

zenith knoll
#

is mysql 2 good or nah

neat harness
#

Nah

#

Not for me anyway

zenith knoll
#

vote

mysql 1ïžâƒŁ
sqlite 2ïžâƒŁ
mongo 3ïžâƒŁ

#

pls

jade stirrup
#

@hollow sedge ok done

vernal rivet
#

its good, but sqlite is going to be better to use, as it is easier to handle

neat harness
#

3

hollow sedge
#

@jade stirrup also embed is capitalized: discord.Embed

jade stirrup
#

done

zenith knoll
#

BRUH

#

ITS A TIE

#

mongo wins

#

ok

#

interesting

sudden geyser
#

SQLite is 👑

zenith knoll
#

MONGO IS WINNING SO MUCH

#

sqLite

hollow sedge
#

@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

sudden geyser
#

my name isn't based on SQLite for the record

vernal rivet
#

but i thought it was, because it is pretty lite

jade stirrup
#

what does that mean

hollow sedge
#

hold up

#

deadlord voted for sqlite

#

wait

#

he voted for all of them

#

nvm

jade stirrup
#

yea i voted all

still merlin
#

SQLite is pretty good, My father uses it for his job, He's going to teach me

zenith knoll
#

my dad works at google so he uses googledb

hollow sedge
#

@still merlin ur father is irrelevant

#

my dad works at google so he uses googledb
@zenith knoll ur dad is irrelevant

jade stirrup
#

lol

#

toxic

zenith knoll
#

hes a T6 so stfu

hollow sedge
#

T6?

zenith knoll
#

yea

#

theres t1-t12

hollow sedge
#

my dad is bill gates so mongo is better

zenith knoll
#

t12 as in ceo

#

so i think

#

im using mongo

#

i will atleast

jade stirrup
#

lol

earnest phoenix
#

Json is 👑 lol

hollow sedge
#

@zenith knoll u should use firebase to support ur dad

still merlin
#

I tried using it once, Brought hell to my bot

hollow sedge
#

Json is 👑 lol
@earnest phoenix :đŸ€ź

zenith knoll
#

Json rules

#

JSON GANG

still merlin
#

my bot is still broken lol

zenith knoll
#

JSON RUNS Y OU

vernal rivet
#

json is trash at heavy weight data

zenith knoll
#

JSON RUNS U'

earnest phoenix
#

Json is my childhood

hollow sedge
#

if ur using python

zenith knoll
#

MY BOT USES JSON RN

hollow sedge
#

pickle is better

zenith knoll
#

AAND ITS topgg verified

#

so

earnest phoenix
#

When I didn't know about mongo yet

zenith knoll
#

im usin it

earnest phoenix
#

But then

still merlin
#

Json was my first ever database

hollow sedge
#

im usin it
@zenith knoll i didnt want to do this to you, but how many people are using your bot?

vernal rivet
#

have fun with json files corrupting dogekek

zenith knoll
#

can u put a mongo server in a vps?

buoyant aspen
#

Anyone know of an easy way to check what permissions a function uses? (d.js)

hollow sedge
#

a mongo server??

zenith knoll
#

@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

earnest phoenix
#

Json was my first ever database
That's why its 👑

zenith knoll
#

it says 97k users in the servers its in

hollow sedge
#

@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

zenith knoll
#

y

still merlin
#

i mean, it was kinda fun and i learnt new stuff while working with my json database

vernal rivet
#

yert

zenith knoll
#

april what u use now

#

cloud what u use rn

still merlin
#

but then it broke my bot :/

vernal rivet
#

the problem is that json has a limit of how much it can handle

hollow sedge
#

cloud what u use rn
@zenith knoll mongoDB Atlas

still merlin
#

I use nothing currently, I'm planning on using SQlite

earnest phoenix
#

Lol i remember someone calling Excel as database

#

😂

zenith knoll
#

KILL ME I CANT FIND HOW TO USE MONGO OR SQL

#

MYSQL*

vernal rivet
#

airtable is pretty good tbh

hollow sedge
#

Lol i remember someone calling Execl as database
@earnest phoenix excel sucks as a db, use google spreadsheets

still merlin
#

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
#

@earnest phoenix excel sucks as a db, use google spreadsheets
Pretty sure for big bots i have to use mongodb

zenith knoll
#

rethink db?

earnest phoenix
#

That's perfect seriously

zenith knoll
#

thoughts on rethinkdb?

earnest phoenix
#

Never Heard...

zenith knoll
#

dank memer uses it

still merlin
#

Mongo looks complicated

hollow sedge
#

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

zenith knoll
#

dank memer uses it
@zenith knoll

vernal rivet
#

google sheets api is just shit. you can't change my mind, because that is a true fact

earnest phoenix
#

Mongo looks complicated
@still merlin pepowot

hollow sedge
#

sql is the past guys (joke)

earnest phoenix
#

I swear I learned mongo faster than json😂

still merlin
#

I was debating databases a while ago before i settled on sqlite

#

I looked at a mongo example thing and it was complicated

hollow sedge
#

I looked at a mongo example thing and it was complicated
@still merlin just think of it as a huge dictionary

#

ez

still merlin
#

I've never read a dictionary-

hollow sedge
#

..you're joking right?

still merlin
#

No

hollow sedge
#

i mean a programming language dictionary

vernal rivet
#

does cloudfox knows airtable?

still merlin
#

Oh, no as well lol

hollow sedge
#

does cloudfox knows airtable?
@vernal rivet cloudfox does not

still merlin
#

Actually I did read a small irl dictionary but thats not relevant

vernal rivet
#

its the better google sheets. like its api docs is just godly, and is pretty easy to use.

still merlin
#

I'll look one up now

hollow sedge
#

đŸ€” ill keep that in mind if i ever make an app that relies on spreadsheets

earnest phoenix
#

Btw, did google pay you for that?

vernal rivet
#

you can use it as a database as well. it functions like sqlite tbh

#

and no

hollow sedge
#

why would google pay you to trash on their product

vernal rivet
#

yea

#

google sheet's api is just shitty, and nothing they do is not going to make it better

hollow sedge
#

i tried using google classroom api a while ago but couldnt figure it out

#

perhaps i should try again

vernal rivet
#

shrug maybe

earnest phoenix
#

well google apis are always complicated you have to make 274928472 account answer 4729737 questions o order to get the api

hollow sedge
#

idek what that means but ok

vernal rivet
#

or you just don't deal with it

hollow sedge
#

truee

waxen tinsel
#

Bruh mysql

viscid gale
#

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'

still merlin
#

@earnest phoenix remove 'Discord' (the quote's)

viscid gale
#

('discord.js').Client i think

#

i can't remember the syntax atm

#

but it's a common thing, prob in the discord.js docs

still merlin
#

Did your code work until you did something

viscid gale
#

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

still merlin
#

idk what the problem is

earnest phoenix
#

well have you read the error

still merlin
#

because you don't have it installed

earnest phoenix
#

correct, i.e. isn't installed

still merlin
#

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?

viscid gale
#

:l

#

oof

#

what os r u using

still merlin
#

I'm sorry but do you even know how to code?

viscid gale
#

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

solemn latch
#

javascript is the best os Thonk

viscid gale
#

o gosh ease him up

still merlin
#

Going straight to a bot isn't the best idea

viscid gale
#

true

solemn latch
#

English best programming language

still merlin
#

@earnest phoenix 'npm help' in your console/terminal

viscid gale
#

i learned from humble beginnings; messing around on chrome dev tools

still merlin
#

I learned from a js file with arrays etc

viscid gale
#

hmm it started messing around on page urls to get different stuff

still merlin
#

no

#

npm help in your console/terminal

earnest phoenix
#

init, like the word says, is for initialization

still merlin
#

^

#

npm init creates your packet.json file lol

viscid gale
#

this is so complex to explain from the bottom up

earnest phoenix
#

take a guess what's the command to install packages

viscid gale
#

it's like u wanna build a fence when u never did yardwork

earnest phoenix
#

close enough

viscid gale
#

ite ima press

earnest phoenix
#

npm install pkg or npm i pkg for short

still merlin
solemn latch
#

the one it couldnt find

still merlin
#

^

earnest phoenix
#

go back and read what's the error complaining about, that

still merlin
#

Do you even know what sqlite is?

earnest phoenix
#

typing on mobile is pain

still merlin
#

yes

jade stirrup
#

Bruhs somethings wrong and its not running through

still merlin
#

.-.

#

whats the error?

jade stirrup
#

I'll have to upload a screenshot

still merlin
#

use hastebin or code blocks

jade stirrup
#

Which will be a while since I had to run out for a few minutes

still merlin
#

ok

jade stirrup
#

It says error by line 21 and something like that

#

I'll have to get the screenshot when I get home

still merlin
#

node . or node <filename>.js

#

I recommend node . as its quicker depending on your package name

jade stirrup
#

For me???

still merlin
#

No

#

I'm reading your screenshot now

jade stirrup
#

Ok

still merlin
#

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

jade stirrup
#

Agggg

still merlin
#

no

#

its a database, used for storing data, like guild ids, or usernames

viscid gale
#

ok bois... the end road, i passed 2 of 3

still merlin
#

yes

viscid gale
#

sry ik nobody asked but this ive been working on for like 4 hrs

vernal rivet
#

you need py for that i think

still merlin
#

i've gotta go call my mother, then I've gotta go to bed. bye

viscid gale
#

counting in yesterday, somewhere around 7

vernal rivet
#

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.

#

happy_boy no, the build script is needed to build the package, thats it

sudden geyser
#

can you make a bot in two languages?
@earnest phoenix yes, but you probably don't need it.

wicked pivot
#
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)```
sudden geyser
#

.aliases is undefined.

#

Maybe you didn't export the property.

wicked pivot
#

yet in each order there is aliases Detente_ref

#
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"
    ]
}```
sudden geyser
#

aliase !== aliases

wicked pivot
hollow sedge
#

fonction != function 😆

sudden geyser
#

also utilisation is not a word

#

maybe you meant utilization, but even that is vague.