import SQLDatabase from 'better-sqlite3' /** * @typedef {object} User * @param {string} name * @param {string} passbcrypt * @param {number} uidnumber * @param {number} id * @param {number} disabled */ /** * @type {SQLDatabase.Database} */ export let glauth = undefined export function dbInit() { glauth = new SQLDatabase(process.env.GLAUTH_DB ?? 'auth.db', {}) console.log(`Loaded in GLAuth - users.db`) }