pilly-db

A simple database in the style of quick.db, simple to use.

Usage no npm install needed!

<script type="module">
  import pillyDb from 'https://cdn.skypack.dev/pilly-db';
</script>

README

How do I use pilly-db ?

First of all you have to install the module :

npm i pilly-db

To write on the base (example money system) :

pilly.set(`money_${message.author.id}`, 1)//put the money to user 1
pilly.add(`money_${message.author.id}`, 1)//add money in db (for ex 1)
pilly.subtract(`money_${message.author.id}`, 1)//remove money in db (ex 1)

A short sample code :

const pilly = require ("pilly-db")

message.channel.send(`${message.author.id} comes from 1`)

pilly.add(`money_${message.author.id}`, 1)

By Zerio. Version, 1.0.2 upcoming improvements.

Need help ? Click here