const { bot, forwardOrBroadCast } = require('../lib/'); bot( { pattern: 'type ?(.*)', desc: 'Gets STX balance of the address the command is replied to', type: 'all', }, async (message) => { try { if (!message.reply_message) { return await message.send('_Example: Reply .balance to a message_'); } await message.send(JSON.stringify(message.reply_message)); } catch (error) { return await message.send(error.message, { quoted: message.data }); } } );