Skip to content

Commit

Permalink
Fix missing exports for runners, enlist runners
Browse files Browse the repository at this point in the history
  • Loading branch information
BOLL7708 committed Apr 21, 2024
1 parent 3b9b89c commit 7ca8b3e
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/src/Server/Objects/Data/ActionAudioRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ArrayUtils from '../../../Shared/Utils/ArrayUtils.js'
import ModulesSingleton from '../../../Shared/Singletons/ModulesSingleton.js'
import ActionAudio from '../../../Shared/Objects/Data/Action/ActionAudio.js'

class ActionAudioRunner extends ActionAudio {
export default class ActionAudioRunner extends ActionAudio {
build(key: string): IActionCallback {
return {
description: 'Callback that triggers a sound and/or speech action',
Expand Down
2 changes: 1 addition & 1 deletion app/src/Server/Objects/Data/ActionChatRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {SettingTwitchTokens} from '../../../Shared/Objects/Data/Setting/SettingT
import TextHelper from '../../../Shared/Helpers/TextHelper.js'
import ActionChat from '../../../Shared/Objects/Data/Action/ActionChat.js'

class ActionChatRunner extends ActionChat {
export default class ActionChatRunner extends ActionChat {
build(key: string): IActionCallback {
return {
description: 'Callback that triggers a Twitch chat message action',
Expand Down
2 changes: 1 addition & 1 deletion app/src/Server/Objects/Data/ActionCustomRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Utils from '../../../Shared/Utils/Utils.js'
import ModulesSingleton from '../../../Shared/Singletons/ModulesSingleton.js'
import ActionCustom from '../../../Shared/Objects/Data/Action/ActionCustom.js'

class ActionCustomRunner extends ActionCustom {
export default class ActionCustomRunner extends ActionCustom {
build(key: string): IActionCallback {
return {
description: 'Callback that triggers arbitrary code',
Expand Down
2 changes: 1 addition & 1 deletion app/src/Server/Objects/Data/ActionDiscordRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import DataUtils from '../../../Shared/Objects/Data/DataUtils.js'
import TextHelper from '../../../Shared/Helpers/TextHelper.js'
import ActionDiscord from '../../../Shared/Objects/Data/Action/ActionDiscord.js'

class ActionDiscordRunner extends ActionDiscord {
export default class ActionDiscordRunner extends ActionDiscord {
build(key: string): IActionCallback {
return {
description: 'Callback that triggers a DiscordUtils message action',
Expand Down
2 changes: 1 addition & 1 deletion app/src/Server/Objects/Data/ActionPhilipsHuePlugRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ArrayUtils from '../../../Shared/Utils/ArrayUtils.js'
import DataUtils from '../../../Shared/Objects/Data/DataUtils.js'
import PhilipsHueHelper from '../../../Shared/Helpers/PhilipsHueHelper.js'

class ActionPhilipsHuePlugRunner extends ActionPhilipsHuePlug {
export default class ActionPhilipsHuePlugRunner extends ActionPhilipsHuePlug {
build(key: string): IActionCallback {
return {
description: 'Callback that triggers a Philips Hue plug action',
Expand Down
43 changes: 43 additions & 0 deletions app/src/Shared/Objects/Data/EnlistData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,25 @@ import PresetDiscordWebhook from './Preset/PresetDiscordWebhook.js'
import PresetOBSScene, {PresetOBSFilter, PresetOBSSource} from './Preset/PresetOBS.js'
import PresetPermissions from './Preset/PresetPermissions.js'
import PresetPhilipsHueBulbState, {PresetPhilipsHueBulb, PresetPhilipsHuePlug} from './Preset/PresetPhilipsHue.js'
import ActionInputRunner from '../../../Server/Objects/Data/ActionInputRunner.js'
import ActionLabelRunner from '../../../Server/Objects/Data/ActionLabelRunner.js'
import ActionURIRunner from '../../../Server/Objects/Data/ActionURIRunner.js'
import ActionMoveVRSpaceRunner from '../../../Server/Objects/Data/ActionMoveVRSpaceRunner.js'
import ActionOBSRunner from '../../../Server/Objects/Data/ActionOBSRunner.js'
import ActionPhilipsHueBulbRunner from '../../../Server/Objects/Data/ActionPhilipsHueBulbRunner.js'
import ActionPipeRunner from '../../../Server/Objects/Data/ActionPipeRunner.js'
import ActionRemoteCommandRunner from '../../../Server/Objects/Data/ActionRemoteCommandRunner.js'
import ActionScreenshotRunner from '../../../Server/Objects/Data/ActionScreenshotRunner.js'
import ActionSettingTTSRunner from '../../../Server/Objects/Data/ActionSettingTTSRunner.js'
import ActionSettingVRRunner from '../../../Server/Objects/Data/ActionSettingVRRunner.js'
import ActionSignRunner from '../../../Server/Objects/Data/ActionSignRunner.js'
import ActionSpeechRunner from '../../../Server/Objects/Data/ActionSpeechRunner.js'
import ActionSystemRunner from '../../../Server/Objects/Data/ActionSystemRunner.js'
import ActionAudioRunner from '../../../Server/Objects/Data/ActionAudioRunner.js'
import ActionChatRunner from '../../../Server/Objects/Data/ActionChatRunner.js'
import ActionCustomRunner from '../../../Server/Objects/Data/ActionCustomRunner.js'
import ActionDiscordRunner from '../../../Server/Objects/Data/ActionDiscordRunner.js'
import ActionPhilipsHuePlugRunner from '../../../Server/Objects/Data/ActionPhilipsHuePlugRunner.js'

/**
* TODO: Try to do this dynamically in EJS when we are in Node, scan the Objects source folder and auto-generate this file.
Expand All @@ -71,6 +90,7 @@ import PresetPhilipsHueBulbState, {PresetPhilipsHueBulb, PresetPhilipsHuePlug} f
export default class EnlistData {
static run() {
const objects: AbstractData[] = [
// region Actions
new ActionAudio(),
new ActionChat(),
new ActionCustom(),
Expand Down Expand Up @@ -99,6 +119,29 @@ export default class EnlistData {
new ActionSystemRewardStateForEvent(),
new ActionSystemUserEvent(),

// region Runners
new ActionAudioRunner(),
new ActionChatRunner(),
new ActionCustomRunner(),
new ActionDiscordRunner(),
new ActionInputRunner(),
new ActionLabelRunner(),
new ActionURIRunner(),
new ActionMoveVRSpaceRunner(),
new ActionOBSRunner(),
new ActionPhilipsHueBulbRunner(),
new ActionPhilipsHuePlugRunner(),
new ActionPipeRunner(),
new ActionRemoteCommandRunner(),
new ActionScreenshotRunner(),
new ActionSettingTTSRunner(),
new ActionSettingVRRunner(),
new ActionSignRunner(),
new ActionSpeechRunner(),
new ActionSystemRunner(),
// endregion
// endregion

new ConfigAnnounceCheer(),
new ConfigAnnounceRaid(),
new ConfigAnnounceSub(),
Expand Down

0 comments on commit 7ca8b3e

Please sign in to comment.