Browse Source

repl: Handle sell case

master
Elis Hirwing 3 years ago
parent
commit
fbcd7bd16c
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 5
      repl.php

5
repl.php

@ -45,6 +45,11 @@ while (true) {
switch ($action) {
case 's':
// Sell case
$response = $httpClient->delete('/inventory/'.$item.'/'.$amount);
$result = json_decode($response->getBody());
echo $result->status.', available amount: '.($result->available_amount ?? 0).PHP_EOL;
break;
case 'i':
// Inventory case

Loading…
Cancel
Save