Skip to content

Commit 1c457cf

Browse files
author
Matt Dees
committed
Update spellcheck plugin
1 parent feafc7b commit 1c457cf

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/GeckBot/Plugins/SpellCheck.pm

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,10 @@ sub triggers {
1010
return {
1111
'spellcheck' => \&check,
1212
'sc' => \&check,
13-
'wordsuggest' => \&suggest,
13+
'wordsuggest' => \&check,
1414
};
1515
}
1616

17-
sub suggest {
18-
my ( $self, $said_hr ) = @_;
19-
my @suggestions = $speller->suggest( $said_hr->{'body'} );
20-
return "suggestions: " . join( ' ', @suggestions );
21-
}
22-
2317
sub check {
2418
my ( $self, $said_hr ) = @_;
2519
my $word = $said_hr->{'body'};

0 commit comments

Comments
 (0)