mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 16:25:41 -04:00
Add explicit search capability
This commit is contained in:
parent
faec5dcd5d
commit
dbc01321d9
1 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,8 @@ sub {
|
|||
|
||||
# TODO make this also support getting more than one tweet.
|
||||
|
||||
if ($said->{body} =~ /^\s*(#\S+)/) {
|
||||
if ($said->{body} =~ /^\s*(#\S+)/ ||
|
||||
$said->{body} =~ /^\s*search\s+(.*)/) {
|
||||
# hash tags. omg.
|
||||
my $search = $client->search($1);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue