make profile shorter

This commit is contained in:
Santiago Forero 2021-09-16 15:43:05 -05:00
parent 0916912adf
commit a63f2b7cff
1 changed files with 2 additions and 4 deletions

View File

@ -5,12 +5,10 @@ module.exports = {
description: 'See your profile or someone else\'s profile.',
execute(event, args, bot) {
user = args[0] || event.nick;
bot.say(event.target, user + "'s profile")
if(db.get(user + '_score') == null) {
bot.say(event.target, 'Current height: 0 cm')
bot.say(event.target, `${user}'s profile: Current height: 0 cm`)
} else {
bot.say(event.target, 'Current height: ' + db.get(user + '_score').toFixed(3) + ' cm')
bot.say(event.target, `${user}'s profile: Current height: ${db.get(user + '_score').toFixed(3)} cm`)
}
},
};