Firebot icon indicating copy to clipboard operation
Firebot copied to clipboard

Feat: Add Effect Queue Length variable

Open codehdn opened this issue 1 year ago • 0 comments

Description of the Change

I've added a new text variable "effectQueueLength" as a utility variable. This variable takes in a queue name

Applicable Issues

#2513

Testing

  • Setup a new effect queue call it "testing" make it whatever queue mode you like
  • disable the effect queue
  • Setup a command and call it !addtoqueue with an effect of Chat that says "hi"
  • In the !addtoqueue command set the queue to be "testing"
  • Setup a command and call it !queuelength with an effect of Chat that says "$effectQueueLength[testing]"
  • Setup one more command and call it !badqueue with an effect of Chat that says "$effectQueueLength[not-a-real-queue]"
  • Now head to the dashboard
  • send a message of "!addtoqueue" which will bring the queue count to 1
  • send a message of "!queuelength" it should return a queue length of 1
  • send a message of "!addtoqueue" 3 times the new queue length should be 4
  • send a message of "!queuelength" it should return a queue length of 4
  • head over to the effect queues page and enable and re disable your queue
  • head back to the dashboard
  • send a message of "!queuelength" it should return a queue length less than 4 (exact number will depend on queue type and how long the queue was enabled, anything below 4 is a passing condition)
  • send a message of "!badqueue" this queue does not exists and as such should return the text "Unknown"

Screenshots

Selecting the variable: Selecting the variable Primary use case: Primary use case Bad queue case: Bad queue case

codehdn avatar Apr 28 '24 23:04 codehdn