src/bot/reply/customFunction.js
Function customFunction
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const customFunction = async function customFunction(functionName, functionArgs, replyObj, options) {
const plugins = options.system.plugins;
// Important to create a new scope object otherwise we could leak data
const scope = _.merge({}, options.system.scope);
scope.extraScope = options.system.extraScope;