feat: 🎉 init new repo
Dump of current working bot. Warning: somewhat messy code! Lints haven't been run, no tests, etc.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
const armorManager = require('mineflayer-armor-manager')
|
||||
const mineflayer = require('mineflayer');
|
||||
|
||||
let cfg = {}
|
||||
|
||||
|
||||
const load = (config) => {
|
||||
cfg = config
|
||||
bot = cfg.bot
|
||||
|
||||
bot.loadPlugin(armorManager);
|
||||
}
|
||||
|
||||
const unload = () => { console.warn("armour: may not properly unload") }
|
||||
|
||||
module.exports = { load, unload }
|
||||
Reference in New Issue
Block a user