austinh115

[PHP] latestpwoer, dont bother using it tbh

Mar 11th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. case 'latestpower':
  2.                     case 'lp':
  3.                         $json = json_decode(file_get_contents('http://api.illuxat.com/latestpower.php'));
  4.                         if (!$json) {
  5.                             return $this->sendMessage('Illuxat down.');
  6.                         }
  7.                         if (!isset($json->error)) {
  8.                             $this->sendMessage('[Power ID: '.$json->ID.'] '.ucfirst($json->Name).' | Store Price: '.$json->XatStore.' | '.$json->Description);
  9.                         } else {
  10.                             $this->sendMessage("_$message[0]: ".$json->error);
  11.                         }
  12.                         break;
Advertisement
Add Comment
Please, Sign In to add comment