Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -262,15 +262,15 @@ 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
- Vars:
- 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
Expand All @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -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::<module name"> for help on their
Expand Down Expand Up @@ -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.

Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/chump.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<a href=\"".CGI::url()."?timestamp=$one\">$two</a>";
Expand Down
2 changes: 1 addition & 1 deletion lib/Bot/BasicBot/Pluggable/Module/ChanOp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ';
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Bot/BasicBot/Pluggable/Module/Infobot.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Bot/BasicBot/Pluggable/Module/Join.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ];
Expand Down
4 changes: 2 additions & 2 deletions lib/Bot/BasicBot/Pluggable/Module/Karma.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/Bot/BasicBot/Pluggable/Store/Memory.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/Test/Bot/BasicBot/Pluggable/Store.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
}

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions t/04karma.t
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand All @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion t/09app_configfile.t
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down