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"
"io"
"io/ioutil"
"log"
"math/rand"
"mime/multipart"
"net/http"
"net/textproto"
"os"
//"regexp"
"strconv"
"strings"
"time"
@ -67,13 +65,6 @@ func main() {
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()
go rtm.ManageConnection()

Loading…
Cancel
Save