Permalink
Browse files

[beer] Give feedback on !like command

  • Loading branch information...
1 parent f81df79 commit 2126d4a6aa37aa8e3a84f81be39e02c105963b16 @mmalecki mmalecki committed Oct 15, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/plugins/beer.js
View
9 lib/plugins/beer.js
@@ -13,9 +13,16 @@ beer.like = function (data, command) {
return;
}
+ var drink = command.splice(1).join(' ');
+
this.emit('karmaPreferenceSet', {
nick: data.nick,
- preference: command.splice(1).join(' ')
+ preference: drink
+ });
+
+ this.emit('sendMsg', {
+ dest: data.to,
+ msg: data.nick + ' likes ' + drink + '.'
});
};

0 comments on commit 2126d4a

Please sign in to comment.