Swapped List to FrozenSet since they're only created on init, and should be faster to iterate.
Removed the hardcoded commands and instead retrieve them from the TextCommand sheet.
Stopped creating configCommandArray on each "valid" trigger of OnChatMessage, and replaced with commandArray which is populated once when the tweak is enabled.
Didn't really know if / which tweak attributes should be changed for an update, so I left those as is. For what it's worth, there's no functionality change.
List
toFrozenSet
since they're only created on init, and should be faster to iterate.TextCommand
sheet.configCommandArray
on each "valid" trigger ofOnChatMessage
, and replaced withcommandArray
which is populated once when the tweak is enabled.Didn't really know if / which tweak attributes should be changed for an update, so I left those as is. For what it's worth, there's no functionality change.