const { Listener } = require('discord-akairo')
const logr = require('logr')

function exec(msg, cmd) {
  logr.info('Command', `${msg.guild.name} :: ${msg.channel.name} :: ${msg.author.tag} > ${cmd.id}`)
}

module.exports = new Listener('commandFinished', exec, {
  emitter: 'commandHandler',
  eventName: 'commandFinished',
})

const { Listener } = require('discord-akairo')
const logr = require('logr')

function exec(msg, cmd) {
  let str = `${msg.author.tag} > ${cmd.id}`
  if (msg.guild) str = `${msg.guild.name} :: ${msg.channel.name} :: ${str}`
  logr.info(str)
}

module.exports = new Listener('commandFinished', exec, {
  emitter: 'commandHandler',
  eventName: 'commandFinished',
})

Update commandFinished