0.7.0 • Published 8 months ago

kris-kringle v0.7.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Kris Kringle

Christmas gift-giving made easy by randomising a draw and notifying players of their KK by SMS text message.

Table of Contents

Install

https://www.npmjs.com/package/kris-kringle
npm install kris-kringle

SMS notifications are sent using AWS SNS and requires an AWS profile to be configured.

Usage

kk <configJsonFile>

configJsonFile defaults to config.json.

Example

config-example.json
{
    "dryRun": true,
    "template": "Hey {name}! Your KK is {kk}. The spend is ${spend}. Merry Christmas! 🎅🏻🎄",
    "spend": 100,
    "players": [
        {
            "name": "foo",
            "number": "+6111111111"
        },
        {
            "name": "bar",
            "number": "+6122222222"
        },
        {
            "name": "baz",
            "number": "+6133333333"
        }
    ]
}

Text messages:

  • Hey foo! Your KK is baz. The spend is $100. Merry Christmas! 🎅🏻🎄
  • Hey bar! Your KK is foo. The spend is $100. Merry Christmas! 🎅🏻🎄
  • Hey baz! Your KK is bar. The spend is $100. Merry Christmas! 🎅🏻🎄

See src/default-config.json for other config options.

Architecture

Can't see the diagram? View it on GitHub
graph TD;
    effects-->io;
    commands-->effects;
    commands-->lib;
0.7.0

8 months ago

0.5.0

12 months ago

0.4.0

12 months ago

0.6.0

9 months ago

0.3.0

1 year ago

0.1.2

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago