slack-nil-bot

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 7 Imported by: 0

README

Slack Nil Bot

Build Status Go Report Card

Nil bot does nothing except keeping WebSocket connection with Slack.

How to run

Using Kubernetes and Helm

If you are running Kubernetes with Helm installed you can start nil-bot in this way:

helm repo add moikot https://moikot.github.io/helm-charts
helm install moikot/slack-nil-bot --name=nil-bot --set token=[bot user key]

Using Docker

On Raspberry Pi (arm) or Linux (amd64) or you can run it on Docker.

docker run -d --restart unless-stopped -e BOT_TOKEN=[bot user token] moikot/slack-nil-bot

Compile and run from code

If you've got Golang environment and Dep installed, you can build it from source and run.

git clone git@github.com:moikot/slack-nil-bot.git

cd slack-nil-bot

dep ensure -vendor-only

export export BOT_TOKEN=[token]; go run .

Prometheus

Nil Bot exposes Prometheus counters on 0.0.0.0:9153/metrics endpoint. If you have Prometheus and Grafana running in your Kubernetes cluster you can add nil_bot_connection_status gauge on a dashboard. The value of gauge is one when Nil Bot is connected to Slack, and zero otherwise.

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