refactor(informer): 🚚 proper name to block info function

Be more specific: `block` instead of `info`.
In anticipation of future functions in this module.
cover
jay 3 years ago
parent 96214ffe37
commit 6b71de0356
  1. 4
      lib/plugins/informer.js

@ -2,7 +2,7 @@ let cfg
let bot
let mcData
function info() {
function block() {
const block = bot.blockAtCursor()
console.log(block)
cfg.quiet || bot.chat([block.type, block.name].join(": "))
@ -19,4 +19,4 @@ const load = (config) => {
const unload = () => {}
module.exports = { load, unload, info }
module.exports = { load, unload, block }
Loading…
Cancel
Save