Skip to content

Latest commit

 

History

History
43 lines (40 loc) · 685 Bytes

demoPlugin.md

File metadata and controls

43 lines (40 loc) · 685 Bytes

Base plugin and metadata

/**
 * @name demoPlugin
 * @version 1.1.1
 * @author dogman
 * @description demo plugin for Discord Re-envisioned
 */

exports = class demoPlugin {
  onStart() {
    console.log('Started');
  };
  onStop() {
    console.log('Stopped');
  };
}

This is how it looks fully

we add exports so you can return the plugin

let exports = class {}
{(() => {
/**
 * @name demoPlugin
 * @version 1.1.1
 * @author dogman
 * @description demo plugin for Discord Re-envisioned
 */

exports = class demoPlugin {
  onStart() {
    console.log('Started');
  };
  onStop() {
    console.log('Stopped');
  };
}
})()}
new exports()

All may change