fixing stylistic stuff on ~alias. should close reality/depressionbot#295

This commit is contained in:
John Maguire 2013-03-21 02:07:49 -04:00
parent ffeb42dde3
commit d9a03d03b6

View File

@ -12,11 +12,7 @@ var commands = function(dbot) {
if(aliasCount != 0) { if(aliasCount != 0) {
var aliases = _.first(aliases, 10); var aliases = _.first(aliases, 10);
var including = 'including: '; var including = 'including: ' + aliases.join(', ') + '.';
for(var i=0;i<aliases.length;i++) {
including += aliases[i] + ', ';
}
including = including.slice(0, -2) + '.';
event.reply(dbot.t('primary', { event.reply(dbot.t('primary', {
'user': alias, 'user': alias,
@ -26,7 +22,7 @@ var commands = function(dbot) {
event.reply(dbot.t('primary', { event.reply(dbot.t('primary', {
'user': alias, 'user': alias,
'count': aliasCount 'count': aliasCount
})); }).slice(0, -2) + ".");
} }
} else if(_.has(knownUsers.aliases, alias)) { } else if(_.has(knownUsers.aliases, alias)) {
event.reply(dbot.t('alias', { event.reply(dbot.t('alias', {