alveusgg / extension

Twitch extension for Alveus Sanctuary, allowing stream viewers to learn more about the ambassadors at the sanctuary.
https://www.twitch.tv/alveussanctuary
Other
64 stars 15 forks source link

Ensure consistent string case for channel name checks #169

Closed MattIPv4 closed 2 months ago

MattIPv4 commented 2 months ago

We have alveussanctuary in the default set of channel names, so when the extension is active in this channel it should not be watching the extra channel names including alveusgg. However, as seen in recent collaborations, commands run in alveusgg where controlling the extension in alveussanctuary.

After some investigation, the issue stems from the broadcaster_name for alveussanctuary actually being AlveusSanctuary. I've solved this in a few different places for some redundancy -- switching to broadcaster_login gives us back alveussanctuary instead, and then I've ensured we're normalizing all the values used for these name checks to always be lowercase.