|
@ -1327,6 +1327,7 @@ Currency.prototype.bets = function(status, data) { |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
case 'pool': |
|
|
case 'pool': |
|
|
|
|
|
function do_work() { |
|
|
if (__self.bets_board.length > 0) { |
|
|
if (__self.bets_board.length > 0) { |
|
|
__self.irc.emit('message', {message:__self.pre_text + 'Current betting pool is:'}); |
|
|
__self.irc.emit('message', {message:__self.pre_text + 'Current betting pool is:'}); |
|
|
for (var i = 0; i < __self.bets_board.length; i++) { |
|
|
for (var i = 0; i < __self.bets_board.length; i++) { |
|
@ -1335,6 +1336,12 @@ Currency.prototype.bets = function(status, data) { |
|
|
} else { |
|
|
} else { |
|
|
__self.irc.emit('message', {message:__self.pre_text + 'No current bet.'}); |
|
|
__self.irc.emit('message', {message:__self.pre_text + 'No current bet.'}); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (__self.bets_response_reset) { |
|
|
|
|
|
__self.bets_response = setTimeout(function () {do_work();}, __self.bets_response_timer); |
|
|
|
|
|
} else { |
|
|
|
|
|
setTimeout(function () {do_work();}, __self.bets_response_timer); |
|
|
|
|
|
} |
|
|
break; |
|
|
break; |
|
|
case 'winner': |
|
|
case 'winner': |
|
|
if (!__self.bets_status) { |
|
|
if (!__self.bets_status) { |
|
|