More debug stuff

This commit is contained in:
da
2017-01-24 23:06:06 +01:00
parent acafed6b66
commit f4b8a5f308
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -11,7 +11,6 @@ import (
"os"
"os/signal"
"runtime"
"runtime/debug"
"strconv"
"strings"
"sync"
@@ -408,7 +407,6 @@ func handleBotControlMessages(s *discordgo.Session, m *discordgo.MessageCreate,
if len(parts) > 1 {
if scontains(parts[1], "status") {
displayBotStats(m.ChannelID)
debug.PrintStack()
}
}
}
+1
View File
@@ -7,6 +7,7 @@ import (
"fmt"
"html/template"
"net/http"
_ "net/http/pprof"
"os"
"github.com/bwmarrin/discordgo"