3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-25 21:39:27 +01:00

data/commands: add preserve_whitespace to wordle

Plugin/Wordle: remove debug message
This commit is contained in:
Pragmatic Software 2024-03-16 16:31:29 -07:00
parent bde06990fe
commit 348465b034
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
3 changed files with 11 additions and 3 deletions

11
data/commands vendored
View File

@ -1,6 +1,6 @@
{
"$metadata$" : {
"name" : "Commands",
"name" : "Command metadata",
"update_version" : 3503
},
"actiontrigger" : {
@ -529,6 +529,15 @@
"help" : "Queries Wolfram|Alpha Short Answers API",
"requires_cap" : 0
},
"wordle" : {
"help" : "Wordle game! Guess target word by submitting words for clues about which letters belong to the word!",
"preserve_whitespace" : "1",
"requires_cap" : null
},
"wordmorph" : {
"help" : "Word Morph game! Solve a path between two words by changing one letter at a time: love > shot = love > lose > lost > loot > soot > shot.",
"requires_cap" : null
},
"wttr" : {
"background-process" : "1",
"help" : "Provides weather information via wttr.in",

View File

@ -212,7 +212,6 @@ sub wordle($self, $context) {
}
sub load_words($self, $length, $wordlist = 'default') {
print "datadir: $self->{datadir}; wordlist = $wordlist; path = $wordlists{$wordlist}\n";
$wordlist = $self->{datadir} . $wordlists{$wordlist};
if (not -e $wordlist) {

View File

@ -25,7 +25,7 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4718,
BUILD_REVISION => 4719,
BUILD_DATE => "2024-03-16",
};