Irian3x3 / VACEfron.js

A wrapper for the VACEfron API in TypeScript.

Home Page:https://npmjs.com/package/vacefron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A wrapper for the VACEfron API in TypeScript.

Installation

With pnpm (recommended):

pnpm add vacefron

With npm:

npm i vacefron

With yarn:

yarn add vacefron

Documentation

Check docs.md.

Example usages

Basic

const vacefron = require('vacefron');

(async () => {
    const buffer = await vacefron.water('text');
})();

Discord

const { Client, MessageAttachment } = require('discord.js');
const client = new Client();

const vacefron = require('vacefron');

client.on("message", async message => {
    if (message.content === '!iamspeed') {
        const buffer = await vacefron.iAmSpeed(message.author.displayAvatarURL());
        const attachment = new MessageAttachment(buffer, 'iamspeed.png');
    
        return message.channel.send(attachment);
    }   
});

client.login('token');

Other wrappers

Support

Discord server

Contributing

Anyone can contribute! Please just make them merge-worthy changes.

About

A wrapper for the VACEfron API in TypeScript.

https://npmjs.com/package/vacefron

License:MIT License


Languages

Language:TypeScript 100.0%