Guide

Using assicApi by creating plugin

Creating a plugin with assicApi.

You need some basic Javascript knowledge to do it.

Create a file with js extension and move it to plugins folder in assicAuth.

Example JS Plugin By KaffinPX
module.exports = {
    inject
}

module.exports.name = 'Test Plugin' // Name of your plugin

function inject(assic) { // Injection class
    assic.on('loadAddon', function(data) {
        if(!data.name === 'Test Plugin') return
        assic.log('Hello, im just a test plugin :D')
    }) 
}

Last updated