mirror of
https://github.com/janishutz/libreevent.git
synced 2025-11-25 13:24:24 +00:00
add first json db functions
This commit is contained in:
@@ -14,13 +14,11 @@
|
||||
class PluginManager {
|
||||
constructor () {}
|
||||
|
||||
install ( plugin ) {
|
||||
loadSettings ( plugin ) {
|
||||
|
||||
}
|
||||
|
||||
update () {}
|
||||
|
||||
uninstall ( plugin ) {
|
||||
saveSettings ( plugin, settings ) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,11 +11,11 @@ const fs = require( 'fs' );
|
||||
const path = require( 'path' );
|
||||
|
||||
module.exports = ( app, settings ) => {
|
||||
console.log( '\n\n[ Plugin Loader ] Loading plugins\n' );
|
||||
let otherPlugins = fs.readdirSync( path.join( __dirname + '/others' ) );
|
||||
console.log( '\n\n' );
|
||||
for ( let plugin in otherPlugins ) {
|
||||
console.log( '[ Plugin Loader ] Loaded plugin "' + otherPlugins[ plugin ] + '"' );
|
||||
require( './others/' + otherPlugins[ plugin ] + '/' + otherPlugins[ plugin ] + 'Routes.js' )( app, settings );
|
||||
console.log( '[ Plugin Loader ] Loaded plugin "' + otherPlugins[ plugin ] + '"' );
|
||||
}
|
||||
|
||||
require( './payments/' + settings.payments + '/' + settings.payments + 'Routes.js' )( app, settings );
|
||||
|
||||
Reference in New Issue
Block a user