mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
output changes
This commit is contained in:
parent
5904708d6b
commit
8ce80a1d94
@ -44,12 +44,12 @@ var poll = function(dbot) {
|
||||
polls[name].votes[vote]++;
|
||||
polls[name].votees[event.user] = vote;
|
||||
event.reply(dbot.t('changed_vote', {'vote': vote, 'poll': name,
|
||||
'count': polls[name].votes[vote]}));
|
||||
'count': polls[name].votes[vote], 'user': event.user}));
|
||||
} else {
|
||||
polls[name].votes[vote]++;
|
||||
polls[name].votees[event.user] = vote;
|
||||
event.reply(dbot.t('voted', {'vote': vote, 'poll': name,
|
||||
'count': polls[name].votes[vote]}));
|
||||
'count': polls[name].votes[vote], 'user': event.user}));
|
||||
}
|
||||
} else {
|
||||
event.reply(dbot.t('invalid_vote', {'vote': vote}));
|
||||
|
@ -206,10 +206,10 @@
|
||||
"english": "Poll '{name}' created ({description}). Cast thy votations!"
|
||||
},
|
||||
"changed_vote": {
|
||||
"english": "Changed vote in {poll} to '{vote}' ({count})"
|
||||
"english": "{user} changed their vote in {poll} to '{vote}' ({count})"
|
||||
},
|
||||
"voted": {
|
||||
"english": "Voted for '{vote}' in {poll} ({count})"
|
||||
"english": "{user} voted for '{vote}' in {poll} ({count})"
|
||||
},
|
||||
"invalid_vote": {
|
||||
"english": "Invalid vote: {vote}"
|
||||
|
Loading…
Reference in New Issue
Block a user