bot

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (*common.Slack, error)

New returns a new instance of the Slack struct, primary for our slackbot

func Run added in v0.2.1

func Run(ctx context.Context, s *common.Slack) error

Run is the primary service to generate and kick off the slackbot listener This portion receives all incoming Real Time Messages notices from the workspace as registered by the API token

func SlackPostHandler added in v0.2.1

func SlackPostHandler(s *common.Slack) func(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

SlackPostHandler listen on /slack for answer from the questions asked in setup.go and dispatch to the good functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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