Skip to content

LaMonF/FDJ_SLACK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • 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.

About

Fetches FDJ loto data to post on SLACK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages