Shingen

Untitled

Jul 24th, 2018
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. pseudo code time
  2.  
  3. let's laugh at teh shingen's flimsy grasp on programming
  4.  
  5. -----
  6. streamlabs api or whatever tip platform needed - should work
  7. pubsub for cheers n subs
  8. loop an api call every x minutes for follow checky and wish that twitch could place follows into pubsub because IT'D MAKE THINGS A FUCKTON EASIER GAH
  9. -----
  10.  
  11. tip alert/cheer alert comes in
  12.  
  13. get amount
  14.  
  15. display alert, counting up amount
  16.  
  17. if (secret trigger) is amount,
  18. (special d alert) sequence, different sound file, wham
  19.  
  20. otherwise, complete counting up, change to "end of alert" sound file, wham
  21.  
  22. wham, end of alert
  23.  
  24.  
  25. sub train - this is probably not going to happen till I get my more robust alerts set up
  26.  
  27. timer - if any alert is playing within 10 seconds of the end, switch to overtime mode
  28. overtime mode: play through the rest of the alert queue - the queue will consist of ALL alert types, and can be added to.
  29.  
  30. if the stack completes, overtime ends after a 5 second delay.
Advertisement
Add Comment
Please, Sign In to add comment