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

Be more specific: `block` instead of `info`.
In anticipation of future functions in this module.
This commit is contained in:
jay 2021-01-05 08:52:38 +05:00
parent 96214ffe37
commit 6b71de0356

View File

@ -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 }