1

Implement !friday and !пятница commands

This commit is contained in:
eleksir
2020-11-21 15:38:01 +03:00
parent 48c07b0073
commit e448225a7b
8 changed files with 200 additions and 9 deletions

View File

@@ -17,6 +17,7 @@ use DB_File;
use conf qw(loadConf);
use lat qw(latAnswer);
use karma qw(karmaSet karmaGet);
use friday qw(friday);
use vars qw/$VERSION/;
@@ -277,6 +278,8 @@ sub command {
}
$reply = karmaGet ($chatid, $mytext);
} elsif (substr ($text, 1) eq 'friday' || substr ($text, 1) eq 'пятница') {
$reply = friday();
}
return $reply;