Browse Source

Update slack API to work with newest update

feature/slack_api_workaround
Matthew Faltys 5 years ago
parent
commit
f6d1f6d607
  1. 3
      Makefile
  2. 3
      lorebot/lorebot.go

3
Makefile

@ -6,10 +6,11 @@ IMAGE_NAME=smpldbot
all: lorebot all: lorebot
depends: depends:
go get github.com/nlopes/slack go get github.com/unixvoid/slack
go get github.com/unixvoid/glogger go get github.com/unixvoid/glogger
go get gopkg.in/gcfg.v1 go get gopkg.in/gcfg.v1
go get gopkg.in/redis.v5 go get gopkg.in/redis.v5
#go get github.com/nlopes/slack
lorebot: lorebot:
$(GOC) lorebot/lorebot.go $(GOC) lorebot/lorebot.go

3
lorebot/lorebot.go

@ -15,8 +15,9 @@ import (
"strings" "strings"
"time" "time"
"github.com/nlopes/slack" //"github.com/nlopes/slack"
"github.com/unixvoid/glogger" "github.com/unixvoid/glogger"
"github.com/unixvoid/slack"
"gopkg.in/gcfg.v1" "gopkg.in/gcfg.v1"
"gopkg.in/redis.v5" "gopkg.in/redis.v5"
) )

Loading…
Cancel
Save