From 839b63a927e8b9f64178e15082bdf027eee93bea Mon Sep 17 00:00:00 2001 From: eleksir Date: Sun, 17 Apr 2022 15:46:28 +0300 Subject: [PATCH] Fix typo in bot_nick parameter --- aleesa-cli | 10 +++++----- config_sample.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/aleesa-cli b/aleesa-cli index ae1a323..e654d60 100755 --- a/aleesa-cli +++ b/aleesa-cli @@ -79,10 +79,10 @@ $redismsg->{chatid} = 'cli'; $redismsg->{mode} = 'private'; $redismsg->{misc}->{answer} = 1; -if (defined $c->{botnick}) { - $redismsg->{misc}->{botnick} = "$c->{botnick}"; +if (defined $c->{bot_nick}) { + $redismsg->{misc}->{bot_nick} = "$c->{bot_nick}"; } else { - $redismsg->{misc}->{botnick} = 'aleesa'; + $redismsg->{misc}->{bot_nick} = 'aleesa'; } if (defined $c->{csign}) { @@ -317,7 +317,7 @@ my $parse_message = sub { warn "[recieved]: $json\n"; } - printf "[%s]: %s\n", $c->{botnick}, $msg->{message} unless ($monitor); + printf "[%s]: %s\n", $c->{bot_nick}, $msg->{message} unless ($monitor); return; }; @@ -378,7 +378,7 @@ register_input_callback (); # Запустим Event Loop warn "[debug]: Starting event loop\n" if $mydebug; print "\nTo show help just enter help command\n"; -print "Ready to begin conversation with $c->{botnick}\n\n"; +print "Ready to begin conversation with $c->{bot_nick}\n\n"; do { Mojo::IOLoop->start } until Mojo::IOLoop->is_running; ## no critic (Modules::RequireExplicitInclusion) exit 0; diff --git a/config_sample.json b/config_sample.json index 728e41a..7b30161 100644 --- a/config_sample.json +++ b/config_sample.json @@ -9,5 +9,5 @@ "csign" : "!", # bot nick name - "botnick" : "aleesa" + "bot_nick" : "aleesa" }