Help for this page

Select Code to Download


  1. or download this
    sub bot_command {
        my $command = shift(@_);
    ...
        ....
        default($command);
    }
    
  2. or download this
    sub bot_command {
        local $_ = shift;
    ...
        /msg/  ? &msg_user     :
                 &default
    }
    
  3. or download this
      sub join_channel { ... }
      sub part_channel { ... }
    ...
           ? &{$dispatch{$cmd}}
           : &default
      }