Skip to content

Commit

Permalink
Show the search url on help request.
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Aug 29, 2012
1 parent 452b559 commit f013dac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/cj.pl
Expand Up @@ -8,14 +8,16 @@

my $max-twitter-id;
my $base-url = "http://search.twitter.com/search.json?q=";
my $human-url = "https://twitter.com/#!/search/";
my $search-criteria = "%23perl6%20OR%20%23p6p5%20OR%20%23p5p6%20OR%20%22perl%206%22";

my $nick = "cjbot";
my $chan = "#perl6";

class Help {
multi method said($e where { $e.what ~~ /^ $nick ':' <.ws> [ '?' | 'help' | 'h'] /}) {
$e.msg: "Run by Coke, I relay tweets about Perl 6.";
$e.msg: "Run by Coke, I relay tweets about Perl 6 from " ~ $human-url ~
$search-criteria;
}
}

Expand Down

0 comments on commit f013dac

Please sign in to comment.