summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm4
-rw-r--r--lib/IM/Engine/Plugin/Commands/Command/Help.pm4
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm b/lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm
index 6d9444a..564e2c4 100644
--- a/lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm
+++ b/lib/IM/Engine/Plugin/Commands/Command/Cmdlist.pm
@@ -1,6 +1,10 @@
package IM::Engine::Plugin::Commands::Command::Cmdlist;
use IM::Engine::Plugin::Commands::OO;
+has '+help' => (
+ default => 'Displays a list of commands available to the bot',
+);
+
sub init {
my $self = shift;
$self->is_active(0);
diff --git a/lib/IM/Engine/Plugin/Commands/Command/Help.pm b/lib/IM/Engine/Plugin/Commands/Command/Help.pm
index b28472a..f400157 100644
--- a/lib/IM/Engine/Plugin/Commands/Command/Help.pm
+++ b/lib/IM/Engine/Plugin/Commands/Command/Help.pm
@@ -1,6 +1,10 @@
package IM::Engine::Plugin::Commands::Command::Help;
use IM::Engine::Plugin::Commands::OO;
+has '+help' => (
+ default => 'Displays the help text for the given command',
+);
+
sub default {
my $self = shift;
my ($sender, $action) = @_;