c0met
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

Comet API Comet

Comet is an API focused on facilitating the work of developers by providing them with various image modifiers and other tools so that they can provide a better service

Made by:

Join our Discord Server for Support

For more help view Documentation

To get the token go to Panel

Features

  • Cache on server
  • Optimized code
  • Great Support
  • Flexible

Methods

Token

/**
 * @return {Promise<String>}
 */

Comet.Token()

Amiajoke

/**
 * @return {Promise<Buffer>}
 */


Comet.Amiajoke(avatar)

Beautiful

/**
 * @return {Promise<Buffer>}
 */


Comet.Beautiful(avatar)

Beautiful2

/**
 * @return {Promise<Buffer>}
 */


Comet.Beautiful2(avatar)

Challenger

/**
 * @return {Promise<Buffer>}
 */


Comet.Challenger(avatar)

Blur

/**
 * @return {Promise<Buffer>}
 */

Comet.Blur(avatar, count)

//Count is optional

Border

/**
 * @return {Promise<Buffer>}
 */

Comet.Border(avatar, border, line)

//Line is optional

Concierge

/**
 * @return {Promise<Buffer>}
 */

Comet.Concierge(avatar, avatar1)

Colorify

/**
 * @return {Promise<Buffer>}
 */

Comet.Colorify(avatar, {
	gradient: boolean,
	sqrt: boolean,
	rainbow: boolean,
	threshold1: number,
	threshold2: number,
	dark: string,
	blurple: string
	white: string
})

Convolutional

/**
 * @return {Promise<Buffer>}
 */

Comet.Convolutional(avatar, ConFilter)

//Convolutional filter help: https://docs.gimp.org/2.8/en/plug-in-convmatrix.html

Darling

/**
 * @return {Promise<Buffer>}
 */

Comet.Darling(avatar)

Ed

/**
 * @return {Promise<Buffer>}
 */

Comet.Ed(avatar, avatar1)

Flip

/**
 * @return {Promise<Buffer>}
 */

Comet.Flip(avatar)

Glitch

/**
 * @return {Promise<Buffer>}
 */

Comet.Glitch(avatar)

Grayscale

/**
 * @return {Promise<Buffer>}
 */

Comet.Grayscale(avatar)

Invert

/**
 * @return {Promise<Buffer>}
 */

Comet.Invert()

Invert_grayscale

/**
 * @return {Promise<Buffer>}
 */

Comet.Invert_Grayscale(avatar)

Not_Stonk

/**
 * @return {Promise<Buffer>}
 */

Comet.Not_Stonk(avatar)

Pencil_Shading

/**
 * @return {Promise<Buffer>}
 */

Comet.Pencil_Shading(avatar)

Peridot

/**
 * @return {Promise<Buffer>}
 */

Comet.Peridot(avatar)

Pixel

/**
 * @return {Promise<Buffer>}
 */

Comet.Pixel(avatar)

Rip

/**
 * @return {Promise<Buffer>}
 */

Comet.Rip(avatar, name)
//Name is optional

Sepia

/**
 * @return {Promise<Buffer>}
 */

Comet.Sepia(avatar)

Stonk

/**
 * @return {Promise<Buffer>}
 */

Comet.Stonk(avatar)

Spin

/**
 * @return {Promise<Buffer>}
 */

Comet.Spin(avatar)

Tint

/**
 * @return {Promise<Buffer>}
 */

Comet.Tint(avatar, color)

Triggered

/**
 * @return {Promise<Buffer>}
 */

Comet.Triggered(avatar)

Delet

/**
 * @return {Promise<Buffer>}
 */

Comet.Delet(avatar)

Color

/**
 * @return {Promise<Object>}
 */

Comet.Color(hex)

Lyrics

/**
 * @return {Promise<Object>}
 */

Comet.Lyrics(song_name)

McServer

/**
 * @return {Promise<Object>}
 */

Comet.McServer(server_ip)

PreColor

/**
 * @return {Promise<Object>}
 */

Comet.PreColor(avatar)

Screenshot

/**
 * @return {Promise<Object>}
 */

Comet.Screenshot(url)

YT

/**
 * @return {Promise<Object>}
 */

Comet.YT(video_id)

AI

/**
 * @return {Promise<Object>}
 */

Comet.AI(message)

Base64

/**
 * @return {Promise<Object>}
 */

Comet.Base64(text, convert/decode)

Binary

/**
 * @return {Promise<Object>}
 */

Comet.Binary(text, convert/decode)

Swearword

/**
 * @return {Promise<Object>}
 */

Comet.SW(text)

Zalgo

/**
 * @return {Promise<Object>}
 */

Comet.Zalgo(text)

Example

global.Comet = new (require('c0met'))('TOKEN')
let prefix = "!";

<Client>.on('message', (message) => {

    let args = message.content.slice(prefix.length).trim().split(/ +/g);
    let command = args.shift().toLowerCase();

    if(command == 'beautiful') {

        let avatar = (message.mentions.users.first() || message.author).displayAvatarURL({ format: 'png', size: 512 });

        let img = await Comet.Beautiful(avatar).catch(e => false);

        if(!img) return message.channel.send(':x: | An error occurred');

        message.channel.send({ files: [
            {
                attachment: img,
                name: 'beautiful.png'
            }
        ] })

    }

})

Readme

Keywords

Package Sidebar

Install

npm i c0met

Weekly Downloads

0

Version

1.2.2

License

MIT

Unpacked Size

71.5 kB

Total Files

10

Last publish

Collaborators

  • esponjosin
  • bulzykrown