3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +01:00

PBot: add config option to load only the logger (for internal use)

This commit is contained in:
Pragmatic Software 2019-07-23 08:51:36 -07:00
parent 230f9ca133
commit 3e6c560352

View File

@ -67,6 +67,8 @@ sub initialize {
$self->{version} = PBot::VERSION->new(pbot => $self, %conf);
$self->{logger}->log($self->{version}->version . "\n");
return if $conf{logger_only};
$self->{atexit} = PBot::Registerable->new(%conf);
$self->{timer} = PBot::Timer->new(timeout => 10, %conf);
$self->{commands} = PBot::Commands->new(pbot => $self, %conf);