exports.names = ['settings', 'set'];
exports.hidden = true;
exports.enabled = true;
exports.matchStart = true;
exports.handler = function (data) {
    if (bot.hasPermission(bot.getUser(data.user.id), 'queue-order')) {

        var input = data.message.split(' ');
        // Settings to support direct access to
        supported = ['activeDJTimeoutMins',
            'maxSongLengthSecs',
            'prohibitMehInLine',
            'quietMode',
            'upvoteSongs',
            'verboseLogging',
            'welcomeUsers'
        ];

        var settings = [];
        var chatMessage = "";

        if (input.length < 3) {
            for (var key in config) {
                if (config.hasOwnProperty(key) && _.contains(supported, key)) {
                    chatMessage += key + ': ' + config[key] + ', ';
                }
            }
            bot.sendChat('Current settings: ' + chatMessage);
        }
        else {
            var key = input[1];
            var value = _.rest(input, 2).join(' ');

            if (_.contains(supported, key)) {
                config[key] = value;
                bot.sendChat('/me set: ' + key + ' = ' + value);
            }
            else {
                bot.sendChat('/me unknown setting: ' + key);
            }
        }
    }
};


exports.names = ['settings', 'set'];
exports.hidden = true;
exports.enabled = true;
exports.matchStart = true;
exports.handler = function (data) {
    if (bot.hasPermission(bot.getUser(data.user.id), 'queue-order')) {

        var input = data.message.split(' ');
        // Settings to support direct access to
        supported = ['activeDJTimeoutMins',
            'minActiveDJQueueLength',
            'maxSongLengthSecs',
            'chatRandomnessPercentage',
            'quietMode',
            'upvoteSongs',
            'verboseLogging',
            'welcomeUsers'
        ];

        var settings = [];
        var chatMessage = "";

        if (input.length < 3) {
            for (var key in config) {
                if (config.hasOwnProperty(key) && _.contains(supported, key)) {
                    chatMessage += key + ': ' + config[key] + ', ';
                }
            }
            bot.sendChat('Current settings: ' + chatMessage);
        }
        else {
            var key = input[1];
            var value = _.rest(input, 2).join(' ');

            if (_.contains(supported, key)) {
                config[key] = value;
                bot.sendChat('/me set: ' + key + ' = ' + value);
            }
            else {
                bot.sendChat('/me unknown setting: ' + key);
            }
        }
    }
};


Add currency handling and custom points!
Add currency handling and custom points!
