Firebot icon indicating copy to clipboard operation
Firebot copied to clipboard

[Feature Request] Add simulated vote results

Open CrowbarToolsRobot opened this issue 1 year ago • 2 comments

Description

When using "Simulate Event" to simulate a "Channel Poll Ending", I should be able to add poll result names and vote counts for testing $pollWinningChoiceName and $pollWinningChoiceVotes. Currently I can only add "Title" which also doesn't seem accessible via $vars.

Submitted By

spex.dev

Created via Discord.

CrowbarToolsRobot avatar Aug 23 '24 01:08 CrowbarToolsRobot

The $pollWinningChoiceName and $pollWinningChoiceVotes variables will gain simulated event data in an upcoming release.

It looks like we still have some work to do on getting the poll choices and the poll title exposed to variables, and I'll see what I can do about that this weekend.

phroggster avatar Aug 24 '24 16:08 phroggster

The PR ~~proposed~~ accepted adds variables for accessing the poll choices and the poll title. ~~However, the simulate event interface is incompatible with injecting an array of poll choices, but manually using "Test Effects" will include three simulated poll options. This does not solve the initial request (allow manually specifying polling data in a simulated event), but it would fix the remainder of secondary complaints listed here.~~

phroggster avatar Sep 03 '24 10:09 phroggster

Both of the issues brought up here should be resolved in the next release of Firebot. $pollTitle will allow access to the title of the poll inside of a polling event (Poll Started, Poll Update, Poll Ended), and CKY added support for simulating full-flavored polling event metadata in #2784. See https://github.com/crowbartools/Firebot/issues/2348#issuecomment-2427468232 for further information about the incoming $pollChoices variable.

phroggster avatar Oct 21 '24 19:10 phroggster