Add modpowers to currency commands
This commit is contained in:
parent
5f52d3ab1a
commit
0a2391f436
@ -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…
x
Reference in New Issue
Block a user