claire-cord

1.0.0 • Public • Published

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)>`);

Blur

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

Gay

  • new make.Greyscale().getImage(`<Avatar>`);

Greyscale

  • new make.Invert().getImage(`<Avatar>`);

Invert

  • new make.Sepia().getImage(`<Avatar>`);

Sepia

Gifs

  • new make.Blink().getImage(`<Avatar>`, `<Avatar2>`.....);

You can add as many images as you want

Blink

  • new make.Triggered().getImage(`<Avatar>`);

Triggered

Montage

  • new make.Crush().getImage(`<Avatar>`);

Crush

  • new make.Approved().getImage(`<Avatar>`);

Airpods

  • new make.Airpods().getImage(`<Avatar>`);

Airpods

  • new make.Bill().getImage(`<Avatar>`);

Bill

  • new make.Meth().getImage(`<Avatar>`);

Meth

  • new make.Communism().getImage(`<Avatar>`);

Communism

  • new make.Udf().getImage(`<Avatar>`);

Udf

  • new make.Bjp().getImage(`<Avatar>`);

Bjp

  • new make.Captcha().getImage(`<Avatar>`);

Captcha

  • new make.Continued().getImage(`<Avatar>`);

Continued

  • new make.Police().getImage(`<Avatar>`);

Police

  • new make.Linus().getImage(`<Avatar>`);

Linus

  • new make.What().getImage(`<Avatar>`);

What

  • new make.Minecraft().getImage(`<TEXT>`);

Minecraft

  • new make.Ad().getImage(`<Avatar>`);

Ad

  • new make.Affect().getImage(`<Avatar>`);

Affect

  • new make.Batslap().getImage(`<Avatar>`, `<Avatar2>`);

Batslap

  • new make.Beautiful().getImage(`<Avatar>`);

Beautiful

  • new make.Bed().getImage(`<Avatar>`, `<Avatar2>`);

Bed

  • new make.Bobross().getImage(`<Avatar>`);

Bobross

  • new make.ConfusedStonk().getImage(`<Avatar>`);

ConfusedStonk

  • new make.Delete().getImage(`<Avatar>`);

Delete

  • new make.DiscordBlack().getImage(`<Avatar>`)

DiscordBlack

  • new make.DiscordBlue().getImage(`<Avatar>`)

DiscordBlue

  • new make.DoubleStonk().getImage(`<Avatar`, `<Avatar2>`)

DoubleStonk

  • new make.Facepalm().getImage(`<Avatar>`);

Facepalm

  • new make.Hitler().getImage(`<Avatar>`);

Hitler

  • new make.Jail().getImage(`<Avatar>`);

Jail

  • new make.Karaba().getImage(`<Avatar>`);

Karaba

  • new make.Kiss().getImage(`<Avatar>`, `<Avatar2>`);

Kiss

  • new make.LisaPresentation().getImage(`<Text>`);

LisaPresentation

Limited to 300char

(Thanks to sιмση ℓεcℓεяε#5765)

  • new make.Mms().getImage(`<Avatar>`);

MMS

  • new make.NotStonk().getImage(`<Avatar>`);

NotStonk

  • new make.Podium().getImage(`<Avatar1>, <Avatar2>, <Avatar2>, <Name1>, <Name2>, <Name3>`);

Podium

  • new make.Poutine().getImage(`<Avatar>`);

Poutine

  • new make.Rip().getImage(`<Avatar>`);

RIP

  • new make.Spank().getImage(`<Avatar>`, `<Avatar2>`);

Spank

  • new make.Stonk().getImage(`<Avatar>`);

Stonk

  • new make.Tatoo().getImage(`<Avatar>`)

Tatoo

  • new make.Thomas().getImage(`<Avatar>`);

Thomas

  • new make.Trash().getImage(`<Avatar>`);

Trash

  • new make.Wanted().getImage(`<Avatar>`, `<Currency>`);

Currency ($, €, ...)

Wanted

Utils

  • new make.Circle().getImage(`<Avatar>`);

Circle

  • new make.Color().getImage(`<Color>`);

An hex color is needed, like "#FF0000"

Color

Package Sidebar

Install

npm i claire-cord

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

16.7 MB

Total Files

103

Last publish

Collaborators

  • rxsto
  • mrkayjaydee
  • afthabanees