Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

klassic

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

klassic

A discord.js framework

  • 1.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

// discord.js bot example
const {emotions} = require('klassic');

<Client>.on('message', async(msg) => {
    if(message.content.startsWith("!cat")) {
        const hug = await emotions.hug();
        return msg.channel.send(hug); // same for kiss, pat, wink
    }
})

Image Manipulation

// discord.js bot example
const {image} = require('klassic');

<Client>.on('message', async(msg) => {
    if(message.content.startsWith("!hug")) {
        const cat = await image.cat();
        return msg.channel.send(cat); // same for comment, crap, dog, meme, panda, recaptcha, triggered, trumpTweet
    }
})

Others

// discord.js bot example
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() // same for fact, quote
    }
})

Keywords

FAQs

Package last updated on 26 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc