Add fox command

This commit is contained in:
Helixu 2021-11-24 22:46:37 +00:00
parent eb284c4b5e
commit fbab190560

View file

@ -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"