Disdata
tokendbname(optional, defaultnull)
const Disdata = require('disdata');
async function main(){
const db = new Disdata("NzE3NzI2Njgz.x.x.x.ClUADtk")
await db.login()
await db.useDB("test")
// console.log(await db.inviteDB())
await db.set("hello","World")
console.log("Hello =>"+await db.get("hello"))
}BotTokenstring? Bot token (optional, defaultthis.token)
Returns Promise
namestring? name of db (optional, defaultthis.dbname)
Returns Promise
namestring? Name of the DB (optional, defaultthis.dbname)createIfNotExistboolean create database if note exist (optional, defaulttrue)
Returns Promise
keystringdatastring (use JSON.stringify for object)editIfAlredyExistboolean edit key if already used (optional, defaulttrue)
Returns Promise
Returns Promise
keystring
Returns Promise<String> Data of this key
keystring
Returns Promise<Boolean> Boolean if key exist
keystring
Returns Promise
