#can someone help me with this error

71 messages · Page 1 of 1 (latest)

frosty wharf
buoyant stump
frosty wharf
#

command doesn't work

buoyant stump
frosty wharf
#

at discord devenloper portal?

buoyant stump
frosty wharf
#

where can i find it at the bot?

buoyant stump
#

so where you create the Client instance

frosty wharf
#

this is what i have

buoyant stump
#

yeah, well did you made the code? because I don't know either since I didn't made this code.

though if I have to guess it's probably in the index file

frosty wharf
buoyant stump
#

was this your code or someone else's code ?

frosty wharf
#

it was my friend his bot he gave it to me he stopped

#

with discord bot devs

#

etc

buoyant stump
#

I am not sure what the intents are for 32767 but I would say it's probably good.

Is the prefix the correct one?

frosty wharf
#

yeah

#

it's !

buoyant stump
#

is there other commands that works or there is only this command for now?

frosty wharf
#

only one

buoyant stump
#

I would need to see the Handler stuff.
You will have to be more precise with what doesn't work because I can help but I will not debug everything of someone's code though

frosty wharf
buoyant stump
#

From this file, it seems like the command name is given from the name property of the command file

#

you don't have a name in your command file though

#
module.exports.name = "announce"
frosty wharf
#

where

#

do i put

#

i t

buoyant stump
#

in the command file

#

like I already said

frosty wharf
#

what line?

buoyant stump
#

doesn't really matter but it should not be between { }.
like module.exports.help

#

so like before the first module.exports.run or after it. or after module.exports.help

frosty wharf
#

that good

buoyant stump
#

yes

frosty wharf
#

now test?

buoyant stump
#

yeah

frosty wharf
#

nothing

buoyant stump
#

wouldn't it be faster to ask your friend? like he made the code, he would know where everything is. I have to guess everything right now

frosty wharf
#

he stopped

#

with everything

#

don't have contact with him anymore

#

can i maybe send the source to you

#

and you can see?

buoyant stump
#

did you read the code? because you will have to understand it if you want to continue adding stuff.

I don't want the source. I am here to help not to make it for you, there is a difference.

For me to help you, you at least need to know the basics of how to program (specifically in js for this project) and you should know most of the code you are using.

frosty wharf
#

yeah

#

i made

#

this

#

and that stuff

#

but announce

#

im stuck there

buoyant stump
#

did you read the code for the event where the bot receives messages, you should check there. it's probably there that it's wrong

frosty wharf
#

for the announce command?

buoyant stump
#

no, for all the command

#

there should be an event when the bot receives messages

frosty wharf
buoyant stump
#

have you looked at discord.js documentation? you would know which event it is if you do.

frosty wharf
#

can you send the link to the right page?

buoyant stump
frosty wharf
#

didn't find man

buoyant stump
#

like I said, I will not make it for you.
you don't see to have any experience in basic javascript. To make a discord bot you should at least have the basic down.

https://discord.js.org/#/docs/discord.js/main/class/Client?scrollTo=e-messageCreate

discord.js

discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.

elfin summit
# frosty wharf

There is only 1 subdirectory read. commands/<directory>
Any deeper than that, it wouldn't load it. Any more shallow than that, it wouldn't load it.

#

I am 4 days late

#

fuck