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

Add notification feature when scoring a goal #15

Open
derycktse opened this issue Mar 25, 2017 · 3 comments
Open

Add notification feature when scoring a goal #15

derycktse opened this issue Mar 25, 2017 · 3 comments

Comments

@derycktse
Copy link

Thought that it will be nice when a goal happen, the cli can push a terminal notification. Is it possible?

@manrajgrover
Copy link
Owner

@derycktse Yes, this is something that is possible. There are packages for it, for example node-notifier.

But where should we get the information from is the question. The event api is currently not documented. Maybe we would have to look into other free api alternatives or scrape it in the background.

@derycktse
Copy link
Author

There is an awful way with current api:
Maybe we can store the score. Next time when we got the new result, compare with previous one. If the score is change , there must be a goal.

@MCodez
Copy link

MCodez commented Jun 25, 2018

There is a Twitter Handle @GoalFlash. According to goal.com initiative: @GoalFlash will let you know when a team has scored within three seconds of the ball hitting the back of the net. Twitter API will do the rest of work. But, we need to take care of time of tweets and compare them so that we can confirm that the tweet read by API is latest. The tweet will contain all the information of the goal. We can try this.

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

No branches or pull requests

3 participants