reactor

command module
v0.0.0-...-99162d3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Reactor CircleCI

A Slack bot that guesses crowd reactions to your messages.

Deploy

Usage

In Slack, @reactor responds to direct messages with a guess at what the most popular reaction to it will be. It guesses based on recent interactions in public channels.

A few special commands:

  • Typing help responds with some simple information about the bot.
  • Typing update rebuilds the classifier based on the latest messages.

Getting Started

To run this bot locally, retrieve the repository with:

go get github.com/kujenga/reactor

Optionally, if you have glide on your system you can install the pinned dependencies with glide install.

For information on how to get setup a Slack bot, check out the instructions for the Boston Golang Slack lab.

Once you have an API key, setup your shell with the following command, substituting in your token:

export SLACK_TOKEN="<my_slack_token>"

Then, you can run the bot with:

go run main.go

Special thanks to @doykle for the idea, and the jbrukh/bayesian library for making it easy to setup a bayesian classifier.

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
⌂ 换网址