Skip to content

Commit

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

fixed reference to rtm
  • Loading branch information
paulj-sbg authored Jul 7, 2022
2 parents 4243a60 + 2bc2102 commit 2e50e94
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ import (
"time"
"log"
"os"
"rtm"
"golang.org/x/net/context"

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

Expand Down Expand Up @@ -91,7 +89,7 @@ func (b *Bot) Run() {
fmt.Println("Infos:", ev.Info)
fmt.Println("Connection counter:", ev.ConnectionCount)
// Replace C2147483705 with your Channel ID
b.RTM.SendMessage(rtm.NewOutgoingMessage("Hello world", "C78S6FUUQ"))
b.RTM.SendMessage(b.RTM.NewOutgoingMessage("Hello world", "C78S6FUUQ"))
b.setBotID(ev.Info.User.ID)

case *slack.MessageEvent:
Expand Down

0 comments on commit 2e50e94

Please # to comment.