code: def _resolve_command(self, command, target):
          
          if command == "privmsg":
              if irc.client.is_channel(target):
                  command = "pubmsg"
          else:
              if irc.client.is_channel(target):
                  command = "pubnotice"
              else:
                  command = "privnotice"
          return command
docs: Get the correct event for the command
  
          Only for 'privmsg' and 'notice' commands.
  
          :param command: The command string
          :type command: :class:`str`
          :param target: either a user or a channel
          :type target: :class:`str`
          :returns: the correct event type
          :rtype: :class:`str`
          :raises: None