Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[beer] Add like plugin (issue #64)

  • Loading branch information...
commit f7f7ac196f2af8e68b39e5444dfe59de2b056ff0 1 parent 94b70c9
@mmalecki mmalecki authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 lib/plugins/beer.js
View
21 lib/plugins/beer.js
@@ -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]
+ });
+};
+
Please sign in to comment.
Something went wrong with that request. Please try again.