diff --git a/index.js b/index.js index 4a93014..83f5200 100644 --- a/index.js +++ b/index.js @@ -138,6 +138,10 @@ client.on("ready", () => { name: "cat", description: "Meow" }, + { + name: "fox", + description: "What does it say?" + }, { name: "apis", description: "Shows all APIs" @@ -200,6 +204,10 @@ client.on("interactionCreate", (int) => { axios("https://api.thecatapi.com/v1/images/search").then((res) => { int.reply({embeds: [{title: "Meow", image: {url: res.data[0].url}, color: "#ec76fd"}]}); }); + } else if(int.commandName == "fox"){ + axios("https://randomfox.ca/floof/").then(res => { + int.reply({embeds: [{title: "uwu", image: {url: res.data.image}, color: "#ffa500"}]}); + }); } else if(int.commandName == "apis"){ var apis = { "Cat API": "https://api.thecatapi.com/v1/images/search"