mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 15:13:04 -04:00
big
This commit is contained in:
parent
0ea80b7452
commit
3432604c52
10 changed files with 79 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
const Hosts = Object.freeze({
|
||||
prod: "https://vercel-router-test.vercel.app",
|
||||
prod: "https://labscore-v2.vercel.app",
|
||||
local: "http://localhost:3000",
|
||||
emoji: "https://derpystuff.gitlab.io/webstorage3/container/",
|
||||
statics: "https://derpystuff.gitlab.io/webstorage4/v2/"
|
||||
|
@ -33,6 +33,7 @@ const Api = Object.freeze({
|
|||
SEARCH_LYRICS: '/search/lyrics',
|
||||
SEARCH_RULE34: '/search/booru',
|
||||
SEARCH_URBANDICTIONARY: '/search/urbandictionary',
|
||||
SEARCH_WIKIHOW: '/search/wikihow',
|
||||
SEARCH_WOLFRAM_ALPHA: '/search/wolfram-alpha',
|
||||
SEARCH_YOUTUBE: '/search/youtube',
|
||||
|
||||
|
|
|
@ -140,6 +140,12 @@ module.exports.urbandictionary = async function(context, query){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.wikihow = async function(context, query){
|
||||
return await request(Api.SEARCH_WIKIHOW, "GET", {}, {
|
||||
q: query
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.wolframAlpha = async function(context, query){
|
||||
return await request(Api.SEARCH_WOLFRAM_ALPHA, "GET", {}, {
|
||||
q: query
|
||||
|
|
|
@ -35,6 +35,10 @@ const Statics = Object.freeze({
|
|||
urbandictionary: {
|
||||
file: "brands/urbandictionary.png",
|
||||
revision: 2
|
||||
},
|
||||
wikihow: {
|
||||
file: "brands/wikihow.png",
|
||||
revision: 1
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -51,5 +55,6 @@ module.exports.STATICS = Object.freeze({
|
|||
wolframalpha: staticAsset(Statics.brands.wolframalpha),
|
||||
inferkit: staticAsset(Statics.brands.inferkit),
|
||||
youtube: staticAsset(Statics.brands.youtube),
|
||||
urbandictionary: staticAsset(Statics.brands.urbandictionary)
|
||||
urbandictionary: staticAsset(Statics.brands.urbandictionary),
|
||||
wikihow: staticAsset(Statics.brands.wikihow)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue