My goal is to create a minecraft bot user with mineflayer. I installed node.js and installed mineflayer from terminal, then made a variable that was `require('mineflayer')`. I then used

```js
const mineflayer=require('mineflayer');
const bot=mineflayer.createBot({
    host:'minehut.gg', //only for test purposes
    username: 'MyUserName',
    password: 'myPWD'
});

const plankRecipe = bot.recipesFor(5)[0];

```

However, on the last line of that snippet, it throws the following:
`TypeError: bot.recipesFor is not a function` . Why is it doing this, and how do I get it to recognize that it is a function? My only theory so far is that it failed to connect and just isn't telling me that it couldn't properly make the bot object.

Thanks!

**EDIT:**
the WebStorm debugger says bot is an EventEmitter object, not a Bot object as expected. Does this help?