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-wrapperUsage
const TABBYAPI = require('tabby-api-wrapper')
const api = new TABBYAPI('Token')
var image = api.clyde('Hello world') // returns bufferExample:
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);
}
})