Source code raw phps
<?php
require_once 'modules/class.Module.php';
class Module_Invite extends Module {
public static $status = parent::S_NOT_HANDLED;
public function update(Observed $bot, $raw, $type) {
if (($type & Bot::U_INPUT) != Bot::U_INPUT) {
return Bot::E_CONTINUE;
}
self::$status = parent::S_NOT_HANDLED;
$raw_pieces = explode(' ', $raw);
if ($raw_pieces[1] == 'INVITE') {
$bot->send('JOIN '.$raw_pieces[3]);
return Bot::E_BREAK;
}
return Bot::E_CONTINUE;
}
}
Comments
There is currently no comment here.