zenbot is a Slack bot that enforces "zen periods" for users, during which they are reprimanded for using Slack. Currently, the only available action is giving negative karmabot karma points.
Syntax
./zen <duration e.g. 1h30m> [reason - optional]
Installation
Build from Source
- clone the repo:
git clone -b v1.0.1 https://github.com/kamaln7/zenbot.git
- run
go get
and then go build
inside cmd/zenbot
cd zenbot
go get
cd cmd/zenbot
go build
Download a Pre-built Release
- head to the repo's releases page and download the appropriate latest release's binary for your system
Usage
- add a Slack Bot integration:
https://team.slack.com/apps/A0F7YS25R-bots
. An avatar is available here.
- invite
zenbot
to any existing channels and all future channels (this is a limitation of Slack's bot API, unfortunately)
- run
zenbot
. the following options are supported:
option |
required? |
description |
default |
-token string |
yes |
slack RTM token |
|
-debug=bool |
no |
set debug mode |
false |
-timeout string |
no |
timeout between actions (karma downvotes) |
10s |
In addition, see the table below for the options related to the web UI.
example: ./zenbot -token xoxb-abcdefg
It is recommended to pass zenbot's logs through humanlog. humanlog will format and color the JSON output as nice easy-to-read text.
License
see ./LICENSE