Skip to content
Serverless Twitter bot which tweets out goals from the 2018 FIFA World Cup
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE 🌍🏆⚽️🤖 Jun 18, 2018 GOOOOOOOOOOOAL Jun 18, 2018
package.json 🌍🏆⚽️🤖 Jun 18, 2018
serverless.yml fixing error handling on errors Jun 25, 2018

World Cup 2018 Goal Bot - 🌍🏆⚽️🤖

Serverless Twitter bot which tweets out goals from the 2018 FIFA World Cup.

Serverless application built using IBM Cloud Functions (Apache OpenWhisk).

Powers the WC2018 Goals Twitter account.

World Cup Goal Tweet


This project has two serverless functions goal_tracker and twitter.

goal_tracker is connected to an alarm trigger running every sixty seconds. It retrieves all goals for live matches using this API. If new goals are returned, it invokes the goal trigger with details.

twitter is connected to the goal trigger. It takes goal events and sends new tweets using the Twitter API.

Redis is used to cache goals previously seen by the goal_tracker function.


If you want to deploy this project you will need an instance of the Apache OpenWhisk platform, access to a Redis database and credentials for a Twitter application.


  • Install The Serverless Framework.

    npm install serverless
  • Clone Git repository.

    git clone
  • Install project dependencies.

    cd goalbot && npm install
  • Create authentication credential for Redis and Twitter in creds.json file.

      "redis": { 
        "host": "XXX",
        "port": "XXX",
        "password": "XXX"
      "twitter": {
        "consumer_key": "XXX",
        "consumer_secret": "XXX",
        "access_token_key": "XXX",
        "access_token_secret": "XXX"
  • Run the deploy command.

    serverless deploy
You can’t perform that action at this time.