A wrapper for the VACEfron API in TypeScript.
With pnpm (recommended):
pnpm add vacefron
With npm:
npm i vacefron
With yarn:
yarn add vacefron
const { VACEFronJS } = require('vacefron');
const vacefron = new VACEFronJS();
(async () => {
const buffer = await vacefron.water('text');
console.log(buffer);
})();
const { VACEFronJS } = require('vacefron');
const vacefron = new VACEFronJS();
(async () => {
const buffer = await vacefron.npc('text1', 'text2');
console.log(buffer);
})();
const { Client, MessageAttachment } = require('discord.js');
const client = new Client();
const { VACEFronJS } = require('vacefron');
const vacefron = new VACEFronJS();
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');
Anyone can contribute! Please just make them merge-worthy changes.