2020-11-06 04:49:04 +00:00
|
|
|
const bluebird = require("bluebird");
|
2020-11-06 07:33:36 +00:00
|
|
|
const sqlite = require("better-sqlite3");
|
2020-11-06 04:49:04 +00:00
|
|
|
|
|
|
|
function main() { // Not a part of bot.js
|
2020-11-06 07:33:36 +00:00
|
|
|
let db = new sqlite("./db/users.db",{});
|
2020-11-06 04:49:04 +00:00
|
|
|
|
2020-11-06 07:33:36 +00:00
|
|
|
let statement = db.prepare("CREATE TABLE user_location(hostmask text, location text, coordinates text)");
|
|
|
|
statement.run();
|
2020-11-06 04:49:04 +00:00
|
|
|
|
|
|
|
db.close();
|
|
|
|
}
|
|
|
|
|
|
|
|
main();
|