0.0.2 • Published 2 months ago

@chewey/chewey-bot-api v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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/

0.0.2

2 months ago

0.0.1

2 months ago