public static function bind($bot, $type, $method, $filter = NULL) {
if(is_a($bot, "Bot") && method_exists($bot, $method)) {
if(array_key_exists($type, self::$bindings)) {
foreach(self::$bindings[$type] as $binding) {
if($binding->match($bot, $method, $filter))
public static function bind($bot, $type, $method, $filter = NULL) {
if(is_a($bot, "Bot") && method_exists($bot, $method)) {
if(array_key_exists($type, self::$bindings)) {
foreach(self::$bindings[$type] as $binding) {
if($binding->match($bot, $method, $filter))