mirror of
https://github.com/pragma-/pbot.git
synced 2025-10-14 06:57:25 +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;
|
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}) {
|
if ($self->{$channel}->{correct}) {
|
||||||
my $solved_on = concise ago (time - $self->{$channel}->{solved_on});
|
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};
|
my $invalids = $self->{$channel}->{invalid_count};
|
||||||
|
|
||||||
if ($nonwords || $invalids) {
|
if ($nonwords || $invalids) {
|
||||||
$guesses .= '(';
|
$guesses .= '(plus ';
|
||||||
|
|
||||||
if ($nonwords) {
|
if ($nonwords) {
|
||||||
$guesses .= "$nonwords nonword";
|
$guesses .= "$nonwords nonword";
|
||||||
|
@ -25,7 +25,7 @@ use PBot::Imports;
|
|||||||
# These are set by the /misc/update_version script
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4872,
|
BUILD_REVISION => 4873,
|
||||||
BUILD_DATE => "2025-07-19",
|
BUILD_DATE => "2025-07-19",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user