Functions

Function pieces are exactly what they are... they're functions. This can range from a single function, to a group of functions. Their structure can be almost anything, the only requirement is that you have to assign it as a module for Komada to understand what it is.
Examples

An example of a single function saved as "add.js".

module.exports = (var, var2) => var + var2; // accessed via 'client.funcs.add'

An example of multiple functions in one file, named math.js, and accessed via 'client.funcs.group["exportName"]'

exports.add = (var, var2) => var + var2; // accessed via 'client.funcs.math.add'
exports.subtract = (var, var2) => var - var2; // accessed via 'client.funcs.math.subtract'
exports.mutliply = (var, var2) => var * var2; // accessed via 'client.funcs.math.multiply'
exports.divide = (var, var2) => var / var2; // accessed via 'client.funcs.math.divide'