Permalink
Browse files

[beer] Add like plugin (issue #64)

  • Loading branch information...
1 parent 94b70c9 commit f7f7ac196f2af8e68b39e5444dfe59de2b056ff0 @mmalecki mmalecki committed Oct 14, 2011
Showing with 21 additions and 0 deletions.
  1. +21 −0 lib/plugins/beer.js
View
@@ -0,0 +1,21 @@
+/*
+ *
+ * plugins/beer.js - IRC commands for beer listener
+ *
+ * (c) 2011 Nodejitsu Inc.
+ *
+ */
+
+var beer = exports;
+
+beer.like = function (data, command) {
+ if (!command[1]) {
+ return;
+ }
+
+ this.emit('karmaPreferenceSet', {
+ nick: data.nick,
+ preference: command[1]
+ });
+};
+

0 comments on commit f7f7ac1

Please sign in to comment.