From 2fb15a15711bc067325ccd32e061d36d2cf78d76 Mon Sep 17 00:00:00 2001 From: lilyissillyyy Date: Wed, 25 Feb 2026 17:54:59 -0500 Subject: [PATCH] Set isWearingHat to false by default --- Xiao.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Xiao.js b/Xiao.js index 23e7c180..f0cd0506 100644 --- a/Xiao.js +++ b/Xiao.js @@ -128,7 +128,8 @@ client.on('clientReady', async () => { // Interval to check for holidays and change the avatar if needed const isWearingHat = await client.redis.db.get('hat'); - client.avatarChanger.isWearingHat = isWearingHat; + if (!isWearingHat) await client.redis.db.set('hat', false); + client.avatarChanger.isWearingHat = isWearingHat || false; client.avatarChanger.setInterval(); // Set up disabled commands diff --git a/package.json b/package.json index ad3bd83b..9e484d2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "160.0.0", + "version": "160.0.1", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {