monkeydo/Monkeydo.mjs
2021-11-07 13:36:26 +01:00

25 lines
No EOL
553 B
JavaScript

import { default as MonkeyMaster } from "./monkey/MonkeyMaster.mjs";
export default class Monkeydo extends MonkeyMaster {
constructor(methods) {
if(typeof methods !== "object") {
throw new TypeError(`Expected type 'object' but got '${typeof methods}' when initializing Monkeydo`);
}
super();
this.methods = {};
Object.assign(this.methods,methods);
}
do(task) {
console.log("TASK",task);
}
async loop(times = null) {
times = times < 0 ? null : times;
return await this.setFlag("loop",times);
}
async load(manifest) {
}
}