GithubHelp home page GithubHelp logo

scottmansfield / gopher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gobridge/gopher

0.0 2.0 0.0 865 KB

Slack bot for Gophers slack https://invite.slack.golangbridge.org

License: Apache License 2.0

Go 95.01% Shell 4.99%

gopher's Introduction

Gopher

CircleCI GoDoc Go Report Card

This is a Slack bot for the Gophers Slack.

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 (in development tempbot is used)
  • GOPHERS_SLACK_BOT_DEV_MODE - boolean, set the bot in development mode

Kubernetes

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

gcloud container clusters create gopher-slack-bot \
    --zone europe-west1-c \
    --additional-zones=europe-west1-d,europe-west1-b \
    --num-nodes=1 \
    --local-ssd-count=0 \
    --machine-type=f1-micro \
    --disk-size=10

kubectl create namespace gopher-slack-bot

cp secrets.yaml.template secrets.yaml
echo `echo -n 'slackTokenHere' | base64` >> secrets.yaml
kubectl create -f ./secrets.yaml --namespace=gopher-slack-bot

cp secrets-datastore.yaml.template secrets-datastore.yaml
echo `cat datastore.json | base64 -w 0` >> secrets-datastore.yaml
kubectl create -f ./secrets-datastore.yaml --namespace=gopher-slack-bot

kubectl create -f ./deployment.yaml --namespace=gopher-slack-bot

Development

To run gometalinter

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

License

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

gopher's People

Contributors

bketelsen avatar dlsniper avatar dominikh avatar leitzler avatar scottmansfield avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.