From 1d52335360a671338ee64f582d36fb2cdca77b7c Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Wed, 25 Feb 2026 18:00:04 -0500 Subject: [PATCH] Redis stores booleans as strings --- Xiao.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xiao.js b/Xiao.js index f0cd0506..c42373c0 100644 --- a/Xiao.js +++ b/Xiao.js @@ -129,7 +129,7 @@ client.on('clientReady', async () => { // Interval to check for holidays and change the avatar if needed const isWearingHat = await client.redis.db.get('hat'); if (!isWearingHat) await client.redis.db.set('hat', false); - client.avatarChanger.isWearingHat = isWearingHat || false; + client.avatarChanger.isWearingHat = isWearingHat === 'true' ? true : false; client.avatarChanger.setInterval(); // Set up disabled commands