Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $bot = new PHPDClib();
- $bot->connect(array(
- 'host' => 'localhost',
- 'port' => '411',
- 'bind_ip' => '0.0.0.0',
- 'nickname' => 'PHPDClib',
- 'password' => '',
- 'description' => 'DC++ Library sf.net/projects/phpdclibrary',
- 'email' => '',
- 'connection' => 'LAN(T1)',
- 'tag' => '<PHPDCLib++ V:1.1.3a,M:P,H:1/0/0,S:10>',
- 'sharesize' => '0',
- 'userlist' => 0,
- 'debug' => 0,
- 'frequency_low' => 300000,
- 'frequency_high' => 1000,
- 'read_buffer_size' => 256000,
- 'func_chat_public' => 'chat_public',
- 'func_chat_private' => 'chat_private',
- 'func_event_handler' => 'event_handler'
- ));
- /**
- * Callback function to receive public messages.
- *
- * @access public
- * @param string $from
- * @param string $msg
- * @param object $o
- * @example void chat_public(string $from, string $msg, object $o)
- */
- function chat_public($from, $msg, $o)
- {
- }
- /**
- * Callback function to receive private messages.
- *
- * @access public
- * @param string $from
- * @param string $msg
- * @param object $o
- * @example void chat_public(string $from, string $msg, object $o)
- */
- function chat_private($from, $msg, $o)
- {
- }
- /**
- * Callback function is triggered when certain events occur.
- *
- * @access public
- * @param string $event
- * @param object $o
- * @example void event_handler(string $event, object $o)
- */
- function event_handler($event, $o)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment