Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work #4

Open
Plumbiller opened this issue Dec 23, 2024 · 2 comments
Open

Doesn't work #4

Plumbiller opened this issue Dec 23, 2024 · 2 comments

Comments

@Plumbiller
Copy link

const elytrafly = require("mineflayer-elytrafly").plugin;
[...]
    
    bot.on("login", () => {
        bot.loadPlugin(elytrafly)
        })

ERROR: AssertionError [ERR_ASSERTION]: plugin needs to be a function
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '=='

Which is weird bc my code is exactly like the one in README
I tried using const {elytrafly} = require("mineflayer-elytrafly").plugin; with even worse result

@CoolDouble
Copy link

same for me

@amoraschi
Copy link
Owner

amoraschi commented Dec 25, 2024

Try:

const { elytrafly } = require('mineflayer-elytrafly')

@CoolDouble @Plumbiller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants