3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-10-15 15:37:22 +02:00

Plugin/Wordle: hard now shows whether hard mode was already enabled/disabled

This commit is contained in:
Pragmatic Software 2025-09-14 07:57:45 -07:00
parent 2011275f27
commit 091f6b101e
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 6 additions and 4 deletions

View File

@ -323,11 +323,13 @@ sub wordle($self, $context) {
} }
if (lc $args[0] eq 'on') { if (lc $args[0] eq 'on') {
my $mode = $self->{$channel}->{hard_mode} ? 'already' : 'now';
$self->{$channel}->{hard_mode} = 1; $self->{$channel}->{hard_mode} = 1;
return "Hard mode is now enabled."; return "Hard mode is $mode enabled.";
} else { } else {
my $mode = $self->{$channel}->{hard_mode} ? 'now' : 'already';
$self->{$channel}->{hard_mode} = 0; $self->{$channel}->{hard_mode} = 0;
return "Hard mode is now disabled."; return "Hard mode is $mode disabled.";
} }
} }

View File

@ -25,8 +25,8 @@ 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 => 4889, BUILD_REVISION => 4890,
BUILD_DATE => "2025-09-04", BUILD_DATE => "2025-09-14",
}; };
sub initialize {} sub initialize {}