Add comments

This commit is contained in:
Mylloon 2022-11-06 18:29:58 +01:00
parent d42fd9072b
commit 425eb93168
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

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 ( \