mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
- disable safe search in adult channels
- allow nsfw sites in adult channels
This commit is contained in:
parent
4584ec18d8
commit
8df2949a27
6 changed files with 20 additions and 15 deletions
|
@ -104,15 +104,17 @@ module.exports.lyrics = async function(context, query){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.google = async function(context, query){
|
||||
module.exports.google = async function(context, query, nsfw){
|
||||
return await request(Api.SEARCH_GOOGLE, "GET", {}, {
|
||||
q: query
|
||||
q: query,
|
||||
nsfw: nsfw
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.googleImages = async function(context, query){
|
||||
module.exports.googleImages = async function(context, query, nsfw){
|
||||
return await request(Api.SEARCH_GOOGLE_IMAGES, "GET", {}, {
|
||||
q: query
|
||||
q: query,
|
||||
nsfw: nsfw
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -130,15 +132,17 @@ module.exports.rule34 = async function(context, query, site){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.bing = async function(context, query){
|
||||
module.exports.bing = async function(context, query, nsfw){
|
||||
return await request(Api.SEARCH_BING, "GET", {}, {
|
||||
q: query
|
||||
q: query,
|
||||
nsfw: nsfw
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.bingImages = async function(context, query){
|
||||
module.exports.bingImages = async function(context, query, nsfw){
|
||||
return await request(Api.SEARCH_BING_IMAGES, "GET", {}, {
|
||||
q: query
|
||||
q: query,
|
||||
nsfw: nsfw
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -252,9 +256,10 @@ module.exports.inferkit = async function(context, input){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.screenshot = async function(context, url){
|
||||
module.exports.screenshot = async function(context, url, nsfw){
|
||||
return await request(Api.UTILS_SCREENSHOT, "GET", {}, {
|
||||
url: url
|
||||
url: url,
|
||||
nsfw: nsfw
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue