mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-07-09 14:35:08 +00:00
Add database
This commit is contained in:
9
client/database.ts
Normal file
9
client/database.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Database } from 'sqlite3';
|
||||
|
||||
export const database = new Database('randomMemerDatabase.sqlite');
|
||||
|
||||
export function startDatabase() {
|
||||
database.serialize(() => {
|
||||
database.run('CREATE TABLE IF NOT EXISTS sounds (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, guild TEXT, user TEXT, date TEXT)');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user