Example #1
0
func Gitter(config *config.Configuration) (*gitter.Stream, error) {
	auth, _ := config.String("gitter.auth")
	room, _ := config.String("gitter.room")

	return gitter.OpenStream(
		auth,
		room,
	)
}
Example #2
0
func Slack(config *config.Configuration) *api.Slack {
	slackApi, _ := config.String("slack.auth")
	slack := api.New(slackApi)

	return slack
}