-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Raid Sent Off Event * Changed name of incoming and outgoing raid Changed description of raid outgoing completed Changed icon for raids in activity manager Changed filter description for raid viewer count * Adjusting names to and icons of event. --------- Co-authored-by: Erik Bigler <[email protected]>
- Loading branch information
Showing
11 changed files
with
279 additions
and
65 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import raidViewerCount from './raid-viewer-count'; | ||
import raidTargetUserDisplayName from './raid-target-user-display-name'; | ||
import raidTargetUserId from './raid-target-user-id'; | ||
import raidTargetUsername from './raid-target-username'; | ||
|
||
export default [ | ||
raidViewerCount, | ||
raidTargetUserDisplayName, | ||
raidTargetUsername, | ||
raidTargetUserId | ||
]; |
22 changes: 22 additions & 0 deletions
22
src/backend/variables/builtin/twitch/raid/raid-target-user-display-name.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ReplaceVariable } from "../../../../../types/variables"; | ||
import { OutputDataType, VariableCategory } from "../../../../../shared/variable-constants"; | ||
import { EffectTrigger } from "../../../../../shared/effect-constants"; | ||
|
||
const triggers = {}; | ||
triggers[EffectTrigger.EVENT] = ["twitch:raid-sent-off"]; | ||
triggers[EffectTrigger.MANUAL] = true; | ||
|
||
const model : ReplaceVariable = { | ||
definition: { | ||
handle: "raidTargetUserDisplayName", | ||
description: "Gets the formatted display name for the raid target", | ||
triggers: triggers, | ||
categories: [VariableCategory.USER], | ||
possibleDataOutput: [OutputDataType.TEXT] | ||
}, | ||
evaluator: async (trigger) => { | ||
return trigger.metadata.eventData?.raidTargetUserDisplayName ?? ""; | ||
} | ||
}; | ||
|
||
export default model; |
22 changes: 22 additions & 0 deletions
22
src/backend/variables/builtin/twitch/raid/raid-target-user-id.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ReplaceVariable } from "../../../../../types/variables"; | ||
import { OutputDataType, VariableCategory } from "../../../../../shared/variable-constants"; | ||
import { EffectTrigger } from "../../../../../shared/effect-constants"; | ||
|
||
const triggers = {}; | ||
triggers[EffectTrigger.EVENT] = ["twitch:raid-sent-off"]; | ||
triggers[EffectTrigger.MANUAL] = true; | ||
|
||
const model : ReplaceVariable = { | ||
definition: { | ||
handle: "raidTargetUserId", | ||
description: "Gets the user ID for the raid target.", | ||
triggers: triggers, | ||
categories: [VariableCategory.USER], | ||
possibleDataOutput: [OutputDataType.TEXT] | ||
}, | ||
evaluator: async (trigger) => { | ||
return trigger.metadata.eventData?.raidTargetUserId ?? ""; | ||
} | ||
}; | ||
|
||
export default model; |
23 changes: 23 additions & 0 deletions
23
src/backend/variables/builtin/twitch/raid/raid-target-username.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ReplaceVariable, Trigger } from "../../../../../types/variables"; | ||
import { OutputDataType, VariableCategory } from "../../../../../shared/variable-constants"; | ||
|
||
import { EffectTrigger } from "../../../../../shared/effect-constants"; | ||
|
||
const triggers = {}; | ||
triggers[EffectTrigger.EVENT] = ["twitch:raid-sent-off"]; | ||
triggers[EffectTrigger.MANUAL] = true; | ||
|
||
const model : ReplaceVariable = { | ||
definition: { | ||
handle: "raidTargetUsername", | ||
description: "The associated user (if there is one) for the given trigger", | ||
triggers: triggers, | ||
categories: [VariableCategory.COMMON, VariableCategory.USER], | ||
possibleDataOutput: [OutputDataType.TEXT] | ||
}, | ||
evaluator: (trigger: Trigger) => { | ||
return trigger.metadata.eventData?.raidTargetUsername; | ||
} | ||
}; | ||
|
||
export default model; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters