mc-term
Version:
Play Minecraft and configure bots from the terminal
12 lines (11 loc) • 329 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.setInterface = setInterface;
exports.prompt = prompt;
let rlInterface;
function setInterface(int) {
rlInterface = int;
}
async function prompt(query) {
return await new Promise((resolve) => { rlInterface.question(query, resolve); });
}
;