diff --git a/packages/storyteller/src/pages/tts_configs/TtsConfigsEditRulePage.tsx b/packages/storyteller/src/pages/tts_configs/TtsConfigsEditRulePage.tsx index e001683ec6..a396c3cee9 100644 --- a/packages/storyteller/src/pages/tts_configs/TtsConfigsEditRulePage.tsx +++ b/packages/storyteller/src/pages/tts_configs/TtsConfigsEditRulePage.tsx @@ -5,11 +5,11 @@ import { EditTwitchEventRule } from '@storyteller/components/src/api/storyteller import { TwitchEventRuleElement } from './TwitchEventRuleElement'; import { Link, useHistory, useParams } from 'react-router-dom'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { faAngleLeft, faSave } from '@fortawesome/free-solid-svg-icons'; +import { faAngleLeft, faGem, 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'; +import { CHEER_BIT_LEVELS, CHEER_PREFIXES } from '../../twitch/Cheers'; interface Props { sessionWrapper: SessionWrapper, @@ -83,23 +83,16 @@ function TtsConfigsEditRulePage(props: Props) {
- -
- -
-
+

Match on

+
- +
-
+
+ {CHEER_BIT_LEVELS.map(level => { + return ( + + ); + })} + +
+
+
+
+ + ); + } return ( <>
- -
-
- + + {CHEER_PREFIXES.map(cheerPrefix => { + 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 index dadcc51d4d..833a01efd6 100644 --- a/packages/storyteller/src/twitch/Cheers.ts +++ b/packages/storyteller/src/twitch/Cheers.ts @@ -2,7 +2,7 @@ /// This list seems pretty comprehensive /// https://github.com/nossebro/TwitchPubSubMirror/blob/master/TwitchPubSubMirror_StreamlabsSystem.py -export const CHEERS : string[] = [ +export const CHEER_PREFIXES : string[] = [ "Cheer", "DoodleCheer", "BibleThump", @@ -35,3 +35,6 @@ export const CHEERS : string[] = [ "Muxy", "HolidayCheer" ]; + +/// Levels of cheering +export const CHEER_BIT_LEVELS = [1, 100, 1000, 5000, 10000];