mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-02 18:19:33 +01:00
22 lines
501 B
Perl
22 lines
501 B
Perl
# File: Refresher.pm
|
|
#
|
|
# Purpose: Refreshes/reloads module subroutines. Does not refresh/reload
|
|
# module member data, only subroutines. TODO: reinitialize modules in order
|
|
# to refresh member data too.
|
|
|
|
# SPDX-FileCopyrightText: 2015-2023 Pragmatic Software <pragma78@gmail.com>
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
package PBot::Core::Refresher;
|
|
use parent 'PBot::Core::Class';
|
|
|
|
use PBot::Imports;
|
|
|
|
use Module::Refresh;
|
|
|
|
sub initialize($self, %conf) {
|
|
$self->{refresher} = Module::Refresh->new;
|
|
}
|
|
|
|
1;
|