Skip to content

Commit

Permalink
Merge pull request BeepBoopHQ#5 from paulj-sbg/use_slack-go_instead_o…
Browse files Browse the repository at this point in the history
…f_nlopes

fixed all references to nlopes
  • Loading branch information
paulj-sbg authored Jul 7, 2022
2 parents 2e50e94 + 68873b8 commit 835f323
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## go-slackbot - Build Slackbots in Go

The go-slackbot project hopes to ease development of Slack bots by adding helpful
methods and a mux-router style interface to the github.com/nlopes/slack package.
methods and a mux-router style interface to the github.com/slack-go/slack package.

Incoming Slack RTM events are mapped to a handler in the following form:

Expand Down Expand Up @@ -30,7 +30,7 @@ In addition to several useful functions in the utils.go file, the slackbot.Bot s
bot.ReplyWithAttachments(evt, attachments, slackbot.WithTyping)
}

But wait, there's more! Well, until there's more, the slackbot package exposes github.com/nlopes/slack RTM and Client objects enabling a consumer to interact with the lower level package directly:
But wait, there's more! Well, until there's more, the slackbot package exposes github.com/slack-go/slack RTM and Client objects enabling a consumer to interact with the lower level package directly:

func HowAreYouHandler(ctx context.Context, bot *slackbot.Bot, evt *slack.MessageEvent) {
bot.RTM.NewOutgoingMessage("Hello", "#random")
Expand Down
4 changes: 2 additions & 2 deletions bot.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package slackbot hopes to ease development of Slack bots by adding helpful
// methods and a mux-router style interface to the github.com/nlopes/slack package.
// methods and a mux-router style interface to the github.com/slack-go/slack package.
//
// Incoming Slack RTM events are mapped to a handler in the following form:
// bot.Hear("(?i)how are you(.*)").MessageHandler(HowAreYouHandler)
Expand All @@ -25,7 +25,7 @@
// bot.ReplyWithAttachments(evt, attachments, slackbot.WithTyping)
// }
//
// The slackbot package exposes github.com/nlopes/slack RTM and Client objects
// The slackbot package exposes github.com/slack-go/slack RTM and Client objects
// enabling a consumer to interact with the lower level package directly:
// func HowAreYouHandler(ctx context.Context, bot *slackbot.Bot, evt *slack.MessageEvent) {
// bot.RTM.NewOutgoingMessage("Hello", "#random")
Expand Down
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package slackbot

import (
"github.com/nlopes/slack"
"github.com/slack-go/slack"
"golang.org/x/net/context"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/simple/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"golang.org/x/net/context"

slackbot "github.com/BeepBoopHQ/go-slackbot"
"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/wit/wit.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

slackbot "github.com/BeepBoopHQ/go-slackbot"
"github.com/chris-skud/go-wit"
"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package slackbot
import (
"golang.org/x/net/context"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

type MessageType string
Expand Down
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package slackbot
import (
"regexp"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
)

// StripDirectMention removes a leading mention (aka direct mention) from a message string
Expand Down
2 changes: 1 addition & 1 deletion utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package slackbot
import (
"testing"

"github.com/nlopes/slack"
"github.com/slack-go/slack"
"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit 835f323

Please sign in to comment.