Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $bot_MinRank = $bot->getDB('bot_MinRank');
- if(!is_numeric($bot_MinRank)) $bot_MinRank = OWNER;
- function botCommand($packet,$message,$type) {
- global $bot,$bot_MinRank,$userCache;
- if(!$GLOBALS['bot']->minRank($packet['u'], $bot_MinRank)) return;
- $message = explode(' ',$message[1],2);
- //$message[1] = str_replace(' ',' ',trim($message[1]));
- // if(!key_exists(1,$message)||trim($message[1]=='')) $message[0] = 'asdasda';
- echo $message[0];
- switch(strtolower($message[0])) {
- case 'Tony':
- case 'name':
- $GLOBALS['bot']->botInfo['name'] = 'Tonybot';
- $GLOBALS['bot']->updateDB('name','Tonybot');
- $GLOBALS['bot']->connect($GLOBALS['bot']->econnection['ip'],$GLOBALS['bot']->connection['port']);
- $GLOBALS['bot']->join();
- break;
- <?
Add Comment
Please, Sign In to add comment