auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
const Gamedig = require('gamedig');
try {
const state = await Gamedig.query({
type: 'minecraft',
host: 'mc.example.com'
})
// "exports" the data below the step for viewing
this.state = state
} catch (err) {
console.log(`Server is offline: ${err}`)
}