Write your own Addons
Last updated
Was this helpful?
Was this helpful?
/**
{
"name":"My Awesome Addon",
"description":"The first User Addons",
"author":"Proxyman",
"tags":"helloworld"
}
**/
const { md5 } = require("@addons/MD5.js");
const sayHello = () => {
var content = "Hello World. My first custom Addon.";
var hash = md5(content);
return content + ". MD5 = " + hash;
};
// Make sure you export the function at the end of method
exports.sayHello = sayHello;
const { md5 } = require("@addons/MD5.js");// Import your addon
// Make sure you imports the function that you exports in the addons
const { sayHello } = require("@users/MyAwesomeAddon.js");
// Usage
sayHello();