Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $bshell, $LightJet, $profile;
- if ( @$init == true ) {
- $bot->modPreInit( 'accnt' , 'BSAccountInfo 0.1' );
- $bot->bind( 'PRIVMSG' , 'accnt' );
- $bot->bindCmd( '!accnt' );
- } else {
- //var_dump( $bot->data );
- //var_dump( $bot->data[ 'words' ][0] );
- //var_dump( $bot->module );
- $words = $bot->data[ 'words' ];
- switch( $words[0] )
- {
- case '!accnt';
- $un = @$words[1];
- /*** Example ***/
- /*** check if anything was inserted***/
- if (empty($un)) {
- $bot->privMsg('Usage !accnt <username>');
- break;
- }
- /*** gather information***/
- $user = new System_Users( 'bots' , $un );
- $pkgLevel = $profile->currentProfile[ 'bs_pkg_level' ];
- $ison = $profile->getProfile($un);
- if ($ison == true){
- $msg = "$un [$pkgLevel] [" . $user->accountStatus() . "]";
- $bot->privMsg($msg);
- }else{
- $msg = "$un is not in our database ";
- $bot->privMsg($msg);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement