1. Why use discloud :question:
If you use discord, you can view it directly without using space to store the data,
so it is easy to manage.
Increased storage / retrieval speed.
:scroll: table of contents :scroll:
:information_source: 2. How to use
Sample Code
(async function(){
const cloud = require('discloud');
const DB = new cloud;
const DB = new cloud({
encode:{
use:true,
key:{
keyA:"(32 alphanumeric characters)",
keyB:"(16 alphanumeric characters)"
}
},
token:"Your token is here",
server:"Your Server ID (This server id's server will be a database)"
});
DB.encodOn();
DB.setKey("(32 alphanumeric characters)","(16 alphanumeric characters)");
const client = await DB.create("Your token is here",{
server:"Your Server ID (This server id's server will be a database)",
name:"DataTable's name"
},
{}
);
client.on('error',err=>{
console.log(err.message);
})
client.on('ready',async ()=>{
console.log('ready...');
await DB.set("text")
.then(async()=>{
console.log(await DB.get())
});
client.on('set',data=>{
data = data[0];
console.log(data.processTime);
console.log(data.setData);
console.log(data.info);
});
client.on('get',data=>{
var info = data[0];
var key = data[1];
});
client.once('writeEnd',async ()=>{
console.log(await DB.get());
});
DB.info();
});
})();
3. INFOMATION
This software is released under the MIT License, see LICENSE.txt.
UPDATA :heavy_plus_sign:
2020:10/10 Significant improvement
2020:10/18 Revised again
2020:11/14 Significant weight reduction
2020:11/17 Fixing a terrible mistake
:white_check_mark: Operating environment
language
Node.js
Dependencies
discord.js
:information_source: I recommend having a server dedicated to this database library.
About defects etc :email:
Contact
" Official.neoxbot@gmail.com "