Skip to content

Variable Handler

I have no comment on this.

Setup: Variable Handler

...
// Initialize a Handler for structured command handling
const handler = new Handler(
{
client: client,
readyLog: true
},
{
// Additional Handler configuration options go here
},
__dirname
);
handler.loadVariables('/file.js') // needs to be a file

Create a file in your root directory where your index is.
This is same as like status handler…

Structure

module.exports = {
table: 'main', // this is table (optional)
variables: {
var: 0,
var2: "",
var3: true,
var4: {},
var5: 10
}
}