emojis baby

This commit is contained in:
derpystuff 2022-07-22 23:45:06 +02:00
parent 9acb1d5ec5
commit 83e13c81ad
7 changed files with 173 additions and 197 deletions

View file

@ -1,7 +1,6 @@
const Hosts = Object.freeze({
prod: "https://labscore-v2.vercel.app",
local: "http://localhost",
emoji: "https://derpystuff.gitlab.io/webstorage3/container/",
statics: "https://derpystuff.gitlab.io/webstorage4/v2/"
})
@ -45,24 +44,12 @@ const Api = Object.freeze({
TTS_TIKTOK: '/tts/tiktok',
TTS_VOICEFORGE: '/tts/voiceforge',
UTILS_EMOJIPEDIA: '/utils/emojipedia',
UTILS_INFERKIT: '/utils/inferkit',
UTILS_SCREENSHOT: '/utils/screenshot',
})
const Static = Object.freeze({
HOST: Hosts.emoji,
TWITTER: (codepoint) => { return `twemoji-JedKxRr7RNYrgV9Sauy8EGAu/${codepoint}.png` },
FLUENT: (codepoint) => { return `` },
APPLE: (codepoint) => { return `` },
MICROSOFT: (codepoint) => { return `microsoft-ZzRAzYE6LgxVTrQ5rvL7nLyC/${codepoint}.png` },
EMOJIONE: (codepoint) => { return `emojione-XghVAypW8jttjFL2tQFb2z7n/${codepoint}.png` },
GOOGLE: (codepoint) => { return `google-tqzSNjYw8MVMYfSBLTLTFgmw/${codepoint}.png` },
BLOBS: (codepoint) => { return `blobs-KpDmEXYD3VTC2VT6PSQAc99y/${codepoint}.png` }
})
module.exports = {
Api,
Static,
Hosts
}

View file

@ -250,6 +250,12 @@ module.exports.voiceforge = async function(context, text, voice){
})
}
module.exports.emojipedia = async function(context, emoji){
return await request(Api.UTILS_EMOJIPEDIA, "GET", {}, {
emoji: emoji
})
}
module.exports.inferkit = async function(context, input){
return await request(Api.UTILS_INFERKIT, "GET", {}, {
input: input
@ -263,10 +269,6 @@ module.exports.screenshot = async function(context, url, nsfw){
})
}
module.exports.emojiTwitter = async function(codepoint){
return Static.HOST + Static.TWITTER(codepoint)
}
module.exports.emojiKitchen = async function(emoji){
return await superagent.get("https://tenor.googleapis.com/v2/featured").query({
key: process.env.GOOGLE_TENOR_KEY,