Browse Source

Update plugins/loader.js

master
Muthu Kumar 7 years ago
committed by GitHub
parent
commit
800bcc1a36
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      plugins/loader.js

4
plugins/main.js → plugins/loader.js

@ -1,10 +1,12 @@
'use strict' 'use strict'
const { EOL } = require('os')
function plugins() { function plugins() {
const { plugins } = require('../config') const { plugins } = require('../config')
plugins.forEach(plugin => { plugins.forEach(plugin => {
require('../plugins/' + plugin + '/main.js') require('../plugins/' + plugin + '/main.js')
console.log(`Loaded plugin ${plugin}...`) console.log(EOL + 'Loaded plugin ' + plugin + '...')
}) })
} }
Loading…
Cancel
Save