cards-against-slack

command module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: ISC Imports: 13 Imported by: 0

README

Cards Against Slack (bot)

Based on a list of regular expressions, a slack bot will be triggered to read a random line from two files. One card will fill in the blank of the other. Pipe/mount any three text files to set the "questions", "answers", and "triggers" and a "legacy app" slack token to substitute your own deck of cards.

Build
export CARDS_NAME=cards-build
docker build -t $CARDS_NAME .
Debug
export CARDS_NAME=cards-debug
docker rm -f $(docker ps --all | grep $CARDS_NAME | awk '{print $1}') || true
docker run -it -e SLACK_TOKEN=$SLACK_TOKEN -v ${PWD}:/cards -w /cards --name $CARDS_NAME golang:alpine

apk update
apk add bash git vim

LICENSE

ISC.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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