From b0acc1731d131465bbbbb26490022bfecdd22884 Mon Sep 17 00:00:00 2001 From: Flummi Date: Mon, 9 May 2022 16:43:39 +0200 Subject: [PATCH] oopsie --- src/inc/trigger/parser.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inc/trigger/parser.mjs b/src/inc/trigger/parser.mjs index 3a0a25b..259d7d6 100644 --- a/src/inc/trigger/parser.mjs +++ b/src/inc/trigger/parser.mjs @@ -202,12 +202,12 @@ export default async bot => { insert into "tags_assign" ${ db({ item_id: itemid, - tag_id: res.nsfw ? 2 : 1, + tag_id: res.isNSFW ? 2 : 1, user_id: 7 }) } `; - tags.push(res.nsfw ? 'nsfw' : 'sfw'); + tags.push(res.isNSFW ? 'nsfw' : 'sfw'); if(res.hentai >= .7) { await db` @@ -243,7 +243,7 @@ export default async bot => { } e.reply([ - `[f0cked] link: ${cfg.main.url.full}/${itemid} | size: ${lib.formatSize(size)} | speed: ${speed}` + (tags.length > 0 ? ` | tags: ${tags.join(', ')} (score: ${score})` : '') + `[f0cked] link: ${cfg.main.url.full}/${itemid} | size: ${lib.formatSize(size)} | speed: ${speed}` + (tags.length > 0 ? ` | tags: ${tags.join(', ')} (score: ${score.toFixed(2)})` : '') ]); });