c0met
v1.2.2
Published
Little npm about c0met.xyz api
Downloads
7
Readme
Comet API
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
- Amiajoke
- Beautiful
- Beautiful2
- Blur
- Border
- Concierge
- Colorify
- Convolutional
- Darling
- Ed
- Flip
- Glitch
- Grayscale
- Invert
- Invert_grayscale
- Not_Stonk
- Pencil_shading
- Peridot
- Pixel
- Rip
- Sepia
- Stonk
- Spin
- Tint
- Triggered
- Delet
- Color
- Lyrics
- McServer
- PreColor
- Screenshot
- AI
- Base64
- Binary
- SW
- Zalgo
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'
}
] })
}
})