Browse Source

Add modpowers to currency commands

master
Brandon Cornejo 10 years ago
parent
commit
0a2391f436
  1. 5
      lib/currency.js

5
lib/currency.js

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