forked from dirigeants/klasa
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Describe your proposal
You can create a package that wraps Klasa and swaps out the klasa console to your api posting version. Then you would be in control of your own licensing, while still complying with klasa licensing, and tracking changes from klasa (because it would be a dependency).
More Details
index.js
const Klasa = require('klasa');
module.exports = {
...Klasa,
BotbindConsole: require('./lib/BotbindConsole'),
Client: require('./lib/Client')
};lib/Client.js
const { Client } = require('klasa');
const BotbindConsole = require('./BotbindConsole');
class BotbindClient extends Client {
constructor(...args) {
super(...args);
this.console = new BotbindConsole(this.options.console);
}
}
module.exports = BotbindClient;lib/BotbindConsole.js
class BotbindConsole extends KlasaConsole with the changes you want... you get the idea
Metadata
Metadata
Assignees
Labels
No labels