|
@ -136,7 +136,7 @@ Currency.prototype.start = function () { |
|
|
Currency.prototype.commands = function (data) { |
|
|
Currency.prototype.commands = function (data) { |
|
|
var __self = this, |
|
|
var __self = this, |
|
|
broadcaster_bot_initiated = __self.irc.caller(data[0]).toLowerCase() === __self.irc.config.broadcaster.toLowerCase() || __self.irc.caller(data[0]).toLowerCase() === __self.irc.config.name.toLowerCase(), |
|
|
broadcaster_bot_initiated = __self.irc.caller(data[0]).toLowerCase() === __self.irc.config.broadcaster.toLowerCase() || __self.irc.caller(data[0]).toLowerCase() === __self.irc.config.name.toLowerCase(), |
|
|
moderator_initiated = __self.irc.mods.indexOf(__self.irc.caller(data[0])) > 0; |
|
|
|
|
|
|
|
|
moderator_initiated = __self.irc.mods.indexOf(__self.irc.caller(data[0])) >= 0; |
|
|
|
|
|
|
|
|
// handle !<currency> commands
|
|
|
// handle !<currency> commands
|
|
|
if (data[3].slice(1) === '!' + __self.config.currency.toLowerCase()) { |
|
|
if (data[3].slice(1) === '!' + __self.config.currency.toLowerCase()) { |
|
|