Question:
Repl link:
code snippet
Guys this is my replit please fix it I’m dead rn
Its name is KaiKai
Question:
Repl link:
code snippet
Guys this is my replit please fix it I’m dead rn
Its name is KaiKai
Hi @ArnavSrivasta28 , welcome to the forums!
What is not working?
Could you also send the link to your repl or send the code?
Thanks!
The error you are getting shows that mineflayer
is not defined.
I looked at your code and at line 1 of index.js
, you are requiring a package called ‘mineflayer’, however you are not setting it to a variable. Replace that line with the below:
const mineflayer = require('mineflayer');
And then you can access the createBot()
function from it.
I also moved this topic to Node JS