mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 16:35:40 -04:00
Setup perl6 stuff
This commit is contained in:
parent
093af0cab8
commit
86d823af38
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,7 @@ sub new {
|
||||||
|
|
||||||
my @perl_aliases = map {("eval$_", "weval$_", "seval$_", "wseval$_", "sweval$_")} @versions;
|
my @perl_aliases = map {("eval$_", "weval$_", "seval$_", "wseval$_", "sweval$_")} @versions;
|
||||||
|
|
||||||
$self->{aliases} = [ qw/jseval jeval phpeval pleval perleval deparse swdeparse wsdeparse wdeparse sdeparse k20eval rbeval pyeval luaeval cpeval wscpeval swcpeval wcpeval scpeval/, @perl_aliases ];
|
$self->{aliases} = [ qw/jseval rkeval jeval phpeval pleval perleval deparse swdeparse wsdeparse wdeparse sdeparse k20eval rbeval pyeval luaeval cpeval wscpeval swcpeval wcpeval scpeval bleval/, @perl_aliases ];
|
||||||
$self->{dbh} = DBI->connect("dbi:SQLite:dbname=var/evallogs.db");
|
$self->{dbh} = DBI->connect("dbi:SQLite:dbname=var/evallogs.db");
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
|
@ -68,11 +68,15 @@ sub command {
|
||||||
'wscp' => 'cperl',
|
'wscp' => 'cperl',
|
||||||
'wcp' => 'cperl',
|
'wcp' => 'cperl',
|
||||||
'scp' => 'cperl',
|
'scp' => 'cperl',
|
||||||
|
'rk' => 'perl6',
|
||||||
|
'bl' => 'perl',
|
||||||
map {($_=>"perl$_", "w$_"=>"perl$_", "s$_" => "perl$_", "ws$_"=>"perl$_", "sw$_"=>"perl$_")} @versions
|
map {($_=>"perl$_", "w$_"=>"perl$_", "s$_" => "perl$_", "ws$_"=>"perl$_", "sw$_"=>"perl$_")} @versions
|
||||||
);
|
);
|
||||||
|
|
||||||
my $orig_type = $type;
|
my $orig_type = $type;
|
||||||
$type = $translations{$type};
|
$type = $translations{$type};
|
||||||
|
$type = "perl6" if ($orig_type =~ /^[ws]*$/i && $said->{channel} eq '#perl6');
|
||||||
|
|
||||||
if( not $type ) { $type = 'perl'; }
|
if( not $type ) { $type = 'perl'; }
|
||||||
warn "Found $type: $code";
|
warn "Found $type: $code";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue