feat: Reminders #44

Merged
Anri merged 54 commits from feat/reminders into main 2023-01-17 12:15:15 +01:00
Showing only changes of commit 425eb93168 - Show all commits

View file

@ -39,6 +39,10 @@ export default async () => {
return client;
};
/**
* Quit gracefully the client
* @param client Client
*/
export const quit = (client: Client) => {
// Close DB
client.db.close();
@ -47,7 +51,10 @@ export const quit = (client: Client) => {
client.destroy();
};
/**
* Initalize the database
* @param db Database
*/
const initDatabase = (db: Database) => {
// Table for reminders
db.run('CREATE TABLE IF NOT EXISTS reminder ( \