diff options
-rw-r--r-- | http.js | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -81,5 +81,21 @@ module.exports = { func: msg => fetch("https://8ball.delegator.com/magic/JSON/whatever") .then(res => res.json()) .then(data => msg.reply(data.magic.answer)) + }, + emojify: { + func: (msg, text) => fetch("https://api.emojify.net/convert", { + method: "POST", + headers: { + "Accept": "application/json", + "Content-Type": "application/json", + }, + body: JSON.stringify({ + density: 100, + input: text.join(" "), + shouldFilterEmojis: false, + }), + }) + .then(res => res.json()) + .then(data => msg.reply(data.result)) } } |