feat: re-enable community creation via COMMUNITY_CREATION_ENABLED env…#811
feat: re-enable community creation via COMMUNITY_CREATION_ENABLED env…#811Matobi98 wants to merge 1 commit into
Conversation
WalkthroughThis PR adds an opt-in feature flag for community creation. A new ChangesCommunity Creation Feature Flag
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
COMMUNITY_CREATION_ENABLEDenvironment variable (default:false) that controls whether the/communitycommand is registered at bot startup/communitycommand block inbot/modules/community/index.tswith a conditionalregistration guarded by the env var
COMMUNITY_CREATION_ENABLED=falseto.env-samplewith an explanatory commentBehavior
COMMUNITY_CREATION_ENABLED=false(default) —/communityis not registered; community creation is disabledCOMMUNITY_CREATION_ENABLED=true—/communityis registered and users can create communities through the existingwizard flow
The wizard scene itself (
COMMUNITY_WIZARD_SCENE_ID) is unchanged — it was already fully implemented.Test plan
COMMUNITY_CREATION_ENABLEDunset orfalse, confirm/communityreturns no response / unknown commandCOMMUNITY_CREATION_ENABLED=true, confirm/communityenters the community creation wizard correctlyEOF
Summary by CodeRabbit