UNPKG

discord-vardb

Version:

Imagine a module, that allows to you create vars in discord.js...

41 lines (31 loc) 1.48 kB
## News: **Errors fixed** # About "module owner": **Hello, im zet! zet = zett(jett from VALORANT). I'm developing some modules and i want to earn money, if you loved my modules, dont forget to share and put me into credits please ^^** # Download: ```bash npm i discordb ``` # Setup Code: ```javascript const { Required, UpdatedVariableFuncs } = require("discordb") //The custom vars bla bla bla is not deprecated, you can use them but use UpdatedVariableFuncs better. //If you know to use classes, you can put your code right here ``` # Credits: **Everything: zet.dev** # Functions: ```javascript this.create(name, value, id), //Creates value this.get(name, categoryID), //Gets variable's value this.add(number, name, id), //If variable's value is number, adds to name from id and returns it. Attention! not sets the value. this.have(name, id), //Returns true if the variable is exist, returns false if the variable doesnt exist. this.deleteAll(), //Deletes every var(deletes file) this.typeof(name, id), //Returns type of variable name this.reset(name, id) //For numbers, if the variable's value a number, makes him zero. this.math(mathnumber1, "condition", mathnumber2, name, id) //Returns the math process answer. Attention! Not sets the value. //Math doesnt work. // If you know to code, you can understand how to do like resetting and deleting var proccesses. ``` # Our own server: [Discord-server](https://discord.gg/devboys)