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": {