Braindir with brains themselves moved to aleesa-craniac application

This commit is contained in:
eleksir
2022-01-28 16:27:28 +03:00
parent 6554879b19
commit 00a82dd2cd

View File

@@ -475,14 +475,6 @@ sub init {
# Don't forget to update global ref to our telegram context # Don't forget to update global ref to our telegram context
$main::TGM = $self; $main::TGM = $self;
my $braindir = $c->{telegrambot}->{braindir};
unless (-d $braindir) {
make_path ($braindir, 0, 0755) or do { ## no critic (ValuesAndExpressions::ProhibitLeadingZeros)
$log->fatal ("[FATAL] Unable to create $braindir: $OS_ERROR");
exit 1;
};
}
$self->add_listener (\&__on_msg); $self->add_listener (\&__on_msg);
$self->add_repeating_task (900, \&__cron); $self->add_repeating_task (900, \&__cron);