fedifeed/lib/emoji.js

15 lines
No EOL
430 B
JavaScript

import axios from "axios";
import fs from "fs";
//Grab emote list so when rendering
export default function getEmojiJson(url) {
let emojiUrl = "https://" + url + "/api/v1/custom_emojis";
axios
.get(emojiUrl)
.then(res => {
console.log(`statusCode: ${res.status}`);
const emojiJson = res.data;
console.log(emojiJson);
});
}
getEmojiJson("freecumextremist.com");