2.0.0-alpha.3 • Published 1 year ago

@remote-kakao/core v2.0.0-alpha.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

remote-kakao banner

remote-kakao (alpha)

Discord Server

About

remote-kakao is a Node.js module that makes it easier to create unofficial KakaoTalk bots by bridging MessengerBot and Node.js, over UDP or TCP.

Requirements

Example

import { UDPServer } from "@remote-kakao/core";

const prefix = ">";
const server = new UDPServer();

server.once("ready", (port) => {
  console.log(`Server ready on port ${port}!`);
});

server.on("chat", async (msg) => {
  if (!msg.content.startsWith(prefix)) return;

  const args = msg.content.split(" ");
  const cmd = args.shift()?.slice(prefix.length);

  if (cmd === "ping") {
    /*
      this command's result is the ping between Node.js and MessengerBot,
      not between MessengerBot and the KakaoTalk server.
    */
    const timestamp = Date.now();
    await msg.replyText("Pong!");
    msg.replyText(`${Date.now() - timestamp}ms`);
  }
});

server.start();

Plugins

2.0.0-alpha.3

1 year ago

2.0.0-alpha.0

1 year ago

2.0.0-alpha.1

1 year ago

2.0.0-alpha.2

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.0-alpha.6

2 years ago

1.0.0-alpha.5

2 years ago

1.0.0-alpha.4

2 years ago

1.0.0-alpha.3

2 years ago

1.0.0-alpha.2

2 years ago

1.0.0-alpha.1

2 years ago

1.0.0-alpha.0

2 years ago