As a way to provide Alveus mods with control over the extension during collaborations, without needing them all added as REACT_APP_CHAT_COMMANDS_PRIVILEGED_USERS, always connect to the AlveusGG channel (perhaps REACT_APP_EXTRA_CHANNEL_NAMES) alongside whatever channel the extension is running it.
To avoid the extension on the main Alveus channel triggering when mods in AlveusGG are running commands for the collaboration, REACT_APP_EXTRA_CHANNEL_NAMES should only be used when the current channel is not in REACT_APP_DEFAULT_CHANNEL_NAMES.
I think the implementation should be something like:
As a way to provide Alveus mods with control over the extension during collaborations, without needing them all added as
REACT_APP_CHAT_COMMANDS_PRIVILEGED_USERS
, always connect to the AlveusGG channel (perhapsREACT_APP_EXTRA_CHANNEL_NAMES
) alongside whatever channel the extension is running it.To avoid the extension on the main Alveus channel triggering when mods in AlveusGG are running commands for the collaboration,
REACT_APP_EXTRA_CHANNEL_NAMES
should only be used when the current channel is not inREACT_APP_DEFAULT_CHANNEL_NAMES
.I think the implementation should be something like:
https://github.com/alveusgg/extension/blob/fc2b989f162d55d503e16474e21d3c58b9d41815/src/hooks/useChatCommand.ts#L53
⬇️