cheems-image-generation
v1.0.7
Published
Offical Image Generation Module For Cheems Bot :)
Downloads
15
Maintainers
Readme
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>`);
new cheems.Gay().getImage(`<Avatar>`);