go-slack-fdj

command module
v0.0.0-...-b5c5f9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2019 License: MIT Imports: 1 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL