[cmd] urbandictionary

This commit is contained in:
derpystuff 2022-05-29 00:44:14 +02:00
parent 1aba83b2ed
commit 07bb620cd1
4 changed files with 124 additions and 1 deletions

View file

@ -32,6 +32,7 @@ const Api = Object.freeze({
SEARCH_GOOGLE_IMAGES: '/search/google-images',
SEARCH_LYRICS: '/search/lyrics',
SEARCH_RULE34: '/search/booru',
SEARCH_URBANDICTIONARY: '/search/urbandictionary',
SEARCH_WOLFRAM_ALPHA: '/search/wolfram-alpha',
SEARCH_YOUTUBE: '/search/youtube',

View file

@ -134,6 +134,12 @@ module.exports.bingImages = async function(context, query){
})
}
module.exports.urbandictionary = async function(context, query){
return await request(Api.SEARCH_URBANDICTIONARY, "GET", {}, {
q: query
})
}
module.exports.wolframAlpha = async function(context, query){
return await request(Api.SEARCH_WOLFRAM_ALPHA, "GET", {}, {
q: query