Add /abbr command - converts abbreviations to meanings and contexts from sqlite

This commit is contained in:
2026-09-01 18:20:27 +02:00
parent ee045cd1dd
commit d7b9582cc0
5 changed files with 100 additions and 13 deletions
+5
View File
@@ -60,6 +60,11 @@ void hammy_cmd_phonetic(const hammy_job_t* job, struct discord* client, hammy_re
return;
}
if (strlen(text) >= 128) {
hammy_job_respond(job, client, "Text Too Long!", "Text provided is too long! Max. 128 characters.", true);
return;
}
bool showPronunciation = strlen(text) < 12;
char phonetic[HAMMY_PHONETIC_CODE_MAX + sizeof(HAMMY_PHONETIC_TRUNCATED)];