diff --git a/packages/storyteller/src/pages/tts_configs/TtsConfigsEditRulePage.tsx b/packages/storyteller/src/pages/tts_configs/TtsConfigsEditRulePage.tsx index c4ba15898e..e001683ec6 100644 --- a/packages/storyteller/src/pages/tts_configs/TtsConfigsEditRulePage.tsx +++ b/packages/storyteller/src/pages/tts_configs/TtsConfigsEditRulePage.tsx @@ -9,6 +9,7 @@ import { faAngleLeft, faSave } from '@fortawesome/free-solid-svg-icons'; import { EventMatchPredicate } from '@storyteller/components/src/api/storyteller/twitch_event_rules/shared/EventMatchPredicate'; import { EventResponse } from '@storyteller/components/src/api/storyteller/twitch_event_rules/shared/EventResponse'; import { TtsModelListItem } from '@storyteller/components/src/api/tts/ListTtsModels'; +import { CHEERS } from '../../twitch/Cheers'; interface Props { sessionWrapper: SessionWrapper, @@ -45,7 +46,7 @@ function TtsConfigsEditRulePage(props: Props) { const indexLink = '/tts_configs'; - const handleDeleteFormSubmit = async (ev: React.FormEvent) : Promise => { + const handleFormSubmit = async (ev: React.FormEvent) : Promise => { ev.preventDefault(); if (eventMatchPredicate === undefined || eventResponse === undefined) { @@ -93,7 +94,25 @@ function TtsConfigsEditRulePage(props: Props) {
-
+ + +
+ +
+
+ +
+
+
+ + + + + @@ -109,4 +128,30 @@ function TtsConfigsEditRulePage(props: Props) { ) } + +interface ExactCheersFormProps { +}; + +function ExactCheersForm(props: ExactCheersFormProps) { + const [cheerType, setCheerType] = useState(); + + return ( + <> +
+ +
+
+ +
+
+
+ + + ) +} + export { TtsConfigsEditRulePage } \ No newline at end of file diff --git a/packages/storyteller/src/twitch/Cheers.ts b/packages/storyteller/src/twitch/Cheers.ts new file mode 100644 index 0000000000..dadcc51d4d --- /dev/null +++ b/packages/storyteller/src/twitch/Cheers.ts @@ -0,0 +1,37 @@ + + +/// This list seems pretty comprehensive +/// https://github.com/nossebro/TwitchPubSubMirror/blob/master/TwitchPubSubMirror_StreamlabsSystem.py +export const CHEERS : string[] = [ + "Cheer", + "DoodleCheer", + "BibleThump", + "cheerwhal", + "Corgo", + "uni", + "ShowLove", + "Party", + "SeemsGood", + "Pride", + "Kappa", + "FrankerZ", + "HeyGuys", + "DansGame", + "EleGiggle", + "TriHard", + "Kreygasm", + "4Head", + "SwiftRage", + "NotLikeThis", + "FailFish", + "VoHiYo", + "PJSalt", + "MrDestructoid", + "bday", + "RIPCheer", + "Shamrock", + "BitBoss", + "Streamlabs", + "Muxy", + "HolidayCheer" +];