mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-28 23:09:39 +01:00
Plugin/Wordle: preserve correct letters in list; add american-uncommon
This commit is contained in:
parent
c62b6b9a75
commit
c6e1da1706
365656
data/wordle/american-uncommon
Normal file
365656
data/wordle/american-uncommon
Normal file
File diff suppressed because it is too large
Load Diff
@ -53,6 +53,12 @@ my %wordlists = (
|
|||||||
prompt => 'Guess the American English (Insanely Huge List) word!',
|
prompt => 'Guess the American English (Insanely Huge List) word!',
|
||||||
list => '/wordle/american-insane',
|
list => '/wordle/american-insane',
|
||||||
},
|
},
|
||||||
|
uncommon => {
|
||||||
|
name => 'American English (Uncommon)',
|
||||||
|
prompt => 'Guess the American English (Uncommon) word!',
|
||||||
|
list => '/wordle/american-uncommon',
|
||||||
|
supp => 'insane',
|
||||||
|
},
|
||||||
british => {
|
british => {
|
||||||
name => 'British English',
|
name => 'British English',
|
||||||
prompt => 'Guess the British English word!',
|
prompt => 'Guess the British English word!',
|
||||||
@ -443,7 +449,9 @@ sub guess_wordle($self, $channel, $guess) {
|
|||||||
|
|
||||||
if ($present) {
|
if ($present) {
|
||||||
$result .= "$color{present} $guess[$i]$color{present_a}?";
|
$result .= "$color{present} $guess[$i]$color{present_a}?";
|
||||||
|
if ($self->{$channel}->{letters}->{$guess[$i]} != LETTER_CORRECT) {
|
||||||
$self->{$channel}->{letters}->{$guess[$i]} = LETTER_PRESENT;
|
$self->{$channel}->{letters}->{$guess[$i]} = LETTER_PRESENT;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$result .= "$color{invalid} $guess[$i] ";
|
$result .= "$color{invalid} $guess[$i] ";
|
||||||
|
|
||||||
|
@ -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 => 4753,
|
BUILD_REVISION => 4754,
|
||||||
BUILD_DATE => "2024-05-09",
|
BUILD_DATE => "2024-05-16",
|
||||||
};
|
};
|
||||||
|
|
||||||
sub initialize {}
|
sub initialize {}
|
||||||
|
Loading…
Reference in New Issue
Block a user