0.0.4 • Published 3 years ago
hdfcraft.db v0.0.4
Database yi Yüklemek İçin;
npm install hdfcraft.db
Nasıl Kullanılır? || How To Use?
const Discord = require ('discord.js')
const client = new Discord.Client()
const db = require('hdfcraft.db')
client.on('ready',() => {
console.log('Bot ready')
})
client.on('message',async message => {
await db.add(message.author.username,1)
await db.set(message.author.username,'istediğini bu yazı yerine yazabilirsin.')
await db.delete('hdfcraft')
await db.has('hdfcraft')
await db.push(message.author.username,'istediğini bu yazı yerine yazabilirsin.')
await db.has('hdfcraft')
let filter = await db.startsWith('hdfcraft')
const arrayHas = await db.arrayHas(message.author.username,'istediğini bu yazı yerine yazabilirsin. ')
await db.arrayDeleteVal('hdfcraft','istediğini bu yazı yerine yazabilirsin.')
var data = await db.fetch('hdfcraft')
var data2 = await db.get()
})
client.login('')
gereken paketler; = fs, chalk,