Merge remote-tracking branch 'origin/dev'
This commit is contained in:
commit
9dfffbb8bf
|
@ -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)})` : '')
|
||||
]);
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user