From ae09188c01a84ca16c304817e35bf3b980a85e87 Mon Sep 17 00:00:00 2001 From: NotWorkingCode <52665159+NotWorkingCode@users.noreply.github.com> Date: Thu, 23 Jan 2025 15:20:08 +0300 Subject: [PATCH] Add a secure call to the handle method --- src/Services/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Service.php b/src/Services/Service.php index 153e5c2..cbe4a1e 100644 --- a/src/Services/Service.php +++ b/src/Services/Service.php @@ -86,7 +86,7 @@ public function boot(): self $this->bot->getLoop()->addPeriodicTimer( $this->getInterval(), - fn () => $this->handle() + fn () => $this->bot->handleSafe($this->getName(), fn () => $this->handle()) ); return $this;