From 45f4bb49b95307fe6a5bbd3382c8acc653c1b7e3 Mon Sep 17 00:00:00 2001 From: Mitchell Date: Sun, 7 Oct 2018 22:15:35 -0500 Subject: [PATCH] added go dep - removed ffmpeg for saving audio clips --- Dockerfile | 5 +- makefile | 6 +- readme.md | 18 +-- server/Gopkg.lock | 289 +++++++++++++++++++++++++++++++++++ server/Gopkg.toml | 70 +++++++++ server/bothandlers/sounds.go | 46 +++++- 6 files changed, 415 insertions(+), 19 deletions(-) create mode 100644 server/Gopkg.lock create mode 100644 server/Gopkg.toml diff --git a/Dockerfile b/Dockerfile index 56da3f7..a7615a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,10 @@ COPY --from=0 /home/dist /go/src/github.com/mgerb/go-discord-bot/dist ADD ./server . RUN apk add --no-cache git alpine-sdk RUN go get -u github.com/gobuffalo/packr/... -RUN go get +RUN go get -u github.com/golang/dep/cmd/dep +RUN dep ensure +# need to manually get this dependency because go dep doesn't work well with the C bindings +RUN go get layeh.com/gopus RUN packr build -o /build/server diff --git a/makefile b/makefile index 0f3a524..eef313c 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,6 @@ -run: - go run ./main.go - install: - go get ./server && cd client && npm install + cd server && dep ensure + cd client && npm install build-server: cd ./server && packr build -o ../bot ./main.go diff --git a/readme.md b/readme.md index cbb9c06..d669e40 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # Discord Sound Bot -A soundboard bot for discord with a Go back end and React front end. +A soundboard bot for discord. Build with Go/React. ![Image](./screenshots/sound-bot.png) @@ -39,6 +39,7 @@ services: - `summon` - summons the bot to your current channel - `dismiss` - dismisses the bot from the server - `