Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

thronemaster-tools

phareim2ISC1.0.3

Tools and functions for retrieving information from a running thronemaster-game.

html, parsing, game of thrones, thronemaster

readme

thronemaster-tools

Thronemaster is an excellent way of playing the Game of Thrones strategy game with friends and frenemies across the Internet.

In this npm-package you'll find tools and functions to retrieve information from a running Thronemaster-game.

Usage from command-line

Thronmaster-tools can be installed globally with npm install -g thronemaster-tools. This gives you access to the following commands:

  • thronmaster-log [gameId] [moveId]: gameId is required, moveId is not.
  • thronemaster-title [gameId]: gameId is required.

    Usage in code

The module can also be included with require('thronemaster-tools'), giving you access to the following functions:

  • getLog(gameId, callBack): gameId is the ID of your running game, callBack is a reference to a method accepting an array of status-objects returned from the Thronemaster-server.
  • getHeading(gameId, callBack): gameId is the ID of your running game, callBack is a reference to a method accepting a string, containing the title of the game.