3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-14 07:59:33 +01:00
pbot/lib/PBot/Core/Handlers.pm
2023-04-13 21:04:12 -07:00

24 lines
533 B
Perl

# File: Handlers.pm
#
# Purpose: Loads handlers in the Handlers directory.
# SPDX-FileCopyrightText: 2001-2023 Pragmatic Software <pragma78@gmail.com>
# SPDX-License-Identifier: MIT
package PBot::Core::Handlers;
use parent 'PBot::Core::Class';
use PBot::Imports;
use PBot::Core::Utils::LoadModules qw/load_modules/;
sub initialize($self, %conf) {
$self->load_handlers(%conf);
}
sub load_handlers($self, %conf) {
$self->{pbot}->{logger}->log("Loading handlers:\n");
load_modules($self, 'PBot::Core::Handlers');
}
1;