Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case 'lastpower':
- case 'powerlast':
- case 'newpower':
- case 'powernew':
- $url = @file_get_contents('http://xat.com/json/powers.php');
- if(empty($url)){$this->sendMessage('Error as ocorrid. Try again later.'); return false;}
- $conteudo = json_decode($url, true);
- $ultimo_pw = reset($conteudo);
- $this->sendMessage('The new power is '.$ultimo_pw['s'].'. More information in Xat.wiki/'.$ultimo_pw['s'].' ! ');
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement