Skip to content

Changes here don't have to be done the way you are doing them... #5

@bdistin

Description

@bdistin

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions