diff --git a/lib/PBot/PBot.pm b/lib/PBot/Core.pm similarity index 99% rename from lib/PBot/PBot.pm rename to lib/PBot/Core.pm index 659a8eaa..fd9a3e72 100644 --- a/lib/PBot/PBot.pm +++ b/lib/PBot/Core.pm @@ -1,6 +1,6 @@ -# File: PBot.pm +# File: Core.pm # -# Purpose: IRC Bot +# Purpose: PBot IRC Bot Core # # PBot was started around 2004, 2005. It has been lovingly maintained; # however, it does use the ancient but simple Net::IRC package (if it @@ -16,7 +16,7 @@ # SPDX-FileCopyrightText: 2021 Pragmatic Software # SPDX-License-Identifier: MIT -package PBot::PBot; +package PBot::Core; use PBot::Imports; use PBot::VERSION; diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 63e9bfbe..aabc031a 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -12,13 +12,10 @@ use parent 'PBot::Core::Class'; use PBot::Imports; use Exporter qw/import/; - our @EXPORT = (); - our %EXPORT_TAGS = ( 'all' => [qw/BUILD_NAME BUILD_REVISION BUILD_DATE/], ); - our @EXPORT_OK = ( @{ $EXPORT_TAGS{all} }, ); @@ -31,10 +28,7 @@ use constant { }; sub initialize { - my ($self, %conf) = @_; - - # initialize last_check version data - $self->{last_check} = {timestamp => 0, version => BUILD_REVISION, date => BUILD_DATE}; + # nothing to do here } sub version { diff --git a/script/pbot b/script/pbot index 4f13902f..b223ffb5 100755 --- a/script/pbot +++ b/script/pbot @@ -11,9 +11,9 @@ use FindBin qw($RealBin); use lib "$RealBin/../lib"; use lib "$ENV{HOME}/.pbot"; -use PBot::PBot; +use PBot::Core; -PBot::PBot->new( +PBot::Core->new( data_dir => "$RealBin/../data", module_dir => "$RealBin/../modules", update_dir => "$RealBin/../updates",