@mrwhale-io/gamejolt-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @mrwhale-io/gamejolt-client

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

134 kB

Total Files

115

Last publish

Collaborators

  • ttbowen