GOSHIPIT

command module
v0.0.0-...-0d1ee21 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2015 License: MIT Imports: 8 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

GoShipIt

Application to easily post "ShipIt Squirrels" to Slack via slash commands. Written in Go.

Configuration

Create a slack.json file and place it in the same folder as the GoShipIt executable. The contents of this configuration file can be customized:

{
	"bot_username":"GoShipit",
	"webhook_url":"http://yourApiUrl.GetThisFromSlack/somekey"
}

Then configure GoShipIt in the Configure Integrations section of Slack.

Slash Command Integration

In Slack, go to Home > Integrations and add a slash command intigration for GoShipIt with the following settings:

Command: /goshipit

URL: http://{yourdomain}/slash

Method: POST

Incoming Webhook Integration

Add a new incoming webhook integration with the following settings:

Channel: #general

Take the value of the Webhook URL field and place that url in the webhook_url section of the slack.json file in GoShipIt's root directory.

Running GoShipit

Use this command to run GoShipIt:

$ ./goshipit {yourdomain.com} {yourport} {use https true/false}

Usage

  • /goshipit will randomly select any ShipIt squirrel and display it in Slack.

  • /goshipit categories will show what the available categories are and how many ShipIt squirrel images are in them.

  • /goshipit {categoryname} will randomly select a ShipIt squirrel image from the specified category.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址