Redis stores booleans as strings

This commit is contained in:
lilyissillyyy
2026-02-25 18:00:04 -05:00
parent 2fb15a1571
commit 1d52335360
+1 -1
View File
@@ -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