Exemplo n.º 1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire(Userbot $userbot, ApiMonkey $api)
 {
     $user = User::create(['char_id' => $this->argument('char_id'), 'char_name' => $api->getCharName($this->argument('char_id')), 'email' => $this->argument('email'), 'password' => Userbot::generatePassword(16), 'next_check' => \Carbon\Carbon::now('UTC')]);
     $userbot->updateSingle($user->char_id);
     $userbot->linkSlackMembers();
     $user->save();
     $this->info('User created and API work done.');
 }
Exemplo n.º 2
0
 /**
  * @param $charId
  */
 public function updateSingle($charId)
 {
     $this->apiMonkey->sendSingleAffiliation($charId);
 }