mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 06:33:05 -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue