utildiscordjs

UtilDiscordJS is a NPM package who will help you to make your bots better.

Usage no npm install needed!

<script type="module">
  import utildiscordjs from 'https://cdn.skypack.dev/utildiscordjs';
</script>

README

UtilDiscordJS

UtilDiscordJS is a NPM package who will help you to make your bots better.

Usage

In this examples we are assuming that you added UtilDiscordJS as util.

const util = require("utildiscordjs");

Ship Image

let data = await util.shipImage("avatar 1", "avatar 2", 50);

Parameters

  1. Avatar of user 1.
  2. Avatar of user 2.
  3. Porcentage of love.

Additional data

  • This method is async.

Returned Information

This will return a Buffer, so you need to compress it with MessageAttachment.

new Discord.MessageAttachment(data, "hi.png");

Emojify

let data = util.emojify("text");

Parameters

  1. Text to emojify.

Additional data

  • This method is not async.

Returned Information

This will return a unformatted text, but is ready to use in discord.

ChangeMyMind

let data = await util.changeMyMind("text");

Parameters

  1. Text to place in the picture.

Additional data

  • This method is async.

Returned Information

This will return a Buffer, so you need to compress it with MessageAttachment.

new Discord.MessageAttachment(data, "hi.png");