All Projects → j0k3r → worldcup-slack-bot

j0k3r / worldcup-slack-bot

Licence: MIT license
WorldCupBot will notify a Slack channel/group for every match during a FIFA World Cup

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to worldcup-slack-bot

worldcup
Free open public domain football data for the World Cup (incl. Qatar 2022, Russia 2018, Brazil 2014, etc.) and World Cup Quali(fiers)
Stars: ✭ 530 (+1506.06%)
Mutual labels:  football, worldcup
worldcup.json
Free open public domain football data for the world cups in JSON incl. Russia 2018 and more - No API key required ;-)
Stars: ✭ 156 (+372.73%)
Mutual labels:  football, worldcup
enhanced-slack
🌴 PoC Slack enhancer/injector
Stars: ✭ 48 (+45.45%)
Mutual labels:  slack
rota-slackbot
Slackbot that helps manage rotations.
Stars: ✭ 50 (+51.52%)
Mutual labels:  slack
kwatchman
Watch for k8s resources changes and trigger chains of handlers
Stars: ✭ 24 (-27.27%)
Mutual labels:  slack
Yasuf
Very simple way of controlling your Python application via Slack
Stars: ✭ 23 (-30.3%)
Mutual labels:  slack
openwhisk-slackapp
A serverless Slack app built with Slack Events API and IBM Cloud Functions
Stars: ✭ 24 (-27.27%)
Mutual labels:  slack
slack-web-api
Simple, convenient, and configurable HTTP client for making requests to Slack’s Web API. Deno port of @slack/web-api
Stars: ✭ 16 (-51.52%)
Mutual labels:  slack
FPLbot
A bot made for /r/FantasyPL
Stars: ✭ 54 (+63.64%)
Mutual labels:  football
st2chatops
Packaging environment for building StackStorm chatops native packages
Stars: ✭ 26 (-21.21%)
Mutual labels:  slack
slatify
Slack Notification for GitHub Actions 🔔
Stars: ✭ 132 (+300%)
Mutual labels:  slack
league-page
Create a custom league page for your Sleeper fantasy football league!
Stars: ✭ 52 (+57.58%)
Mutual labels:  football
notify
推送通知 sdk(Bark、Chanify、钉钉群机器人、Discord、邮件、飞书群机器人、Gitter、Google Chat、iGot、Logger、Mattermost、Now Push、PushBack、Push、PushDeer、PushPlus、QQ 频道机器人、Rocket Chat、Server 酱、Showdoc Push、Slack、Telegram、Webhook、企业微信群机器人、息知、Zulip)。
Stars: ✭ 335 (+915.15%)
Mutual labels:  slack
fotmob
⚽ A wrapper around the unofficial FotMob API
Stars: ✭ 22 (-33.33%)
Mutual labels:  football
worldfootballR
A wrapper for extracting world football (soccer) data from FBref, Transfermark, Understat and fotmob
Stars: ✭ 188 (+469.7%)
Mutual labels:  football
slackteams
Manage and Interact with multiple Slack teams in R
Stars: ✭ 21 (-36.36%)
Mutual labels:  slack
slack-term
Slack client for your terminal
Stars: ✭ 6,074 (+18306.06%)
Mutual labels:  slack
emojibot
Emojibot is a Slack bot that announces new custom emoji to a specific channel.
Stars: ✭ 17 (-48.48%)
Mutual labels:  slack
slack-discord-bridge
Bridges a text channel between Slack and Discord
Stars: ✭ 21 (-36.36%)
Mutual labels:  slack
zoom-slack-status-updater
Update your Slack status automatically when you join a Zoom meeting.
Stars: ✭ 23 (-30.3%)
Mutual labels:  slack

Worldcup Slack Bot

WorldCupBot will notify a Slack channel/group for every matches during a FIFA World Cup.

The API haven't changed since the Russia World Cup 2018. Which means you can use that bot for every FIFA World Cup, you just need to update ID_COMPETITION & ID_SEASON.

Find the World Cup you are looking for

World Cup ID_COMPETITION ID_SEASON
2018 FIFA World Cup Russia™ 17 254645
FIFA U-20 World Cup Poland 2019 104 281971
FIFA Women's World Cup France 2019™ 103 278513

If the World Cup you are looking for isn't defined below, here is how you can find these numbers:

  • go the matches page on the FIFA website, for example https://www.fifa.com/womensworldcup/matches/
  • edit the source code of the page
  • check for these values:
    • _cfg.competition.idSeason
    • _cfg.competition.idCup

What it does

That bot is using the "unofficial" FIFA json API (the one used for their mobile apps).

It will post a message :

  • when a match starts
  • for every red/yellow card
  • for the half time and end time
  • and of course, for every goal

Preview

Here is a preview of the Colombia vs Japan match.

worldcup-slack-bot sample

Requirements

Installation

  • Clone this repo
  • Set up a cron to run every minute:
* * * * * cd /path/to/folder && php worldCupNotifier.php >> worldCupNotifier.log

Side notes

The code is ugly but it works.

Everything is posted in french, but feel free to fork and use your own language. FYI, FIFA API can provide text in en/fr/de/es/pt.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].