anybotapi
v2.0.2
Published
An interactor for AnyBot-API
Downloads
2
Readme
based on MDCYT/Any-Bot
AnyAPI is an API interactor of MDCYT/Any-API by MDC
Usage
Basic constructor & login
import { Client } from "anybotapi";
const myAnyAPIClient = new Client({api_key: process.env.API_KEY});
With out api key login
const myAnyAPIClient = new Client({api_key: undefined});
With API key
// use an valid API key, this isnt valid xdd
const api_key = "API_KEY";
const myAnyAPIClient = new Client({api_key})
Using routes
Example:
const data = await client.routes.anime.hug();
console.log(data.image);
Using animals fun facts
const data = await client.routes.animals.dog();
console.log(data.fact);