TomNeyland / eve-code

Python Utilities for Eve-Online
3 stars 3 forks source link

jabber bot: enhance "price" cmd with import cost*volume flag #12

Open SwimlanesOnline opened 11 years ago

SwimlanesOnline commented 11 years ago

Add a flag to specify an import cost per m³ to the price command. If the flag is provided with no value, pick the default value stored in the bot (e.g. PH default rate for jita <> current deployment [home] system).

Example:

Without flag it looks like this:

jack_haydn: price warp disrupt probe -q 60 dev-trader: Warp Disrupt Probe x 60.0 would cost 1,130,337.0 in The Forge. Average Price: 18,838.95

With flag it could look like this:

jack_haydn: price warp disrupt probe -q 60 -i 350 dev-trader: Warp Disrupt Probe x 60.0 would cost 1,130,337.0 in The Forge. Average Price: 18,838.95. Import cost is 105,000.0 for a total of 1,235,337.0.

TomNeyland commented 11 years ago

Will see if I can knock this out this weekend