diff --git a/app/Console/Commands/runclonesaver.php b/app/Console/Commands/runclonesaver.php index eb056a5a0..67eac982d 100644 --- a/app/Console/Commands/runclonesaver.php +++ b/app/Console/Commands/runclonesaver.php @@ -80,10 +80,6 @@ class RunCloneSaver extends Command SendEveMail::dispatch($mail)->delay(Carbon::now()->addMinutes(2)); } - private function CheckClone() { - - } - private function CloneSaverMail() { //Setup time frame job has been sent so we don't send too many mails diff --git a/app/Library/Fleets/FleetHelper.php b/app/Library/Fleets/FleetHelper.php deleted file mode 100644 index a9aa76967..000000000 --- a/app/Library/Fleets/FleetHelper.php +++ /dev/null @@ -1,136 +0,0 @@ -fcId = $charId; - $this->fleet = $fleetId; - } - - /** - * Set Fleet number - * - * @param fleetUri - */ - public function SetFleetUri($fleetUri) { - //Trim the left side of the fleet number - $uris = explode('https://esi.tech.ccp.is/v1/fleets/', $fleetUri); - //Trim the right side of the fleet number - $fleetUri = rtrim($uris[1], '/?datasource=tranquility'); - $this->fleetUri = $fleetUri; - } - - public function GetFleetUri() { - return $this->fleetUri; - } - - /** - * Update fleet motd and free move. - * - * @param fleetId - */ - public function UpdateFleet($fleetId) { - return null; - } - - /** - * Helper function to add a pilot to the fleet using his character id - * - * @param fc - * @param charId - * @param fleetId - */ - public function AddPilot($fc, $charId, $fleetId) { - - //Get the ESI token for the FC to add the new pilot - $token = DB::table('EsiTokens')->where('character_id', $fc)->get(); - // Disable all caching by setting the NullCache as the - // preferred cache handler. By default, Eseye will use the - // FileCache. - $configuration = Configuration::getInstance(); - $configuration->cache = NullCache::class; - //Create the ESI Call Container - $config = config('esi'); - $authentication = new EsiAuthentication([ - 'client_id' => $config['client_id'], - 'secret' => $config['secret'], - 'refresh_token' => $token[0]->refresh_token, - ]); - $esi = new \Seat\Eseye\Eseye($authentication); - - try { - //Setup the body of the esi message and perform the call - $esi->setBody([ - 'character_id' => $charId, - 'role' => 'squad_member', - ])->invoke('post', '/fleets/{fleet_id}/members/', [ - 'fleet_id' => $fleetId, - ]); - } catch(\Seat\Eseye\Exceptions\RequestFailedException $e) { - return $e->getEsiResponse(); - } - - return null; - } - - /** - * Store Fleet Activity Tracking information into the database when caleld - * - * @param fleetId - */ - public function StoreFleetActivity($fleetId, $fcId) { - //Get the ESI token for the FC to get the fleet composition - $token = DB::table('EsiTokens')->where('character_id', $fcId)->get(); - //Disable all caching by setting the NullCache as the preferred cache handler. - $configuration = Configuration::getInstance(); - $configuration->cache = NullCache::class; - //Create the ESI Call Container - $config = config('esi'); - $authentication = new EsiAuthentication([ - 'client_id' => $config['client_id'], - 'secret' => $config['secret'], - 'refresh_token' => $token[0]->refresh_token, - ]); - $esi = new Eseye($authentication); - - try { - $fleetComp = $esi->invoke('get', '/fleets/{fleet_id}/members/', [ - 'fleet_id' => $fleetId, - ]); - } catch(\Seat\Eseye\Exceptions\RequestFailedException $e) { - return $e->getEsiResponse(); - } - dd($fleetComp); - foreach($fleetComp as $comp) { - - } - - return null; - } -} - -?> \ No newline at end of file diff --git a/app/Library/Moons/MoonMine.php b/app/Library/Moons/MoonMine.php deleted file mode 100644 index 161ceaf43..000000000 --- a/app/Library/Moons/MoonMine.php +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file