LookAtMySuitBot/js/node_modules/prismarine-realms/examples/realms.js

16 lines
338 B
JavaScript
Raw Normal View History

2023-12-24 20:08:39 -05:00
const { Authflow } = require('prismarine-auth')
const { RealmAPI } = require('prismarine-realms')
const [, , platform] = process.argv
if (!platform) {
console.log('Usage: node realms.js <platform>')
process.exit(1)
}
const authflow = new Authflow()
const api = RealmAPI.from(authflow, platform)
api.getRealms().then(console.log)