Philipp Horstenkamp 20d547fd4d
Some checks failed
Lint / pre-commit Linting (push) Failing after 42s
Added the dependencies.
2023-11-25 00:59:10 +01:00

15 lines
349 B
JavaScript

'use strict'
const { ScreepsAPI } = require('../')
const auth = require('../auth')
const fs = require('fs')
let api = new ScreepsAPI()
Promise.resolve()
.then(()=>api.auth(auth.email,auth.password))
.then(()=>api.memory.get())
.then(memory=>{
fs.writeFileSync('memory.json',JSON.stringify(memory))
})
.catch(err=>console.error(err))