@quick.eco/sqlite

    1.0.4 • Public • Published

    Quick.eco Sqlite Manager

    SQLite manager for Quick.eco

    QuickEco

    Example

    const { EconomyManager } = require('quick.eco');
    const { Client } = require('discord.js');
    const client = new Client();
    const eco = new EconomyManager({
        adapter: 'sqlite',
        adapterOptions: {
            filename: 'data' // => data.sqlite
        }    
    });
     
    client.on('ready', () => console.log('connected'));
     
    client.on('message', (message) => {
        if(message.author.bot) return;
        if(!message.guild) return;
     
        if(message.content === '!bal') {
            let money = eco.fetchMoney(message.author.id);
            return message.channel.send(`${message.author} has ${money} coins.`);
        }
    })

    | Windows Build Tools is required

    Windows build tools Installation

    • Open a command prompt with administrator permissions
    • Run
    npm install --global windows-build-tools --vs2015

    Adapter Options

    • table - Sqlite table name
    • filename - Sqlite File name
    • sqliteOptions - Sqlite3 Options

    Links

    © Snowflake Studio ❄️ - 2020

    Install

    npm i @quick.eco/sqlite

    DownloadsWeekly Downloads

    17

    Version

    1.0.4

    License

    Apache-2.0 License

    Unpacked Size

    7.61 kB

    Total Files

    4

    Last publish

    Collaborators

    • zsaif
    • snowflake7