From 00a82dd2cd6c754734db7440823ff5f7d2b11c31 Mon Sep 17 00:00:00 2001 From: eleksir Date: Fri, 28 Jan 2022 16:27:28 +0300 Subject: [PATCH] Braindir with brains themselves moved to aleesa-craniac application --- lib/TelegramBot.pm | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/TelegramBot.pm b/lib/TelegramBot.pm index fa0a788..496803e 100644 --- a/lib/TelegramBot.pm +++ b/lib/TelegramBot.pm @@ -475,14 +475,6 @@ sub init { # Don't forget to update global ref to our telegram context $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_repeating_task (900, \&__cron);