mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 23:23:08 -04:00
dictionary v2
This commit is contained in:
parent
c2c8241080
commit
6a3fb1dde3
4 changed files with 40 additions and 27 deletions
|
@ -28,7 +28,6 @@ const Api = Object.freeze({
|
|||
|
||||
SEARCH_BING: '/search/bing',
|
||||
SEARCH_BING_IMAGES: '/search/bing-images',
|
||||
SEARCH_DICTIONARY: '/search/dictionary',
|
||||
SEARCH_GOOGLE: '/search/google',
|
||||
SEARCH_GOOGLE_IMAGES: '/search/google-images',
|
||||
SEARCH_LYRICS: '/search/lyrics',
|
||||
|
@ -50,6 +49,7 @@ const Api = Object.freeze({
|
|||
TTS_SAPI4: '/tts/sapi4',
|
||||
TTS_TIKTOK: '/tts/tiktok',
|
||||
|
||||
UTILS_DICTIONARY: '/utils/dictionary',
|
||||
UTILS_EMOJIPEDIA: '/utils/emojipedia',
|
||||
UTILS_GARFIELD: '/utils/garfield',
|
||||
UTILS_INFERKIT: '/utils/inferkit',
|
||||
|
|
|
@ -158,12 +158,6 @@ module.exports.bingImages = async function(context, query, nsfw){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.dictionary = async function(context, query){
|
||||
return await request(Api.SEARCH_DICTIONARY, "GET", {}, {
|
||||
q: query
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.reverseImageSearch = async function(context, url){
|
||||
return await request(Api.SEARCH_REVERSE_IMAGE, "GET", {}, {
|
||||
url: url
|
||||
|
@ -290,6 +284,12 @@ module.exports.tiktok = async function(context, text, voice){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.dictionary = async function(context, query){
|
||||
return await request(Api.UTILS_DICTIONARY, "GET", {}, {
|
||||
q: query
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.emojipedia = async function(context, emoji){
|
||||
return await request(Api.UTILS_EMOJIPEDIA, "GET", {}, {
|
||||
emoji: emoji
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue