Elo ranking managed through the messaging software Slack.
https://YOUR_SLACK_TEAM.slack.com/servicesGive this webhook the channel you want zizou to listen to, and set the trigger word as
Zizou comes pre-packaged with a set of commands designed to help you store and retrieves 1v1 and 2v2 matches.
fifa addteam BAR XX XX XX. Obviously, replace BAR by the acronym of the team you want to add, and the XXs by respectively, the attack, midfield, and defense ratings of the team.
fifa match @slack_player_username TEAM score @slack_player_username TEAM score. Replace TEAM by the team acronym and score by the actual score the player had in the game. Example:
fifa match @bill_gates BAR 4 @bill_murray ASSE 5
The whole set of commands is the following:
fifa ranking [n_weeks] fifa ranking2 [n_weeks] fifa r [n_weeks] fifa r2 [n_weeks] fifa 2v2 player11 player12 team1 score1 player21 player22 team2 score2 fifa match player1 team1 score1 player2 team2 score2 fifa teams fifa addteam name attack midfield defense fifa challenge player [time] fifa challenges fifa stats player fifa undo fifa ribery
POST /bot: Currently the only route. It is the endpoint your Slack will be sending messages to.
In lib/slackbot.rb, you can add your own commands.
As you'll see when inspecting this file, every command is actually a method named
hear_COMMANDNAME. To add commands, simply add a new PRIVATE method named
The parameters will be displayed in the help and optional parameters will immediately be annotated as optional in the help as well.
There are a couple of improvements we have in mind. Feel free to send us pull requests if you want to contribute!