Import problems

You will need to add module.exports at the end of your file in order to export your functions.


had to edit it bc it had a discord link but here ya go

where is cmd.handler defined

i dont even know i have looked up and down of index.js and couldnt find it

1 Like

well it says it’s not a function so I don’t really know how to help you ¯\_(ツ)_/¯ if I sounded mad this conversation, I didn’t mean it BTW :stuck_out_tongue:

cmd is defined as require("mineflayer-cmd").plugin, but the program may need the entire module to use cmd.handler.