1.0.1 • Published 2 years ago

@mrwhale-io/gamejolt-client v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@mrwhale-io/gamejolt-client

Client that allows you to connect and interact with the Game Jolt chat server and site API.

Install

$ npm install @mrwhale-io/gamejolt-client

Usage

import { Client, Message } from "@mrwhale-io/gamejolt-client";

const client = new Client({
  userId: 12345,
  frontend: "63236usr1f9oqq0p4aksa9ql4c",
});

client.on("message", (message: Message) => {
  if (message.textContent === "ping") {
    message.reply("pong");
  }
});

License

MIT