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:
jay
2020-12-21 21:08:38 +05:00
commit 4f1e510386
12 changed files with 1386 additions and 0 deletions
+16
View File
@@ -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 }