1.0.3 • Published 8 years ago
thronemaster-tools v1.0.3
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: 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):
gameIdis the ID of your running game,callBackis a reference to a method accepting an array of status-objects returned from the Thronemaster-server. - getHeading(gameId, callBack):
gameIdis the ID of your running game,callBackis a reference to a method accepting a string, containing the title of the game.