You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
On my stream, I have a python script that I use to poll the openxbl api to find out what achievement I have recently unlocked, I then save the new achievement information in a text file - I have a macro set up which checks for any changes to this file, which then changes the visiblity of a scene item and hides it after a period of time.
It has been requested that a bot posts in chat what achievement has just been unlocked incase the prompt is missed.
Describe the solution you'd like
I am looking at adding a http action to the macro that will make the streamelements bot post the information from this file, the issue that I have is..
Describe alternatives you've considered
The only alternative that I can see here is, Instead of using the macro to read a file for changes and do all the actions, change it so that it checks for if the scene element's visibility has changed so that it can run through all the actions, and do the post request to streamelements via the python script.
The reasoning behind this is because I would like the notification to show on stream and the bot message to show at roughly about the same time but ideally would like one place to manage it all!
Now that I'm reading this back to myself aloud, the right way to probably do this is to make the python script update the scene item visibility and make the request to the streamelements api, leaving the macro to take care of hiding the element after the visibility change..
The text was updated successfully, but these errors were encountered:
The http action does support using variables in body text area.
So you could use a macro setup similar to this one to assign the file contents to a variable named "File content":
You can then reference the variable in a Http action using the syntax ${variable name here}.
So using the example from above something similar to this:
It requires a auth header
That I think is not yet possible at the moment and would have to be implemented.
I will add it to the todo list, but I am not sure yet when I will get around to it.
Is your feature request related to a problem? Please describe.
On my stream, I have a python script that I use to poll the openxbl api to find out what achievement I have recently unlocked, I then save the new achievement information in a text file - I have a macro set up which checks for any changes to this file, which then changes the visiblity of a scene item and hides it after a period of time.
It has been requested that a bot posts in chat what achievement has just been unlocked incase the prompt is missed.
Describe the solution you'd like
I am looking at adding a http action to the macro that will make the streamelements bot post the information from this file, the issue that I have is..
Describe alternatives you've considered
The only alternative that I can see here is, Instead of using the macro to read a file for changes and do all the actions, change it so that it checks for if the scene element's visibility has changed so that it can run through all the actions, and do the post request to streamelements via the python script.
The reasoning behind this is because I would like the notification to show on stream and the bot message to show at roughly about the same time but ideally would like one place to manage it all!
Now that I'm reading this back to myself aloud, the right way to probably do this is to make the python script update the scene item visibility and make the request to the streamelements api, leaving the macro to take care of hiding the element after the visibility change..
The text was updated successfully, but these errors were encountered: