This commit is contained in:
derpystuff 2022-05-29 16:44:25 +02:00
parent 0ea80b7452
commit 3432604c52
10 changed files with 79 additions and 9 deletions

View file

@ -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',

View file

@ -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