diff --git a/commands/nameSearch.js b/commands/nameSearch.js index 1392d1f..ccfa069 100644 --- a/commands/nameSearch.js +++ b/commands/nameSearch.js @@ -115,11 +115,8 @@ module.exports = { } } if (weight!=null&&weight!=undefined&&weight!='') { - if (results.civilians[i].civilian.weightClassification=='imperial') { - nameResult.addFields({ name: '**Weight**', value: `\`${weight}lbs.\``, inline: true }); - } else { - nameResult.addFields({ name: '**Weight**', value: `\`${weight}kgs.\``, inline: true }); - } + let units = results.civilians[i].civilian.weightClassification=='imperial' ? 'lbs.' : 'kgs.'; + nameResult.addFields({ name: '**Weight**', value: `\`${weight}${units}\``, inline: true }); } if (eyeColor!=null&&eyeColor!=undefined&&eyeColor!='') nameResult.addFields({name:'**Eye Color**',value:`\`${eyeColor}\``,inline:true}); if (hairColor!=null&&hairColor!=undefined&&hairColor!='') nameResult.addFields({name:'**Hair Color**',value:`\`${hairColor}\``,inline:true}); diff --git a/config/config.js b/config/config.js index 361ba8d..916bf40 100644 --- a/config/config.js +++ b/config/config.js @@ -2,7 +2,7 @@ require('dotenv').config() module.exports = { Dev: "PRODUCTION", - Version: "3.1.5", + Version: "3.1.6", Admins: ["362791661274660874"], // Admins of the bot DefaultPrefix: "?", socket: "https://www.linespolice-cad.com/",