mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 10:45:40 -04:00
Some debugging and fix the Foo namespace
This commit is contained in:
parent
c756fea56d
commit
9364e7f05d
3 changed files with 2 additions and 1 deletions
BIN
lib/Bot/BB3/.PluginManager.pm.swp
Normal file
BIN
lib/Bot/BB3/.PluginManager.pm.swp
Normal file
Binary file not shown.
|
@ -357,6 +357,7 @@ sub _parse_for_commands {
|
|||
my( $self, $said, $commands ) = @_;
|
||||
|
||||
my $command_re = join '|', map "\Q$_", keys %$commands;
|
||||
warn "$command_re";
|
||||
$command_re = qr/$command_re/; #TODO move to _pre_build_chains and switch to Trie
|
||||
|
||||
if( (!$said->{addressed} && $said->{body} =~ s/^\s*($command_re)[:,;]\s*(.+)/$2/)
|
||||
|
|
|
@ -45,7 +45,7 @@ require JSON;
|
|||
|
||||
require Moose;
|
||||
require MooseX::Declare;
|
||||
eval "use MooseX::Declare; class Foo { has dongs => ( is => ro, isa => 'Int' ); };";
|
||||
eval "use MooseX::Declare; class LoadAllMooseXDeclare { has dongs => ( is => ro, isa => 'Int' ); };";
|
||||
require "utf8_heavy.pl";
|
||||
use arybase;
|
||||
use Errno;
|
||||
|
|
Loading…
Add table
Reference in a new issue