mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
reddit command
This commit is contained in:
parent
d0cb4ab67e
commit
c3213c28d8
6 changed files with 113 additions and 2 deletions
|
@ -116,6 +116,13 @@ module.exports.googleImages = async function(context, query){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.reddit = async function(context, query, nsfw = false){
|
||||
return await request(Api.SEARCH_REDDIT, "GET", {}, {
|
||||
q: query,
|
||||
nsfw: nsfw
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.rule34 = async function(context, query, site){
|
||||
return await request(Api.SEARCH_RULE34, "GET", {}, {
|
||||
q: query,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue