Skip to content

Repository files navigation

pricegun

query pricegun.loathers.net for price and volume of recent mallsales

Installation

git checkout https://github.com/frazazel/pricegun.git

Description

pricegun is a commandline script to get price and volume information from recent mallsales. It saves the price and volume information in sessionStorage, so that repeat calls for the same item do not make an additional request to the remote server. It has options for batching, to reduce the number of requests.

It includes a JSON flag to make its output with cliExecuteOutput parsable for scripts, using something like

JSON.parse(cliExecuteOutput('pricegun JSON items="bum cheek, seal-clubbing club, magical ice cubes"'))

or

toInt(cliExecuteOutput('pricegun JSON price item="bum cheek"'))

Development

First turn your TypeScript files into something KoLmafia can understand by running

yarn run build

Then you can automatically create symlinks to your built files by running

yarn run install-mafia

When you're developing you can have your files automatically rebuild by keeping

yarn run watch

running in the background. If you've already built symlinks, your up-to-date script can be run instantly by entering pricegun into the KoLmafia CLI.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages