New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

better-database

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-database

A Awesome Database Package For Discord.js And More!!!

latest
npmnpm
Version
1.4.1
Version published
Maintainers
1
Created
Source

Installation

npm i discord-database

Latest News!!

↪ Fixed Error When Creating New DB With Custom Name
↪ You Can Now Set The Database Name In Index.js Bye Inputing The Code Below

const DB_NAME = 'MyDataBase'; //You Change This
module.exports = {
    DB_NAME: DB_NAME
};

Getting Values

const DB = require('better-database')
const result = await DB.GetValue(message.author.id);
console.log(result.value);

Setting Values

const DB = require('better-database');
DB.SetValue(message.author.id, 1);

Adding Values

const DB = require('better-database');
DB.AddValue(message.author.id, 1);

Subtracting Values

const DB = require('better-database');
DB.SubValue(message.author.id, 1);

Example Usage's

//Pay Command
const DB = require('better-database');
DB.AddValue(person, amount);
DB.SubValue(message.author.id, amount);
//You Need To Define <person> and <amount>

Discord

Keywords

discord

FAQs

Package last updated on 03 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts