minor code refactor
This commit is contained in:
2 files changed
+3
-6
No files matched your search
@@ -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});
|
||||
|
||||
+1
-1
@@ -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/",
|
||||
|
||||
Reference in new issue
Block a user