3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-10-22 02:57:27 +02:00

Plugin/Wordle: fix Unicode in wordle info --json

This commit is contained in:
Pragmatic Software 2025-10-21 12:41:10 -07:00
parent 828412e931
commit fce337e695
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 3 additions and 2 deletions

View File

@ -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};

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 => 4914,
BUILD_REVISION => 4915,
BUILD_DATE => "2025-10-21",
};