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 (weight!=null&&weight!=undefined&&weight!='') {
|
||||||
if (results.civilians[i].civilian.weightClassification=='imperial') {
|
let units = results.civilians[i].civilian.weightClassification=='imperial' ? 'lbs.' : 'kgs.';
|
||||||
nameResult.addFields({ name: '**Weight**', value: `\`${weight}lbs.\``, inline: true });
|
nameResult.addFields({ name: '**Weight**', value: `\`${weight}${units}\``, inline: true });
|
||||||
} else {
|
|
||||||
nameResult.addFields({ name: '**Weight**', value: `\`${weight}kgs.\``, inline: true });
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (eyeColor!=null&&eyeColor!=undefined&&eyeColor!='') nameResult.addFields({name:'**Eye Color**',value:`\`${eyeColor}\``,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});
|
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 = {
|
module.exports = {
|
||||||
Dev: "PRODUCTION",
|
Dev: "PRODUCTION",
|
||||||
Version: "3.1.5",
|
Version: "3.1.6",
|
||||||
Admins: ["362791661274660874"], // Admins of the bot
|
Admins: ["362791661274660874"], // Admins of the bot
|
||||||
DefaultPrefix: "?",
|
DefaultPrefix: "?",
|
||||||
socket: "https://www.linespolice-cad.com/",
|
socket: "https://www.linespolice-cad.com/",
|
||||||
|
|||||||
Reference in new issue
Block a user