Coder Social home page Coder Social logo

worldcup-for-slack's Introduction

Live-WorldCup-Notification-for-Slack

It's a NodeJS worker that request every 5 seconds data from the FIFA World Cup API and notifies via Slack API (It's possible to apply other ways of notification) the changes of the match.

====================================

  • It notifies when a match starts
  • It notifies when the score changes (this means Goal or the match finished)

It is posible to run it as a worker on Heroku :)

Configurations

Slack Web Hook

You need to add an Incoming WebHooks integration in Slack settings. Slack will provide a URL, it must be configured on heroku.

  • On Slack, go to Manage Slack
  • Add a Incomming Webhook App
  • Create configuration

Example:

SLACKHOOK=https://yourslackdomain.slack.com/services/hooks/incoming-webhook?token=SomeSecretToken

Language

The default language is English (en) but you can configure others, like Portuguese(pt) or Spanish(es). To configure simply set an environment variable in heroku named LANGUAGE.

Example:

LANGUAGE=pt

Channel

The default channel is #random but you can change that setting a CHANNEL environnment variable.

Example:

CHANNEL=general

Icon Image

You can change the default bot icon/avatar by setting a ICON_URL environment variable.

Example:

ICON_URL=http://worldcupzones.com/wp-content/uploads/2014/05/the-2014-fifa-world-cup-in46.jpg

Bot Name

You can change the default bot name by setting a BOTNAME environment variable.

Example:

BOTNAME=SportsBot5000

worldcup-for-slack's People

Contributors

oltodo avatar wulfy avatar

Watchers

 avatar  avatar  avatar

Forkers

wulfy

worldcup-for-slack's Issues

Types d'évènement

Cette issues permet de répertorier tous les évènements trouvés.

Buts :

  • 0 : But
  • 34 : But contre son camps
  • 39 : But sur coup-franc
  • 41 : But sur penalty

Occasions de tir:

  • 12 : Tir (cadré ou non)
  • 33: Tir sur le poteau
  • 44: Tir sur la barre transversale (uniquement sur coup-franc ?!)

Actions :

  • 17 : Sauvetage à la suite d'un tir
  • 60 : Penalty sauvé par le gardien
  • 65 : Penalty manqué
  • 46 : Penalty tiré sur la barre transversale
  • 16 : Corner tiré
  • 1 : Coup-franc tiré
  • 14 : Remise en jeu (à confirmer)

Sanctions :

  • 2 : Carton jaune
  • 4 : Second carton jaune (donc carton rouge)
  • 3 : Carton rouge direct

Timing :

  • 19 : Début du match
  • 7 : Début de période (prolongation et tirs au but inclus)
  • 8 : Fin de période (prolongation et tirs au but inclus)
  • 26 : Fin du match

Fautes :

  • 18 : Faute
  • 37 : Faute de main
  • 15 : Hors-jeu
  • 72 : Faute dans la surface de réparation (donc pénalty)

Autres :

  • 71 : Utilisation de la VAR

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.