Guest User

Untitled

a guest
Sep 23rd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1. <?php
  2. $bot_MinRank = $bot->getDB('bot_MinRank');
  3. if(!is_numeric($bot_MinRank)) $bot_MinRank = OWNER;
  4. function botCommand($packet,$message,$type) {
  5.     global $bot,$bot_MinRank,$userCache;
  6.     if(!$GLOBALS['bot']->minRank($packet['u'], $bot_MinRank)) return;
  7.     $message = explode(' ',$message[1],2);
  8.     //$message[1] = str_replace(' ',' ',trim($message[1]));
  9.    // if(!key_exists(1,$message)||trim($message[1]=='')) $message[0] = 'asdasda';
  10.     echo $message[0];
  11.     switch(strtolower($message[0])) {
  12.         case 'Tony':
  13.             case 'name':
  14.             $GLOBALS['bot']->botInfo['name'] = 'Tonybot';
  15.             $GLOBALS['bot']->updateDB('name','Tonybot');
  16.             $GLOBALS['bot']->connect($GLOBALS['bot']->econnection['ip'],$GLOBALS['bot']->connection['port']);
  17.             $GLOBALS['bot']->join();
  18.         break;
  19. <?
Add Comment
Please, Sign In to add comment