JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q29861F
  • License ISC

Package Exports

  • tabby-api-wrapper

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tabby-api-wrapper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Installation

Current stable version: 1.0

$ npm i tabby-api-wrapper

Usage

const TABBYAPI = require('tabby-api-wrapper')
const api = new TABBYAPI('Token')

var image = api.clyde('Hello world') // returns buffer

Example:

const TABBYAPI = require('tabby-api-wrapper')
const api = new TABBYAPI('Token')
const client = new Discord.Client();

client.on('message', async (message) => {
    let args = message.content.toLowerCase().split(' ');
    if(args[0] == 'clyde'){
        let buffer = await api.clyde(args.slice(1).join(' '))
        let attachment = new Discord.MessageAttachment(buffer, 'clyde.png');
        message.channel.send(attachment);
    }
})