#discord.js
26 messages · Page 1 of 1 (latest)
you are exactcomparing string and a number
change guess in if to +guess
new to js, use to python thanks lol
no worries ^^
thank you!
/home/runner/minecraft-api-bog/index.js:3
import { authenticate } from '@xboxreplay/xboxlive-auth';
^^^^^^
SyntaxError: Cannot use import statement outside a module
import { authenticate } from '@xboxreplay/xboxlive-auth';
and this?
not sure what you are trying to do, generally looks like you mixing up syntaxes 😅
hard to explain
use deno
I see what you are importing, but I don't see what you are doing
generally .js file doesn't look like deno to me
const xbl = await authenticate('email', 'pass', {
XSTSRelyingParty: 'https://pocket.realms.minecraft.net/'
});
console.log(xbl);
most likely you are using node
I am
I suggest reading more about node module resolution
ok
good luck ❤️
thanks