isOnline = $online; } public function isPluginEnabled(): bool { // Only users can be online/offline return $this->getSelf()['bot'] === false; } #[Cron(period: 60.0)] public function cron(): void { $this->account->updateStatus(offline: !$this->isOnline); } #[FilterCommand('online')] public function toggleOnline(Incoming&Message&FromAdmin $message): void { $this->isOnline = true; } #[FilterCommand('offline')] public function toggleOffline(Incoming&Message&FromAdmin $message): void { $this->isOnline = false; } }