Example #1
0
 public function __construct($token, $bot_id)
 {
     parent::__construct($token, $bot_id);
     parent::registerHandler(EventBot::MEMBER_ADDED, array($this, "checkForAutoKick"));
     parent::registerHandler(EventBot::MEMBER_JOINED, array($this, "checkForAutoKick"));
     parent::registerHandler(EventBot::MEMBER_REJOINED, array($this, "checkForAutoKick"));
 }
Example #2
0
 public function __construct($token, $bot_id)
 {
     parent::__construct($token, $bot_id);
     $this->registerCommand("help", array($this, "listCommands"), "Show available commands");
     $this->registerCommand("ignore", array($this, "ignoreUser"), "Ignore the specified user");
     $this->registerCommand("ack", array($this, "acknowledgeUser"), "Acknowledge the specified user");
     $this->registerCommand("info", array($this, "info"), "Show info");
 }
Example #3
0
 public function __construct($token, $bot_id)
 {
     parent::__construct($token, $bot_id);
     parent::registerHandler(EventBot::MEMBER_ADDED, array($this, "onMemberAdded"));
 }