From dcc9e899e510ad2781214c351261593645ae9b19 Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 4 Aug 2023 15:31:09 +0200 Subject: [PATCH 1/2] updated debug run cmd --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5208a9a..40e4223 100644 --- a/Makefile +++ b/Makefile @@ -11,4 +11,4 @@ probotic: $(SRC) $(HDR) $(SRC) $(HDR): run: - ./probotic -server irc.rizon.net -port 6667 -username probotic -channel '#stop_shitting_up_chad' + ./probotic -server irc.rizon.net -port 6664 -username probotic -channel '#/g/chad' -db bootstrap/probotic_data.sqlite From 4bc72fcef92aad1cc79d62a6624c78231f9b2ef1 Mon Sep 17 00:00:00 2001 From: anon Date: Fri, 4 Aug 2023 15:31:16 +0200 Subject: [PATCH 2/2] error on missing db --- src/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.c b/src/api.c index 245166e..8c2d508 100644 --- a/src/api.c +++ b/src/api.c @@ -67,7 +67,7 @@ VARDECL sqlite3 * connection = NULL; DECL int api_init(void) { - DBERR(sqlite3_open(db, &connection)); + DBERR(sqlite3_open_v2(db, &connection, SQLITE_OPEN_READONLY, NULL)); // dont you fucking dare to remove this spacing DBERR(stmt_prepare(remind_stmt)); DBERR(stmt_prepare(set_repo_stmt));