Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every Follow = $0.10 to Charity Widget Counter #47

Open
AlphaxNu opened this issue Dec 6, 2023 · 4 comments
Open

Every Follow = $0.10 to Charity Widget Counter #47

AlphaxNu opened this issue Dec 6, 2023 · 4 comments

Comments

@AlphaxNu
Copy link

AlphaxNu commented Dec 6, 2023

Looking to make a widget to do just that, Every Follow = $0.10 to Charity Widget Counter.
Is that even possible?

Example:
Daily Widget: 15 Follows = $1.50
Total Monthly: 200 Follows = $20.00

@c4ldas
Copy link

c4ldas commented Dec 6, 2023

Yeah, that is possible. Do you want that to persist over streams or reset every stream?
You need to listen to onEventReceived and check if obj.detail.listener is follower-latest. If, so add $0.10 to the counter.

https://dev.streamelements.com/docs/widgets/6707a030af0b9-custom-widget-events

The downside is that if you refresh the overlay, the counter will reset, so maybe you want to make it persistent, in that case you can store it on SE_API.store()

https://dev.streamelements.com/docs/widgets/186263f447d1d-custom-widget#se-api

If you have any questions, just drop it and we can try to help you.

@AlphaxNu
Copy link
Author

AlphaxNu commented Dec 6, 2023

@c4ldas Thanks for the reply!

I want it to be persistent for the month of December and not reset

@c4ldas
Copy link

c4ldas commented Dec 8, 2023

@c4ldas Thanks for the reply!

I want it to be persistent for the month of December and not reset

I created it for you and added instructions in my repository:

https://github.com/c4ldas/streamelements-widgets/tree/main/charity-follower-counter

The widget will only show the value, but you can add another text widget with the text you want and put on the side of the value to meet your needs :)

In case you have any questions, just let me know.

@AlphaxNu
Copy link
Author

AlphaxNu commented Dec 9, 2023

@c4ldas thank you so much!
I'll give it a try and let you know how it goes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants