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

kaiheilajs

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kaiheilajs

A powerful JavaScript typedful library to create Kaiheila bots easiser.

  • 4.3.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Kaiheila.JS

A powerful JavaScript typedful library to create Kaiheila bots easiser.


(Made with ❤️ by Yummy#0001 on Kaiheila)

KaiheilaJS support server :

Join the KaiheilaJS support by click right there.

Roadmap

  • ☑ IntelliSens
  • ☑ Built-in functions
    • ☑ User
    • ☑ Guild
    • ☑ Member
    • ☑ Message
    • ☑ Reaction
    • ☑ Channel
    • ☑ Role
    • ☑ Asset
  • ☑ Client options
    • ☑ skipClientTriggers
    • ☑ packetCompression
  • ☑ Upgrade to new Kaiheila API
  • ☐ Voice channels

Sample code :

const Kaiheila = require('kaiheilajs'),
    { token, prefix } = require('./config.example.json'),
    client = new Kaiheila.Client(token)

client.once('ready', function (sessionId) {
    console.log(`Client is connected ! Session ID : ${sessionId}`)
})

client.on('message', async function (message) {
    const args = message.content.split(/ +/),
        command = args.shift().toLowerCase()

    if (command === `${prefix}help`) {
        const commands = [
                { name: `${prefix}help`, value: 'shows commands list.' },
                {
                    name: `${prefix}ping`,
                    value: "get a 'Pong !' from the bot.",
                },
            ],
            card = new Kaiheila.Card()
                .addHeader('Help :')
                .addDivider()
                .setColor('#e5a7b6')
                .addRowFields(commands, true)
                .setAuthor(message.extra.author.username, {
                    src: message.extra.author.avatar,
                    size: 'sm',
                    side: 'left',
                    circle: true,
                })

        await client.managers.message.create(message.target_id, card)
    }
})

client.login()

Keywords

FAQs

Package last updated on 09 Jan 2022

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