3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01:00

Plugins/Plang: add documentation link to usage message

This commit is contained in:
Pragmatic Software 2020-07-23 12:29:24 -07:00
parent 7a1f79ce0a
commit 696781176e

View File

@ -75,7 +75,7 @@ sub unload {
sub cmd_plang {
my ($self, $context) = @_;
my $usage = "Usage: plang <code>; see https://github.com/pragma-/Plang";
my $usage = "Usage: plang <code>; see https://github.com/pragma-/Plang and https://github.com/pragma-/pbot/blob/master/doc/Plugins/Plang.md";
return $usage if not length $context->{arguments};
$self->{output} = ""; # collect output of the embedded Plang program
@ -91,7 +91,7 @@ sub cmd_plang {
sub cmd_plangrepl {
my ($self, $context) = @_;
my $usage = "Usage: plangrepl <code>; see https://github.com/pragma-/Plang";
my $usage = "Usage: plangrepl <code>; see https://github.com/pragma-/Plang and https://github.com/pragma-/pbot/blob/master/doc/Plugins/Plang.md";
return $usage if not length $context->{arguments};
$self->{output} = ""; # collect output of the embedded Plang program