Skip to content

Commit

Permalink
Merge pull request #21 from TheTrackerCouncil/poll-terminated-messages
Browse files Browse the repository at this point in the history
Added responses for a mod terminating a poll
  • Loading branch information
MattEqualsCoder authored Jul 24, 2024
2 parents ed69f0f + 01e52d4 commit b0ef94f
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 15 deletions.
3 changes: 3 additions & 0 deletions Profiles/BCU/responses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ Chat:
TrackerGuessFailed:
- Text: I might have lost, but you're still not getting my soul.
- Text: I guess I lost. I don't have a soul for you to steal though.
PollErrorTerminated:
- Text: Did you think I wouldn't catch on to what you've been doing with the content polls, s kennedy? I hope you know I'm recording this to my personal stat tracking sheet.
Weight: 50 # Remove after it comes up
UserNamePronunciation:
pinkkittyrose: Pink Kitty Rose
skennedysa: s kennedy
Expand Down
4 changes: 4 additions & 0 deletions Profiles/Default/responses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ Chat:
- Text: I have opened a poll for {0} seconds.
PollError:
- Text: Sorry, I was unable to get the poll results.
PollCompleteTerminated:
- Text: And the results are now in, but it seems like the poll was terminated before it finished.
PollErrorTerminated:
- Text: Unfortunately it looks looks like the poll was terminated before anyone could vote on it.
AutoTracker:
WhenConnected:
- Text: Auto tracker connected
Expand Down
8 changes: 8 additions & 0 deletions Profiles/Sassy/responses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,14 @@ Chat:
PollError:
- Text: Sorry, I was unable to get the poll results.
- Text: Whoops. I couldn't get the poll results.
PollCompleteTerminated:
- Text: And the results are now in. Hey wait. It looks like this poll was terminated early by someone. Anyway.
- Text: I'm looking at the results now. Huh. Did someone tamper with these results somehow? Well, I guess I don't care.
- Text: Hmm. It looks like the poll ended before it was supposed to. Was this Twitch crapping out, or is a mod to blame? Whatever.
PollErrorTerminated:
- Text: Wow. Someone sure was quick on the draw and managed to close the poll before anyone could vote on it.
- Text: I guess someone really doesn't want you to have content and closed the poll immediately. Bummer.
- Text: For whatever reason, the poll died before anyone could vote. Do we have a poll murdering mod perhaps?
AutoTracker:
WhenConnected:
- Text: Auto tracker connected.
Expand Down
16 changes: 9 additions & 7 deletions Profiles/Templates/responses.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# yaml-language-server: $schema=../../Schemas/responses.json

# Config file for various tracker responses to actions that happen

# Example:
# yaml-language-server: $schema=../../Schemas/responses.json

# Config file for various tracker responses to actions that happen

# Example:
# StartedTracking:
# - Text: Message tracker will state when tracking started
# - Text: Another message tracker will state when tracking started
Expand Down Expand Up @@ -35,8 +35,8 @@
# UserNamePronunciation:
# TwitchUserName: Corrected pronunciation
# AnotherTwitchUserName: Another corrected pronunciation
#

#

StartedTracking:
StartingTrackingAlternate:
StoppedTracking:
Expand Down Expand Up @@ -221,8 +221,10 @@ Chat:
AskChatAboutContentYes:
AskChatAboutContentNo:
PollComplete:
PollCompleteTerminated:
PollOpened:
PollError:
PollErrorTerminated:
AutoTracker:
WhenConnected:
WhenDisconnected:
Expand Down
31 changes: 23 additions & 8 deletions Schemas/responses.json
Original file line number Diff line number Diff line change
Expand Up @@ -2088,6 +2088,17 @@
}
]
},
"PollCompleteTerminated": {
"description": "Gets the phrases for when the poll has votes, but it was terminated before being finished",
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/SchrodingersString"
}
]
},
"PollOpened": {
"description": "Gets the phrases for when the poll is opened",
"oneOf": [
Expand All @@ -2109,6 +2120,17 @@
"$ref": "#/definitions/SchrodingersString"
}
]
},
"PollErrorTerminated": {
"description": "Gets the phrases for when the poll was terminated before any results came in",
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/SchrodingersString"
}
]
}
}
},
Expand Down Expand Up @@ -2454,14 +2476,7 @@
],
"description": "Responses based on what number the GT key was. Tracker will use the responses for the largest number less than the number of the GT key.",
"additionalProperties": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/SchrodingersString"
}
]
"$ref": "#/definitions/SchrodingersString"
}
},
"SwitchedToSMZ3Rom": {
Expand Down

0 comments on commit b0ef94f

Please sign in to comment.