An outgoing webhook slackbot written in go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

23 lines
401 B

package main
import (
"flag"
"log"
"github.com/brettlangdon/slackbot/plugins/sqwiggle"
"github.com/brettlangdon/slackbot/server"
)
var bind string
func main() {
flag.StringVar(&bind, "bind", "127.0.0.1:8000", "which address to bind to [defualt: 127.0.0.1:8000]")
flag.Parse()
s := server.NewServer()
s.AddPlugin(sqwiggle.NewSqwiggle())
s.SetListenAddress(bind)
log.Fatal(s.Start())
}