From 6b71de03562dec7281cd94dc78c88f9b0b87bc69 Mon Sep 17 00:00:00 2001 From: jay Date: Tue, 5 Jan 2021 08:52:38 +0500 Subject: [PATCH] refactor(informer): :truck: proper name to block info function Be more specific: `block` instead of `info`. In anticipation of future functions in this module. --- lib/plugins/informer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/informer.js b/lib/plugins/informer.js index 082a333..69cd638 100644 --- a/lib/plugins/informer.js +++ b/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 } \ No newline at end of file +module.exports = { load, unload, block } \ No newline at end of file