remove console.debug

This commit is contained in:
Jörn-Michael Miehe 2023-12-30 15:21:59 +00:00
parent dce6fc007a
commit 795a481aaa

View file

@ -8,18 +8,15 @@ async function process_text(text: string): Promise<string> {
const codes = new Set(matches.map(([_, code]) => code));
console.log("[lmlfc-bttv]", `searching ${[...codes].length} emotes`);
const emotes = await map_parallel(codes, bttv_get_url);
console.debug("matches", matches, "codes", codes, "emotes", emotes);
for (const emote of matches.reverse()) {
const [match, code] = emote;
console.debug("match", match, "code", code);
if (emote.index == undefined) continue;
const index = emote.index;
if (!emotes.has(code)) continue;
const url = emotes.get(code);
console.debug("index", index, "url", url);
text =
text.substring(0, index) +