3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-02 18:19:33 +01:00

Rename PBot::PBot to PBot::Core

This commit is contained in:
Pragmatic Software 2021-07-20 23:20:24 -07:00
parent 237d124dc7
commit fd21e38e2c
3 changed files with 6 additions and 12 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -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",