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;
|
# PBot was started around 2004, 2005. It has been lovingly maintained;
|
||||||
# however, it does use the ancient but simple Net::IRC package (if it
|
# 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-FileCopyrightText: 2021 Pragmatic Software <pragma78@gmail.com>
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
package PBot::PBot;
|
package PBot::Core;
|
||||||
|
|
||||||
use PBot::Imports;
|
use PBot::Imports;
|
||||||
use PBot::VERSION;
|
use PBot::VERSION;
|
@ -12,13 +12,10 @@ use parent 'PBot::Core::Class';
|
|||||||
use PBot::Imports;
|
use PBot::Imports;
|
||||||
|
|
||||||
use Exporter qw/import/;
|
use Exporter qw/import/;
|
||||||
|
|
||||||
our @EXPORT = ();
|
our @EXPORT = ();
|
||||||
|
|
||||||
our %EXPORT_TAGS = (
|
our %EXPORT_TAGS = (
|
||||||
'all' => [qw/BUILD_NAME BUILD_REVISION BUILD_DATE/],
|
'all' => [qw/BUILD_NAME BUILD_REVISION BUILD_DATE/],
|
||||||
);
|
);
|
||||||
|
|
||||||
our @EXPORT_OK = (
|
our @EXPORT_OK = (
|
||||||
@{ $EXPORT_TAGS{all} },
|
@{ $EXPORT_TAGS{all} },
|
||||||
);
|
);
|
||||||
@ -31,10 +28,7 @@ use constant {
|
|||||||
};
|
};
|
||||||
|
|
||||||
sub initialize {
|
sub initialize {
|
||||||
my ($self, %conf) = @_;
|
# nothing to do here
|
||||||
|
|
||||||
# initialize last_check version data
|
|
||||||
$self->{last_check} = {timestamp => 0, version => BUILD_REVISION, date => BUILD_DATE};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub version {
|
sub version {
|
||||||
|
@ -11,9 +11,9 @@ use FindBin qw($RealBin);
|
|||||||
use lib "$RealBin/../lib";
|
use lib "$RealBin/../lib";
|
||||||
use lib "$ENV{HOME}/.pbot";
|
use lib "$ENV{HOME}/.pbot";
|
||||||
|
|
||||||
use PBot::PBot;
|
use PBot::Core;
|
||||||
|
|
||||||
PBot::PBot->new(
|
PBot::Core->new(
|
||||||
data_dir => "$RealBin/../data",
|
data_dir => "$RealBin/../data",
|
||||||
module_dir => "$RealBin/../modules",
|
module_dir => "$RealBin/../modules",
|
||||||
update_dir => "$RealBin/../updates",
|
update_dir => "$RealBin/../updates",
|
||||||
|
Loading…
Reference in New Issue
Block a user