Klassic JS
Klassic is an async-await based image(not only that) utility package.
What can it do?
-
Create your own images, for example, you can create a custom youtube comment image with <Klassic>.comment(avatar, username, comment)
-
Get a random emotion gif for example: hug, kiss, pat, wink
-
Ofcourse others, including, random facts, random answers for 8ball, and random quotes!
Content
image
const {emotions} = require('klassic');
<Client>.on('message', async(msg) => {
if(message.content.startsWith("!cat")) {
const hug = await emotions.hug();
return msg.channel.send(hug);
}
})
Image Manipulation
const {image} = require('klassic');
<Client>.on('message', async(msg) => {
if(message.content.startsWith("!hug")) {
const cat = await image.cat();
return msg.channel.send(cat);
}
})
Others
const {others} = require('klassic');
<Client>.on('message', async(msg) => {
const args = message.content.slice('!'.length).trim().split(' ');
const command = args.shift().toLowerCase();
if(command === '8ball') {
const question = args.slice(0).join(' ');
const answer = await others.eightBall()
}
})