mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Set isWearingHat to false by default
This commit is contained in:
@@ -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
@@ -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": {
|
||||||
|
|||||||
Reference in New Issue
Block a user