Skip to content
This repository has been archived by the owner on Sep 26, 2018. It is now read-only.

onFollow event [Request] #26

Open
FritzderWahre opened this issue Jan 19, 2018 · 12 comments
Open

onFollow event [Request] #26

FritzderWahre opened this issue Jan 19, 2018 · 12 comments
Assignees

Comments

@FritzderWahre
Copy link

Is it possible to create a onFollow event? Id like to see it in the next version,

@geisterfurz007
Copy link
Collaborator

I just skimmed over the Twitch IRC Docs and couldn't find a trigger for that unfortunately. I will see if following a channel emmits anything undocumented in chat and write an update in about 8-9 hours but based on the documentation I won't find much I am afraid.

@FritzderWahre
Copy link
Author

Sounds ok, thanks for help.

@geisterfurz007
Copy link
Collaborator

Yeah as expected there is nothing in the IRC stream showing a follow. There is however a feature in the new TwitchAPI that allows reacting to follows. This however is not in the scope of IRC anymore.
I could probably implement it though if @cavariux agrees :)

@lmariscal
Copy link
Owner

lmariscal commented Jan 20, 2018 via email

@FritzderWahre
Copy link
Author

Yeah ok, but saww some bots that send a message with "thanks for following" a while ago.

@geisterfurz007
Copy link
Collaborator

Yeah that is correct. The new twitch API has recently been released and supports this new feature for servers. Running such a server locally is possible and I am currently working on the code for it but it is not 100% sure it will work everywhere (my dorm has a strict network policy and certain ports blocked for example) so it is definitely easier to run this from a server but I am trying my best to get it to run locally :)

@FritzderWahre
Copy link
Author

Thanks!

@lmariscal
Copy link
Owner

lmariscal commented Jan 20, 2018 via email

@geisterfurz007
Copy link
Collaborator

I spent a few hours now trying to get this to work without success. The main issue is that Twitch's API requires a URL to send POST requests to whenever the event requested (in this case anyone following someone) occurs. Providing this URL is basically impossible when running local for me because I am either behind my dorms proxy, some unknown router of a VPN or on heroku where the code does not run properly because the implementation does not bind to a port but rather listens to it making heroku shut the process down after 90 seconds ignoring any incoming requests including the one twitch sends to verify the webhook subscription.
So unfortunately for now I have to put this down as I have no way to provide the API with a useable callback URL.
I am sorry.

@FritzderWahre
Copy link
Author

Ok i understand, thanks for your help.

@lmariscal
Copy link
Owner

Will look if we can add something related, but sadly it comes out of the scope of this lib as it does require some web tools.

@geisterfurz007
Copy link
Collaborator

Planning on implementing a polling algorithm for #30 as well so I am reopening this as reminder when starting on that in March.

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

No branches or pull requests

3 participants