diff --git a/Changes b/Changes index b1fe352..66b4b1a 100644 --- a/Changes +++ b/Changes @@ -35,7 +35,7 @@ Revision history for Perl extension Bot::BasicBot::Pluggable. - Karma plugin - match nicks with \S+, not \w+, so nicks with hyphens in can have karma. GH PR-1 (bigpresh) - - Better-document how said() resturn value is handled, to avoid + - Better-document how said() return value is handled, to avoid potential confusion. GH PR-4 (bigpresh) @@ -125,7 +125,7 @@ are welcome! 0.86 2010/03/28 - Thanks to Jacob Helwig for the follwoing changes: + Thanks to Jacob Helwig for the following changes: Join: Check for auth after checking whether we should handle the message at @@ -139,7 +139,7 @@ are welcome! 0.85 2010/02/13 - This is the David-Precious-aka-bigpresh-release, who commited all + This is the David-Precious-aka-bigpresh-release, who committed all changes via Github. Thanks! - Join: Don't accept commands to join/part channels unless the @@ -206,9 +206,9 @@ are welcome! convenience, i selected it as we'll get it through moose in any case. - - ChanOp.pm: New core module to handle channel managment operations + - ChanOp.pm: New core module to handle channel management operations like oping, deoping, kicking and flood control. Please take a - closer look at this module, it definitly needs some testing! + closer look at this module, it definitely needs some testing! 0.83 2009/11/08 @@ -262,7 +262,7 @@ are welcome! - Seen: - now also reckognize joins and parts - Infobot: - - there's an user defineable http_timeout variabe that defaults to ten + - there's an user defineable http_timeout variable that defaults to ten seconds (fixes #3239) - settable limit on how many RSS items to return - just shorten entries when @entries is bigger than user_max_entries @@ -270,7 +270,7 @@ are welcome! - checking the definedness of $value so you can set a variable to 0 for example 0.76 2009/06/28 - - the store paramter to B:BB:P->new() can now also be a string + - the store parameter to B:BB:P->new() can now also be a string - new config interface for modules - search for keywords in Infobot.pm now returns the right number of factoids - when deleting factoids return the right answer @@ -285,7 +285,7 @@ are welcome! - added additional slash to fix #46928 (t/05infobot.t) - added t/03store_storable.t - closes #3258: instead of just overwriting the storable file it creates a tempfile and the move it - - Moved FakeBot to Test::Bot::BasicBot::Pluggable so that it's accessable for other Modules + - Moved FakeBot to Test::Bot::BasicBot::Pluggable so that it's accessible for other Modules - renamed infobot.t and title.t - only create a new table if it doesn't exists yet in Store::DBI @@ -307,7 +307,7 @@ are welcome! - Adjusted number of tests for Test::More - Karma: - Testsuide added - - Listing of explainations works again (settable by num_comments) + - Listing of explanations works again (settable by num_comments) - New variable random_reasons - Documentation updated @@ -394,7 +394,7 @@ You can chastise him for his ego at http://disobey.com/. - Loader now uses the standard store system. - Installed shell script to run B::B::P. - The Infobot module can now passively learn and passively answer questions - (without direct addressing) and you can set these options seperately. + (without direct addressing) and you can set these options separately. - The storage system is decently abstracted out, and has a default that does the same thing as the last one. - Gave the bot a default charset of utf8, because I'm a fan of utf8. @@ -411,7 +411,7 @@ You can chastise him for his ego at http://disobey.com/. clearly had no idea what I was smoking at the time. - Decent examples in examples/, and web page copies for people who use CPAN. - Removed Blog and Shout modules - Blog to be spun off - into a seperate module, Shout was just stupid. + into a separate module, Shout was just stupid. - Support for loading modules from 'Modules' in cwd as well as main lib path. - The bot is a lot less case-sensitive. Still sensitive for loading modules, but all the help, etc commands are more friendly. @@ -436,7 +436,7 @@ You can chastise him for his ego at http://disobey.com/. 0.05 2003/06/09 - Better documentation. - - Vars changable through better interface. + - Vars changeable through better interface. 0.04 2003/03/05 - Release coincides with Simon's release of Bot::Basicbot, version matched. diff --git a/README b/README index 6fd9eb3..463f2db 100644 --- a/README +++ b/README @@ -85,7 +85,7 @@ SYNOPSIS DESCRIPTION Bot::BasicBot::Pluggable started as Yet Another Infobot replacement, but now is a generalised framework for writing infobot-type bots that lets - you keep each specific function seperate. You can have seperate modules + you keep each specific function separate. You can have separate modules for factoid tracking, 'seen' status, karma, googling, etc. Included default modules are below. Use "perldoc Bot::BasicBot::Pluggable::Module:: for help on their @@ -124,7 +124,7 @@ METHODS reload($module) Reload the module $module - equivalent to unloading it (if it's already loaded) and reloading it. Will stomp the old module's - namespace - warnings are expected here. Not toally clean - if you're + namespace - warnings are expected here. Not totally clean - if you're experiencing odd bugs, restart the bot if possible. Works for minor bug fixes, etc. @@ -133,7 +133,7 @@ METHODS module($module) Returns the handler object for the loaded module $module. Used, - e.g., to get the 'Auth' hander to check if a given user is + e.g., to get the 'Auth' handler to check if a given user is authenticated. modules @@ -164,7 +164,7 @@ METHODS logconfig Returns the bot configuration file for logging. Please refer to Log::Log4perl::Config for the configurations files format. Setting - this to a differant file after calling init() has no effect. + this to a different file after calling init() has no effect. Returns or set diff --git a/examples/chump.cgi b/examples/chump.cgi index a5f26f4..d739d61 100755 --- a/examples/chump.cgi +++ b/examples/chump.cgi @@ -214,7 +214,7 @@ sub chump { # catch just numbers, guess if it's a blog_id or a timestamp # TODO if we ever have >10^8 blog entries, this will break. - # Hopefuly, time() will be larger by then, and I can adjust this + # Hopefully, time() will be larger by then, and I can adjust this # number. } elsif ($one =~ /^\d{8,}$/) { return "$two"; diff --git a/lib/Bot/BasicBot/Pluggable/Module/ChanOp.pm b/lib/Bot/BasicBot/Pluggable/Module/ChanOp.pm index 9492114..d1c9223 100644 --- a/lib/Bot/BasicBot/Pluggable/Module/ChanOp.pm +++ b/lib/Bot/BasicBot/Pluggable/Module/ChanOp.pm @@ -42,7 +42,7 @@ sub deop { shift->deop_op( '-o', @_ ); } sub help { return - 'ChanOp commands need to be adressed in private and after authentication.' + 'ChanOp commands need to be addressed in private and after authentication.' . '!op #foo | !deop #foo #bar | !kick #foo user You have been warned '; } diff --git a/lib/Bot/BasicBot/Pluggable/Module/Infobot.pm b/lib/Bot/BasicBot/Pluggable/Module/Infobot.pm index bee12dc..1de1d97 100644 --- a/lib/Bot/BasicBot/Pluggable/Module/Infobot.pm +++ b/lib/Bot/BasicBot/Pluggable/Module/Infobot.pm @@ -317,7 +317,7 @@ sub get_raw_factoids { } else { - # old-style tab seperated thing + # old-style tab separated thing my @strings; ( $is_are, @strings ) = split( /\t/, $raw ); for my $text (@strings) { diff --git a/lib/Bot/BasicBot/Pluggable/Module/Join.pm b/lib/Bot/BasicBot/Pluggable/Module/Join.pm index c7b84ea..06cd877 100644 --- a/lib/Bot/BasicBot/Pluggable/Module/Join.pm +++ b/lib/Bot/BasicBot/Pluggable/Module/Join.pm @@ -7,7 +7,7 @@ sub connected { my $self = shift; my $channels = $self->get("channels") || []; - ## If we are not a array reference, we are problably the old + ## If we are not a array reference, we are probably the old ## string format ... trying to convert if ( not ref($channels) && $channels =~ 'ARRAY' ) { $channels = [ split( /\s+/, $channels ) ]; diff --git a/lib/Bot/BasicBot/Pluggable/Module/Karma.pm b/lib/Bot/BasicBot/Pluggable/Module/Karma.pm index 8ce8421..08ec0e6 100644 --- a/lib/Bot/BasicBot/Pluggable/Module/Karma.pm +++ b/lib/Bot/BasicBot/Pluggable/Module/Karma.pm @@ -113,7 +113,7 @@ sub maybe_add_giver { } else { - # just returning the reason string of the reason hash referenes + # just returning the reason string of the reason hash references return map { $_->{reason} } @reasons; } } @@ -139,7 +139,7 @@ sub get_karma { } $karma = $positive - $negative; - # The subroutine references return differant values when called. + # The subroutine references return different values when called. # If they are called in scalar context, they return the overall # positive or negative karma, but when called in list context you # get an array of hash references with all non empty reasons back. diff --git a/lib/Bot/BasicBot/Pluggable/Store/Memory.pm b/lib/Bot/BasicBot/Pluggable/Store/Memory.pm index 8db2b56..8d416a2 100644 --- a/lib/Bot/BasicBot/Pluggable/Store/Memory.pm +++ b/lib/Bot/BasicBot/Pluggable/Store/Memory.pm @@ -27,7 +27,7 @@ this is mainly for testing and storing data for a short time. This module is just a bare bone subclass of Bot::BasicBot::Pluggable::Store and does not implement any methods of its own. In a perfect world Bot::BasicBot::Pluggable::Store would just -be a abstract base class, but it was implemented as normale in-memory +be a abstract base class, but it was implemented as normal in-memory storage class. Due to Bot::BasicBot::Pluggable object creation you can either specify a already created storage object or a string that is simply appended to "Bot::BasicBot::Pluggable::Store::". So if you just diff --git a/lib/Test/Bot/BasicBot/Pluggable/Store.pm b/lib/Test/Bot/BasicBot/Pluggable/Store.pm index cad72c3..3838d78 100644 --- a/lib/Test/Bot/BasicBot/Pluggable/Store.pm +++ b/lib/Test/Bot/BasicBot/Pluggable/Store.pm @@ -30,7 +30,7 @@ sub store_ok { 1, "storage namespace has one key matching ^user" ); $test->ok( $store->unset( "test", "foo" ), "unset key" ); $test->ok( !$store->get( 'test', 'foo' ), - "unset has worked, no key namned foo left" ); + "unset has worked, no key named foo left" ); $test->is_eq( $store->namespaces(), 'test', "return namespaces" ); } @@ -57,7 +57,7 @@ basic store_ok. =head2 store_ok -This functions justs tests some basic behaviour every storage module +This functions just tests some basic behaviour every storage module should provide, like store creation, get and set. You can't use it directly with Test::More as we hardcode the number of tests to nine in the moment. (Man, i'm so excited about nested tap streams in the diff --git a/t/04karma.t b/t/04karma.t index 54038c9..69dad2c 100644 --- a/t/04karma.t +++ b/t/04karma.t @@ -57,7 +57,7 @@ is( $bot->tell_indirect( 'test_bot--', 'alice' ), 'Karma for test_bot is now 0 (pffft)', 'complaining about karming down bot' ); $bot->tell_indirect('test_user++'); -test_karma( 'test_user', 0, 'user is not allowed to use positiv selfkarma' ); +test_karma( 'test_user', 0, 'user is not allowed to use positive selfkarma' ); $bot->tell_indirect('test_user--'); test_karma( 'test_user', 0, 'user is not allowed to use negative selfkarma' ); @@ -68,7 +68,7 @@ $bot->tell_indirect('test_user++'); test_karma( 'test_user', 1, 'user is allowed to use positive selfkarma' ); $bot->tell_indirect('test_user--'); -test_karma( 'test_user', 0, 'user is allowed to use negativ selfkarma' ); +test_karma( 'test_user', 0, 'user is allowed to use negative selfkarma' ); is( $karma->help(), diff --git a/t/09app_configfile.t b/t/09app_configfile.t index 869ad47..bd32712 100644 --- a/t/09app_configfile.t +++ b/t/09app_configfile.t @@ -25,7 +25,7 @@ isa_ok( is_deeply( $app->module, [ 'Loader', 'Karma', 'Auth' ], - 'setting modules via configfile and implcit loading of modules via settings' + 'setting modules via configfile and implicit loading of modules via settings' ); is_deeply(