forked from GitHub/dbot
oops
This commit is contained in:
parent
17840f5c9c
commit
04cf918f7a
@ -127,13 +127,13 @@ var karma = function(dbot) {
|
|||||||
var pre;
|
var pre;
|
||||||
if(karma.karma > 0) {
|
if(karma.karma > 0) {
|
||||||
pre = '[\u00039karma\u000f]';
|
pre = '[\u00039karma\u000f]';
|
||||||
karma.karma = '[\u00039'+karma.karma+'\u000f]';
|
karma.karma = '\u00039 '+karma.karma+'\u000f';
|
||||||
} else if(karma.karma < 0) {
|
} else if(karma.karma < 0) {
|
||||||
pre = '[\u00034karma\u000f]';
|
pre = '[\u00034karma\u000f]';
|
||||||
karma.karma = '[\u00034'+karma.karma+'\u000f]';
|
karma.karma = '\u00034 '+karma.karma+'\u000f';
|
||||||
} else {
|
} else {
|
||||||
pre = '[\u00036karma\u000f]';
|
pre = '[\u00036karma\u000f]';
|
||||||
karma.karma = '[\u00036'+karma.karma+'\u000f]';
|
karma.karma = '\u00036 '+karma.karma+'\u000f';
|
||||||
}
|
}
|
||||||
event.reply(pre + ' ' + dbot.t('newkarma', {
|
event.reply(pre + ' ' + dbot.t('newkarma', {
|
||||||
'item': match[1],
|
'item': match[1],
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
"en": "{item} has {karma} karma"
|
"en": "{item} has {karma} karma"
|
||||||
},
|
},
|
||||||
"newkarma": {
|
"newkarma": {
|
||||||
"en": "{item} now has {value} karma"
|
"en": "{item} now has{value} karma"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user