Add fox command
This commit is contained in:
parent
eb284c4b5e
commit
fbab190560
1 changed files with 8 additions and 0 deletions
8
index.js
8
index.js
|
@ -138,6 +138,10 @@ client.on("ready", () => {
|
||||||
name: "cat",
|
name: "cat",
|
||||||
description: "Meow"
|
description: "Meow"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "fox",
|
||||||
|
description: "What does it say?"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "apis",
|
name: "apis",
|
||||||
description: "Shows all APIs"
|
description: "Shows all APIs"
|
||||||
|
@ -200,6 +204,10 @@ client.on("interactionCreate", (int) => {
|
||||||
axios("https://api.thecatapi.com/v1/images/search").then((res) => {
|
axios("https://api.thecatapi.com/v1/images/search").then((res) => {
|
||||||
int.reply({embeds: [{title: "Meow", image: {url: res.data[0].url}, color: "#ec76fd"}]});
|
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"){
|
} else if(int.commandName == "apis"){
|
||||||
var apis = {
|
var apis = {
|
||||||
"Cat API": "https://api.thecatapi.com/v1/images/search"
|
"Cat API": "https://api.thecatapi.com/v1/images/search"
|
||||||
|
|
Loading…
Reference in a new issue