mirror of
https://github.com/pragma-/pbot.git
synced 2025-09-16 09:17:29 +02:00
Plugin/Wordle: hard
now shows whether hard mode was already enabled/disabled
This commit is contained in:
parent
2011275f27
commit
091f6b101e
@ -323,11 +323,13 @@ sub wordle($self, $context) {
|
||||
}
|
||||
|
||||
if (lc $args[0] eq 'on') {
|
||||
my $mode = $self->{$channel}->{hard_mode} ? 'already' : 'now';
|
||||
$self->{$channel}->{hard_mode} = 1;
|
||||
return "Hard mode is now enabled.";
|
||||
return "Hard mode is $mode enabled.";
|
||||
} else {
|
||||
my $mode = $self->{$channel}->{hard_mode} ? 'now' : 'already';
|
||||
$self->{$channel}->{hard_mode} = 0;
|
||||
return "Hard mode is now disabled.";
|
||||
return "Hard mode is $mode disabled.";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,8 +25,8 @@ use PBot::Imports;
|
||||
# These are set by the /misc/update_version script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 4889,
|
||||
BUILD_DATE => "2025-09-04",
|
||||
BUILD_REVISION => 4890,
|
||||
BUILD_DATE => "2025-09-14",
|
||||
};
|
||||
|
||||
sub initialize {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user