This commit is contained in:
derpystuff 2022-07-21 00:05:31 +02:00
parent aa5a4cdfbe
commit 9eb257b28d
2 changed files with 76 additions and 0 deletions

View file

@ -265,4 +265,15 @@ 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,
contentfilter: "high",
media_filter: "png_transparent",
component: "proactive",
collection: "emoji_kitchen_v5",
q: emoji.join('_')
})
}