Add SQLite handler (refdb) and hook into master/workers/job -> commands

This commit is contained in:
2026-08-31 00:18:31 +02:00
parent 7e4e738c19
commit 7b5514bf67
13 changed files with 376 additions and 10 deletions
+3 -1
View File
@@ -13,7 +13,9 @@ static int64_t hammy_snowflake_to_ms(u64snowflake id) {
}
// Instant command: runs on the gateway thread, sends a fresh response.
void hammy_cmd_ping(const hammy_job_t* job, struct discord* client) {
void hammy_cmd_ping(const hammy_job_t* job, struct discord* client, const hammy_refdb_t* refdb) {
(void)refdb;
// Gateway heartbeat round trip, as measured by Concord.
int gatewayMs = discord_get_ping(client);