Skip to content

aasmall/dicemagic

Repository files navigation

Dice Magic

Slack Bot for Rolling Complex Dice

Branch Build Status
master Build Status
vDev Build Status

Set up dev environment

requires:

export GOOGLE_APPLICATION_CREDENTIALS="[PATH TO SERVICE ACCOUNT JSON]"

Example Folder Structure

$GOPATH
├── bin
├── pkg
└── src
    └── github.com
        └── aasmall
            └── dicemagic

Example Build Script

wget -O ~/sdk-tar.gz \
https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-200.0.0-linux-x86_64.tar.gz
tar -xzf ~/sdk-tar.gz -C ~/
~/google-cloud-sdk/install.sh --quiet
. ~/google-cloud-sdk/path.bash.inc
gcloud components update --quiet
gcloud components install app-engine-go --quiet
cd $GOPATH/src/github.com/aasmall/dicemagic
go get -d -v -t ./... && go build -v ./...