make profile shorter
This commit is contained in:
parent
0916912adf
commit
a63f2b7cff
|
@ -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`)
|
||||
}
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue