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:
parent
8752349210
commit
cff8d5fe70
@ -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";
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user