fix(api_cooldown): Excluded Nomie and Habitica calls from users global cooldown

Closed #244Signed-off-by: Stuart McCulloch Anderson's avatarStuart McCulloch Anderson <stuart@nxfifteen.me.uk>
parent 2ac78ba3
......@@ -150,7 +150,7 @@ class ApiBabel
$this->RewardsSystem = new RewardsSystem($user);
$userCoolDownTime = $this->getAppClass()->getUserCooldown($this->activeUser);
if (strtotime($userCoolDownTime) >= date("U")) {
if ($trigger != "habitica" && $trigger != "nomie_trackers" && strtotime($userCoolDownTime) >= date("U")) {
nxr(0,
"User Cooldown in place. Cooldown will be lift at " . $userCoolDownTime . " please try again after that.");
die();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment