Add API
This commit is contained in:
parent
fbab190560
commit
4797cbcd9f
1 changed files with 2 additions and 1 deletions
3
index.js
3
index.js
|
@ -210,7 +210,8 @@ client.on("interactionCreate", (int) => {
|
||||||
});
|
});
|
||||||
} 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",
|
||||||
|
"Fox API": "https://randomfox.ca/floof/"
|
||||||
};
|
};
|
||||||
var apiArray = [];
|
var apiArray = [];
|
||||||
Object.keys(apis).forEach(key => {
|
Object.keys(apis).forEach(key => {
|
||||||
|
|
Loading…
Reference in a new issue