master #50

Merged
schrumpel merged 101 commits from master into dev 2022-10-22 23:40:03 +00:00
Showing only changes of commit 9dfffbb8bf - Show all commits

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)})` : '')
]); ]);
}); });