Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. <?php
  2. global $bshell, $LightJet, $profile;
  3.  
  4. if ( @$init == true ) {
  5. $bot->modPreInit( 'accnt' , 'BSAccountInfo 0.1' );
  6. $bot->bind( 'PRIVMSG' , 'accnt' );
  7. $bot->bindCmd( '!accnt' );
  8. } else {
  9. //var_dump( $bot->data );
  10. //var_dump( $bot->data[ 'words' ][0] );
  11. //var_dump( $bot->module );
  12.  
  13. $words = $bot->data[ 'words' ];
  14. switch( $words[0] )
  15. {
  16. case '!accnt';
  17. $un = @$words[1];
  18. /*** Example ***/
  19. /*** check if anything was inserted***/
  20. if (empty($un)) {
  21. $bot->privMsg('Usage !accnt <username>');
  22. break;
  23. }
  24. /*** gather information***/
  25. $user = new System_Users( 'bots' , $un );
  26. $pkgLevel = $profile->currentProfile[ 'bs_pkg_level' ];
  27. $ison = $profile->getProfile($un);
  28. if ($ison == true){
  29. $msg = "$un [$pkgLevel] [" . $user->accountStatus() . "]";
  30. $bot->privMsg($msg);
  31. }else{
  32. $msg = "$un is not in our database ";
  33. $bot->privMsg($msg);
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement