Browse Source

Remove slack debug to reflect upstream slack API changes

develop
Matthew Faltys 6 years ago
parent
commit
128c9294a1
  1. 9
      lorebot/lorebot.go

9
lorebot/lorebot.go

@ -5,13 +5,11 @@ import (
"fmt" "fmt"
"io" "io"
"io/ioutil" "io/ioutil"
"log"
"math/rand" "math/rand"
"mime/multipart" "mime/multipart"
"net/http" "net/http"
"net/textproto" "net/textproto"
"os" "os"
//"regexp"
"strconv" "strconv"
"strings" "strings"
"time" "time"
@ -67,13 +65,6 @@ func main() {
api := slack.New(auth) api := slack.New(auth)
// enable slack debug if set
if config.Lorebot.SlackDebug {
logger := log.New(os.Stdout, "slack-bot: ", log.Lshortfile|log.LstdFlags)
slack.SetLogger(logger)
api.SetDebug(true)
}
rtm := api.NewRTM() rtm := api.NewRTM()
go rtm.ManageConnection() go rtm.ManageConnection()

Loading…
Cancel
Save