mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 03:49:29 +01:00
Update WordMorph
- Ensure length of each step is correct - Add WordMorph to plugin_autoload
This commit is contained in:
parent
c071bf7604
commit
bc02854d15
1
data/plugin_autoload
vendored
1
data/plugin_autoload
vendored
@ -20,4 +20,5 @@ TypoSub
|
||||
UrlTitles
|
||||
Weather
|
||||
Wolfram
|
||||
WordMorph
|
||||
Wttr
|
||||
|
@ -212,7 +212,7 @@ sub wordmorph {
|
||||
return "I do not know this word `$word`.";
|
||||
}
|
||||
|
||||
if (distance($word, $last_word) != 1) {
|
||||
if (distance($word, $last_word) != 1 || length($word) != length($last_word)) {
|
||||
return "Wrong. `$word` does not follow from `$last_word`.";
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ use PBot::Imports;
|
||||
# These are set by the /misc/update_version script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 4576,
|
||||
BUILD_REVISION => 4577,
|
||||
BUILD_DATE => "2022-08-26",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user