LaMonF / FDJ_SLACK

Fetches FDJ loto data to post on SLACK
MIT License
2 stars 2 forks source link

Build Status Coverage Status

FDJ_SLACK

Slack Plugin project to play with the Française Des Jeux Loto.

BUILD

You can build the project using the common go build command :

go build

RUN

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

FEATURES

API

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
Balance Management

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)

Scheduled events