Browse Source

Add modpowers to currency commands

master
Brandon Cornejo 11 years ago
parent
commit
0a2391f436
  1. 3
      lib/currency.js

3
lib/currency.js

@ -73,6 +73,7 @@ function Currency(irc, db, options) {
__self.config.currency = options.currency || 'coins'; __self.config.currency = options.currency || 'coins';
__self.config.subscribers_json = options.subscribers || ''; __self.config.subscribers_json = options.subscribers || '';
__self.config.website = options.website || ''; __self.config.website = options.website || '';
__self.config.modpowers = options.modpowers || false;
// general settings // general settings
__self.pre_text = '> ' + __self.config.currency + ': '; __self.pre_text = '> ' + __self.config.currency + ': ';
@ -141,7 +142,7 @@ Currency.prototype.commands = function (data) {
} }
// broadcaster only commands // broadcaster only commands
if (broadcaster_bot_initiated) {
if (broadcaster_bot_initiated || (__self.config.modpowers && moderator_initiated)) {
//open / close auction system //open / close auction system
if (data[4] === 'auction') { if (data[4] === 'auction') {
switch (data[5]) { switch (data[5]) {

Loading…
Cancel
Save