diff --git a/lib/PBot/Plugin/Wordle.pm b/lib/PBot/Plugin/Wordle.pm index b1ba6f97..bbea50c8 100644 --- a/lib/PBot/Plugin/Wordle.pm +++ b/lib/PBot/Plugin/Wordle.pm @@ -283,7 +283,8 @@ sub wordle($self, $context) { $h->{gaveup_by} = $self->{games}->{$channel}->{$gameid}->{givenup_by}; } - return encode_json $h; + my $encoder = JSON::XS->new; + return $encoder->encode($h); } my $started = concise ago time - $self->{games}->{$channel}->{$gameid}->{start_time}; diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index 1b66728f..097fb87d 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,7 +25,7 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4914, + BUILD_REVISION => 4915, BUILD_DATE => "2025-10-21", };