galactic-bot/structure/interfaces/Module.js

23 lines
431 B
JavaScript
Raw Normal View History

2020-04-08 18:08:46 +02:00
const Component = require('./Component.js');
const { Collection } = require('../../util');
2020-04-08 18:08:46 +02:00
class Module extends Component {
constructor(manager, opts = {}) {
2020-04-08 18:08:46 +02:00
if(!opts) return null;
super(manager, {
2020-04-08 18:08:46 +02:00
id: opts.name,
type: 'module'
});
this.manager = manager;
2020-04-08 18:08:46 +02:00
this.name = opts.name;
this.components = new Collection();
}
}
module.exports = Module;