From d0e0441fbf48e1a81e8134432ced6b516177f555 Mon Sep 17 00:00:00 2001 From: Uno Polak Date: Mon, 13 Jan 2014 14:12:31 -0600 Subject: [PATCH] Added some basic help commands to raffle/bet/auction. --- lib/currency.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/currency.js b/lib/currency.js index ac534fe..f4b71c4 100644 --- a/lib/currency.js +++ b/lib/currency.js @@ -162,6 +162,9 @@ Currency.prototype.commands = function (data) { case 'cancel': __self.auction('cancel'); break; + case 'help': + __self.irc.emit('message', {message:__self.pre_text + '!' + __self.config.currency.toLowerCase() + ' auction open/close/cancel/draw'}); + break; } } @@ -200,6 +203,9 @@ Currency.prototype.commands = function (data) { case 'restore': __self.raffle('restore'); break; + case 'help': + __self.irc.emit('message', {message:__self.pre_text + '!' + __self.config.currency.toLowerCase() + ' raffle open /close/cancel/draw/restore'}); + break; } } @@ -225,6 +231,9 @@ Currency.prototype.commands = function (data) { case 'cancel': __self.bets('cancel'); break; + case 'help': + __self.irc.emit('message', {message:__self.pre_text + '!' + __self.config.currency.toLowerCase() + ' bet open