This commit is contained in:
Flummi 2022-05-09 16:43:39 +02:00
parent 78b847ddae
commit b0acc1731d

View File

@ -202,12 +202,12 @@ export default async bot => {
insert into "tags_assign" ${ insert into "tags_assign" ${
db({ db({
item_id: itemid, item_id: itemid,
tag_id: res.nsfw ? 2 : 1, tag_id: res.isNSFW ? 2 : 1,
user_id: 7 user_id: 7
}) })
} }
`; `;
tags.push(res.nsfw ? 'nsfw' : 'sfw'); tags.push(res.isNSFW ? 'nsfw' : 'sfw');
if(res.hentai >= .7) { if(res.hentai >= .7) {
await db` await db`
@ -243,7 +243,7 @@ export default async bot => {
} }
e.reply([ 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)})` : '')
]); ]);
}); });