mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +01:00
Rename PBot::PBot to PBot::Core
This commit is contained in:
parent
237d124dc7
commit
fd21e38e2c
@ -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 <pragma78@gmail.com>
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
package PBot::PBot;
|
||||
package PBot::Core;
|
||||
|
||||
use PBot::Imports;
|
||||
use PBot::VERSION;
|
@ -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 {
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user