mirror of
https://github.com/pragma-/pbot.git
synced 2025-10-14 23:17:22 +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') {
|
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.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user