pilly-db
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i pilly-db

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

31.9 kB

Total Files

19

Last publish

Collaborators

  • dev_zerio