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