Configuration
The first step is to import the module in your code.
const make = require("claire-cord");
Then you have to request your image and send it as an attachement.
// Import the discord.js library.
const Discord = require("discord.js")
// Create a new discord.js client.
const bot = new Discord.Client()
const make = require("claire-cord");
> You can also destructure to avoid repeating make.
// Listen to the ready event
bot.on("ready", () => {
console.log("ok");
})
// Listen to the message event
bot.on("message", async (message) => {
if (message.content === "*delete") {
// Get the avatarUrl of the user
let avatar = message.author.displayAvatarURL({ dynamic: false, format: 'png' });
// Make the image
let img = await new make.Delete().getImage(avatar)
// Add the image as an attachement
let attach = new Discord.MessageAttachment(img, "delete.png");;
message.channel.send(attach)
}
})
// Log in to the bot
bot.login("super_secret_token")
Available images
Filters
new make.Blur().getImage(`<Avatar>`, `<Level(Number)>`);
new make.Gay().getImage(`<Avatar>`);
new make.Greyscale().getImage(`<Avatar>`);
new make.Invert().getImage(`<Avatar>`);
new make.Sepia().getImage(`<Avatar>`);
Gifs
new make.Blink().getImage(`<Avatar>`, `<Avatar2>`.....);
You can add as many images as you want
new make.Triggered().getImage(`<Avatar>`);
Montage
new make.Crush().getImage(`<Avatar>`);
new make.Approved().getImage(`<Avatar>`);
new make.Airpods().getImage(`<Avatar>`);
new make.Bill().getImage(`<Avatar>`);
new make.Meth().getImage(`<Avatar>`);
new make.Communism().getImage(`<Avatar>`);
new make.Udf().getImage(`<Avatar>`);
new make.Bjp().getImage(`<Avatar>`);
new make.Captcha().getImage(`<Avatar>`);
new make.Continued().getImage(`<Avatar>`);
new make.Police().getImage(`<Avatar>`);
new make.Linus().getImage(`<Avatar>`);
new make.What().getImage(`<Avatar>`);
new make.Minecraft().getImage(`<TEXT>`);
new make.Ad().getImage(`<Avatar>`);
new make.Affect().getImage(`<Avatar>`);
new make.Batslap().getImage(`<Avatar>`, `<Avatar2>`);
new make.Beautiful().getImage(`<Avatar>`);
new make.Bed().getImage(`<Avatar>`, `<Avatar2>`);
new make.Bobross().getImage(`<Avatar>`);
new make.ConfusedStonk().getImage(`<Avatar>`);
new make.Delete().getImage(`<Avatar>`);
new make.DiscordBlack().getImage(`<Avatar>`)
new make.DiscordBlue().getImage(`<Avatar>`)
new make.DoubleStonk().getImage(`<Avatar`, `<Avatar2>`)
new make.Facepalm().getImage(`<Avatar>`);
new make.Hitler().getImage(`<Avatar>`);
new make.Jail().getImage(`<Avatar>`);
new make.Karaba().getImage(`<Avatar>`);
new make.Kiss().getImage(`<Avatar>`, `<Avatar2>`);
new make.LisaPresentation().getImage(`<Text>`);
Limited to 300char
(Thanks to sιмση ℓεcℓεяε#5765)
new make.Mms().getImage(`<Avatar>`);
new make.NotStonk().getImage(`<Avatar>`);
new make.Podium().getImage(`<Avatar1>, <Avatar2>, <Avatar2>, <Name1>, <Name2>, <Name3>`);
new make.Poutine().getImage(`<Avatar>`);
new make.Rip().getImage(`<Avatar>`);
new make.Spank().getImage(`<Avatar>`, `<Avatar2>`);
new make.Stonk().getImage(`<Avatar>`);
new make.Tatoo().getImage(`<Avatar>`)
new make.Thomas().getImage(`<Avatar>`);
new make.Trash().getImage(`<Avatar>`);
new make.Wanted().getImage(`<Avatar>`, `<Currency>`);
Currency ($, €, ...)
Utils
new make.Circle().getImage(`<Avatar>`);
new make.Color().getImage(`<Color>`);
An hex color is needed, like "#FF0000"