Skip to content

Commit

Permalink
Update example to use ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
link-discord authored Aug 27, 2024
1 parent 7772328 commit 320358b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ npm install mineflayer-auto-eat
## Example

```js
const mineflayer = require('mineflayer')
const autoeat = require('mineflayer-auto-eat').plugin
import { createBot } from 'mineflayer'
import { plugin as autoeat } from 'mineflayer-auto-eat'

const bot = mineflayer.createBot({
host: process.argv[2],
Expand Down

0 comments on commit 320358b

Please sign in to comment.