summaryrefslogtreecommitdiffstats
path: root/lib/Bot/Games/Game/Xghost.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bot/Games/Game/Xghost.pm')
-rw-r--r--lib/Bot/Games/Game/Xghost.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bot/Games/Game/Xghost.pm b/lib/Bot/Games/Game/Xghost.pm
index 8aeabb2..8f9092d 100644
--- a/lib/Bot/Games/Game/Xghost.pm
+++ b/lib/Bot/Games/Game/Xghost.pm
@@ -8,12 +8,12 @@ has '+help' => (
default => "xghost help",
);
-sub valid_move {
+command valid_move => {
my $self = shift;
my ($move) = @_;
return is_substring($self->state, uc($move))
&& length($self->state) + 1 == length($move);
-}
+};
__PACKAGE__->meta->make_immutable;
no Bot::Games::OO;