Example of potential plugin implementation

This commit is contained in:
advplyr 2024-12-19 17:48:18 -06:00
parent 71b943f434
commit 62bd7e73f4
15 changed files with 347 additions and 7 deletions

View file

@ -0,0 +1,18 @@
const PluginAbstract = require('../../../../../server/PluginAbstract')
class ExamplePlugin extends PluginAbstract {
constructor() {
super()
this.name = 'Example'
}
init(context) {
context.Logger.info('[ExamplePlugin] Example plugin loaded successfully')
}
async onAction(context, actionName, target, data) {
context.Logger.info('[ExamplePlugin] Example plugin onAction', actionName, target, data)
}
}
module.exports = new ExamplePlugin()