项目作者: gobridge

项目描述 :
Slack bot for Gophers slack https://invite.slack.golangbridge.org
高级语言: Go
项目地址: git://github.com/gobridge/gopher.git
创建时间: 2016-07-06T11:46:52Z
项目社区:https://github.com/gobridge/gopher

开源协议:Apache License 2.0

下载


Gopher

GoDoc
Go Report Card

This is the deprecated Slack bot for the Gophers Slack. The new version can be
found here
.

You can get an invite from here

Running

To run this you need to set the the following environment variables:

  • GOPHERS_SLACK_BOT_TOKEN - the Slack bot token
  • GOPHERS_SLACK_BOT_NAME - the Slack bot name
  • GOPHERS_SLACK_BOT_DEV_MODE - boolean, set the bot in development mode

OLD Instructions

Note: Not sure any of the stuff below here works anymore.

Kubernetes

To get the bot running in Kubernetes you need to run the following commands:

  1. $ gcloud container clusters create gopher-slack-bot \
  2. --zone europe-west1-c \
  3. --additional-zones=europe-west1-d,europe-west1-b \
  4. --num-nodes=1 \
  5. --local-ssd-count=0 \
  6. --machine-type=f1-micro \
  7. --disk-size=10
  8. $ kubectl create namespace gopher-slack-bot
  9. $ cp secrets.yaml.template secrets.yaml
  10. $ echo `echo -n 'slackTokenHere' | base64` >> secrets.yaml
  11. $ kubectl create -f ./secrets.yaml --namespace=gopher-slack-bot
  12. $ cp secrets-datastore.yaml.template secrets-datastore.yaml
  13. $ echo `cat datastore.json | base64 -w 0` >> secrets-datastore.yaml
  14. $ kubectl create -f ./secrets-datastore.yaml --namespace=gopher-slack-bot
  15. $ kubectl create -f ./deployment.yaml --namespace=gopher-slack-bot

Development

To run gometalinter

  1. $ go get -v -u github.com/alecthomas/gometalinter
  2. ...
  3. $ gometalinter ./... --deadline=20s --vendor --sort=linter --disable=gotype
  4. ...

License

This software is created under Apache v2 License. For the full license text, please see License.md