Skip to content
/ kook-js Public

A Javascript SDK to program bots and webhooks for the Kook (kaiheila) application

Notifications You must be signed in to change notification settings

Ximaz/kook-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kook JS

A Javascript SDK to program bots and webhooks for the Kook (kaiheila) application.

Example :

import { KookClient } from "./src/index.js";

const KOOK_WEBSOCKET_TOKEN = process.env.KOOK_WEBSOCKET_TOKEN;
const client = new KookClient(KOOK_WEBSOCKET_TOKEN);

client.once("ready", function () {
    console.log("Bot is ready");
});

client.on("message", function(message) {
    console.log(message.content);
});

client.login().catch(function (err) {
    console.error(err);
});

About

A Javascript SDK to program bots and webhooks for the Kook (kaiheila) application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published