From 7ef1cd60e50bd7abfaedfa157a432c3e645c50cd Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sat, 22 Apr 2023 17:20:57 +0700 Subject: [PATCH] feat: update clydeAI check --- src/structures/Guild.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/structures/Guild.js b/src/structures/Guild.js index 63cf9f4..da5ad84 100644 --- a/src/structures/Guild.js +++ b/src/structures/Guild.js @@ -590,15 +590,14 @@ class Guild extends AnonymousGuild { */ get clydeSupport() { // **BETA** - This feature is currently in beta and may be changed or removed at any time. - // Cannot be enabled on guilds with more than 100 members + if (this.features.includes('COMMUNITY')) return false; if ( - v3(`2023-03_clyde_ai:${this.id}`) % 10e3 > 100 || - this.memberCount > 100 || - this.features.includes('COMMUNITY') + (this.memberCount < 101 && v3(`2023-03_clyde_ai:${this.id}`) % 10e3 < 1200) || + (this.memberCount < 201 && v3(`2023-03_clyde_ai:${this.id}`) % 10e3 < 1000) ) { - return false; + return true; } - return true; + return false; } /**