query pricegun.loathers.net for price and volume of recent mallsales
git checkout https://github.com/frazazel/pricegun.gitpricegun 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"'))First turn your TypeScript files into something KoLmafia can understand by running
yarn run buildThen you can automatically create symlinks to your built files by running
yarn run install-mafiaWhen you're developing you can have your files automatically rebuild by keeping
yarn run watchrunning 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.