• Stars
    star
    105
  • Rank 328,196 (Top 7 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Node.js module to make unofficial KakaoTalk bots (within the legal scope).

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.

Requirements

Client

You have to create a new bot in MessengerBot, and paste the client code into the new bot`s code. Then change the values of the config object on top of the file.

Example

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

const prefix = ">";
const server = new UDPServer({ serviceName: "Example Service" });

server.on("message", 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

@remote-kakao/rkeval-plugin