mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -04:00
emojimix
This commit is contained in:
parent
aa5a4cdfbe
commit
9eb257b28d
2 changed files with 76 additions and 0 deletions
|
@ -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('_')
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue