created blank database

This commit is contained in:
Robert Drake 2020-11-05 22:49:04 -06:00
parent 605799b54b
commit a3054c8131
3 changed files with 22 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
nbproject/
node_modules/
config/config.json
db/users.db

View File

@ -0,0 +1,21 @@
const bluebird = require("bluebird");
const sqlite = require("sqlite3");
function main() { // Not a part of bot.js
let db = new sqlite.Database("./db/users.db", (err) => {
if(err) {
console.log(err);
process.exit();
}
});
db.run("CREATE TABLE locations(usermask text, location text)", (err) => {
if(err) {
console.log(err);
}
});
db.close();
}
main();

0
db/users.stub.db Normal file
View File