mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Redis stores booleans as strings
This commit is contained in:
@@ -129,7 +129,7 @@ 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');
|
||||||
if (!isWearingHat) await client.redis.db.set('hat', false);
|
if (!isWearingHat) await client.redis.db.set('hat', false);
|
||||||
client.avatarChanger.isWearingHat = isWearingHat || false;
|
client.avatarChanger.isWearingHat = isWearingHat === 'true' ? true : false;
|
||||||
client.avatarChanger.setInterval();
|
client.avatarChanger.setInterval();
|
||||||
|
|
||||||
// Set up disabled commands
|
// Set up disabled commands
|
||||||
|
|||||||
Reference in New Issue
Block a user