mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-18 19:07:16 -04:00
[cmd] wolfram-alpha
This commit is contained in:
parent
4eccafdbb6
commit
f4a22934c6
4 changed files with 78 additions and 1 deletions
|
@ -14,6 +14,7 @@ const Api = Object.freeze({
|
|||
SEARCH_GOOGLE_IMAGES: '/search/google-images',
|
||||
SEARCH_BING: '/search/bing',
|
||||
SEARCH_BING_IMAGES: '/search/bing-images',
|
||||
SEARCH_WOLFRAM_ALPHA: '/search/wolfram-alpha',
|
||||
|
||||
PHOTOFUNIA_YACHT: '/photofunia/yacht'
|
||||
})
|
||||
|
|
|
@ -70,6 +70,12 @@ module.exports.bingImages = async function(context, query){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.wolframAlpha = async function(context, query){
|
||||
return await request(Api.SEARCH_WOLFRAM_ALPHA, "GET", {}, {
|
||||
q: query
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.yacht = async function(context, text){
|
||||
return await request(Api.PHOTOFUNIA_YACHT, "GET", {}, {
|
||||
text: text
|
||||
|
|
|
@ -17,6 +17,10 @@ const Statics = Object.freeze({
|
|||
google: {
|
||||
file: "brands/google.png",
|
||||
revision: 0
|
||||
},
|
||||
wolframalpha: {
|
||||
file: "brands/wolframalpha.png",
|
||||
revision: 0
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -29,5 +33,6 @@ module.exports.STATICS = Object.freeze({
|
|||
photofunia: staticAsset(Statics.brands.photofunia),
|
||||
genius: staticAsset(Statics.brands.genius),
|
||||
bing: staticAsset(Statics.brands.bing),
|
||||
google: staticAsset(Statics.brands.google)
|
||||
google: staticAsset(Statics.brands.google),
|
||||
wolframalpha: staticAsset(Statics.brands.wolframalpha)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue