diff --git a/webhook.php b/webhook.php index 72ed50d..f654939 100644 --- a/webhook.php +++ b/webhook.php @@ -99,7 +99,10 @@ function add_requirement() { function deposit(){ global $command_list; $item_id = $command_list[1]; - $quantity = $command_list[2]; + $quantity = 1; + if (isset($command_list[2])){ + $quantity = $command_list[2]; + } $mysql = require('mysql_credentials.php'); $conn = new mysqli($mysql['servername'], $mysql['username'], $mysql['password'], $mysql['database']);