@chewey/chewey-bot-api
v0.0.2
Published
Interact with the Chewey Bot API
Downloads
1
Readme
Chewey Bot Api
This is a handler for the Chewey Bot API.
Click here for documentation
Demos
Javascript
const { CheweyBotAPI, CB_ENDPOINTS } = require('chewey-bot-api');
let CBClient = new CheweyBotAPI('myToken');
CBClient.image(CB_ENDPOINTS.RED_PANDA)
.then(result => {
console.log(result); // URL of image
})
.catch(err => {
console.error(err);
});
Typescript
import { CB_ENDPOINTS, CheweyBotAPI } from 'chewey-bot-api';
const CBClient = new CheweyBotAPI('myToken');
CBClient.image(CB_ENDPOINTS.RED_PANDA)
.then(result => {
console.log(result); // URL of image
})
.catch(err => {
console.error(err);
});
Help keep the API alive at https://www.patreon.com/CheweyZ
or check out our website at https://chewey-bot.top/ access API directly at https://api.chewey-bot.top/