Set isWearingHat to false by default

This commit is contained in:
lilyissillyyy
2026-02-25 17:54:59 -05:00
parent 8988c14579
commit 2fb15a1571
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -128,7 +128,8 @@ client.on('clientReady', async () => {
// Interval to check for holidays and change the avatar if needed // Interval to check for holidays and change the avatar if needed
const isWearingHat = await client.redis.db.get('hat'); 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(); client.avatarChanger.setInterval();
// Set up disabled commands // Set up disabled commands
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiao", "name": "xiao",
"version": "160.0.0", "version": "160.0.1",
"description": "Your personal server companion.", "description": "Your personal server companion.",
"main": "Xiao.js", "main": "Xiao.js",
"scripts": { "scripts": {