Advertisement
Eeems

bot.php

May 21st, 2011
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. #!/usr/bin/php
  2. <?php
  3. # config
  4.     $config[0]['server'] = 'withg.us.to';
  5.     $config[0]['port'] = 6667;
  6.     $config[0]['nick'] = 'EeeZor';
  7.     $config[0]['name'] = 'EeeZorBot';
  8.     $config[0]['channels'] = array("#IRP");
  9. # defines
  10.     global $MODULES;
  11.     global $USERS;
  12.     $MODULES = array();
  13.     $USERS = array();
  14. # settings
  15.     set_time_limit(0);
  16.     ini_set('display_errors', 'on');
  17. # includes
  18.     include('php/functions.php');
  19.     include('classes/user.class.php');
  20.     include('classes/channel.class.php');
  21.     include('classes/server.class.php');
  22.     include('classes/irc.class.php');
  23. # code
  24.     if(!is_file('users.ini')){
  25.         $f = fopen('users.ini','w');
  26.         fwrite($f,'');
  27.         fclose($f);
  28.     }
  29.     set_ini_array(parse_ini_file('users.ini',true),'USERS');
  30.     loaddir('modules');
  31.     flushActive();
  32.     new irc($config);
  33.     flushActive();
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement