cheems-image-generation
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

cheems-image-generation

simple image generation module.

Download

You can download it from npmjs.

npm i cheems-image-generation

Configuration

The first step is to import the module in your code.

const cheems = require("cheems-image-generation");

Then you have to request your image and send it as an attachement.

// Import the discord.js library.
const { Client, MessageAttachment } = require("discord.js")


const cheems = require("cheems-image-generation");
> You can also destructure to avoid repeating cheems


Client.on("message", async (message) => {
    if (message.content === "!gay") {
        let avatar = message.author.displayAvatarURL({ dynamic: false, format: 'png' });
        // Make the image
        let img = await new cheems.gay().getImage(avatar)
        // Add the image as an attachement
        let image = new MessageAttachment(img, "delete.png");;
        message.channel.send(image)
    }
})

// Log in to the bot
Client.login("bot.token.lol")

Available images

Filters

  • new cheems.Blur().getImage(`<Avatar>`);

America

  • new cheems.Gay().getImage(`<Avatar>`);

Gay

Package Sidebar

Install

npm i cheems-image-generation

Weekly Downloads

0

Version

1.0.7

License

MIT

Unpacked Size

632 kB

Total Files

13

Last publish

Collaborators

  • hamzawastaken