diff options
Diffstat (limited to 'lib/Bot/Games/Game/Ghost.pm')
-rw-r--r-- | lib/Bot/Games/Game/Ghost.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bot/Games/Game/Ghost.pm b/lib/Bot/Games/Game/Ghost.pm index 52ad2d0..1d65683 100644 --- a/lib/Bot/Games/Game/Ghost.pm +++ b/lib/Bot/Games/Game/Ghost.pm @@ -7,11 +7,11 @@ has '+help' => ( default => "ghost help", ); -sub valid_move { +command valid_move => { my $self = shift; my ($move) = @_; return uc(substr($move, 0, -1)) eq $self->state; -} +}; __PACKAGE__->meta->make_immutable; no Bot::Games::OO; |