Compare commits
2 Commits
288b7045b6
...
902732c6dd
Author | SHA1 | Date |
---|---|---|
jay | 902732c6dd | 3 years ago |
jay | 65d13a3379 | 3 years ago |
2 changed files with 32 additions and 32 deletions
@ -1,22 +1,22 @@ |
|||||||
let cfg |
let cfg |
||||||
let bot |
let bot |
||||||
let mcData |
let mcData |
||||||
|
|
||||||
function info() { |
function info() { |
||||||
const block = bot.blockAtCursor() |
const block = bot.blockAtCursor() |
||||||
console.log(block) |
console.log(block) |
||||||
cfg.quiet || bot.chat([block.id, block.name]) |
cfg.quiet || bot.chat([block.id, block.name]) |
||||||
} |
} |
||||||
|
|
||||||
const load = (config) => { |
const load = (config) => { |
||||||
cfg = config |
cfg = config |
||||||
bot = cfg.bot |
bot = cfg.bot |
||||||
cfg.info = { |
cfg.info = { |
||||||
quiet: cfg.quiet, |
quiet: cfg.quiet, |
||||||
} |
} |
||||||
mcData = bot.mcData || (bot.mcData = require('minecraft-data')(bot.version)) |
mcData = bot.mcData || (bot.mcData = require('minecraft-data')(bot.version)) |
||||||
} |
} |
||||||
|
|
||||||
const unload = () => {} |
const unload = () => {} |
||||||
|
|
||||||
module.exports = { load, unload, info } |
module.exports = { load, unload, info } |
Loading…
Reference in new issue