Slack Plugin project to play with the Française Des Jeux
Loto.
You can build the project using the common go build command :
go build
The script uses the SLACK_HOOK_URL
environment variable to define the Slack web-hook.
export SLACK_HOOK_URL=https://hooks.slack.com/services/YOUR/API/TOKEN
Current API_VERSION V1
URL | DESCRIPTION | Note |
---|---|---|
/API_VERSION/lotoresult |
Get the last drawn results. | |
/API_VERSION/balls |
Get the current bet balls. | |
/API_VERSION/balance |
Get the current balance. | |
/API_VERSION/balance 42.42 |
Set the new balance to 42.42 | float after coma 2 numbers |
/API_VERSION/paytable |
Get the winnings table |
The balance calculation is based on the official documentation (2018) provided by FDJ.
You MUST define a balance management file balance.fdjSlack
next to your project executable.
It handles float64
with 2 numbers after coma. (eg: 66.66)
-
Every day at 22h15, the last drawn is published on the channel.
-
Every MONDAY, WEDNESDAY, SATURDAY at 22h the balance is adjusted based on the last dranw results.