3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-08-17 18:17:21 +02:00

Plugin/Wordle: display hard-mode status in info

This commit is contained in:
Pragmatic Software 2025-07-19 08:55:21 -07:00
parent 8752349210
commit cff8d5fe70
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 4 additions and 3 deletions

View File

@ -158,7 +158,8 @@ sub wordle($self, $context) {
return NO_WORDLE;
}
my $result = "Current wordlist: $self->{$channel}->{wordlist} ($self->{$channel}->{length}); guesses: $self->{$channel}->{guess_count}; nonwords: $self->{$channel}->{nonword_count}; invalids: $self->{$channel}->{invalid_count}";
my $hard = $self->{$channel}->{hard_mode} ? 'on' : 'off';
my $result = "Current wordlist: $self->{$channel}->{wordlist} ($self->{$channel}->{length}); hard mode: $hard; guesses: $self->{$channel}->{guess_count}; nonwords: $self->{$channel}->{nonword_count}; invalids: $self->{$channel}->{invalid_count}";
if ($self->{$channel}->{correct}) {
my $solved_on = concise ago (time - $self->{$channel}->{solved_on});
@ -651,7 +652,7 @@ sub guess_wordle($self, $channel, $guess) {
my $invalids = $self->{$channel}->{invalid_count};
if ($nonwords || $invalids) {
$guesses .= '(';
$guesses .= '(plus ';
if ($nonwords) {
$guesses .= "$nonwords nonword";

View File

@ -25,7 +25,7 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4872,
BUILD_REVISION => 4873,
BUILD_DATE => "2025-07-19",
};