Coder Social home page Coder Social logo

live-worldcup-notification-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.

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

live-worldcup-notification-for-slack's People

Contributors

cyborg572 avatar robertoschneiders avatar sbehrends avatar seanarnold avatar

Watchers

 avatar

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.