From 5a9c01ab3179dc1103ce1df0e1de2bc3cf004698 Mon Sep 17 00:00:00 2001 From: Xevion Date: Sun, 17 Dec 2023 06:49:48 -0600 Subject: [PATCH] Pretty printing with spew --- go.mod | 1 + go.sum | 1 + main.go | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index bea840a..385b82c 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,7 @@ require ( github.com/andybalholm/cascadia v1.3.1 // indirect github.com/bwmarrin/discordgo v0.27.1 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect github.com/go-redis/redis v6.15.9+incompatible // indirect github.com/gorilla/websocket v1.4.2 // indirect diff --git a/go.sum b/go.sum index 5ba39ae..7ad5286 100644 --- a/go.sum +++ b/go.sum @@ -7,6 +7,7 @@ github.com/bwmarrin/discordgo v0.27.1/go.mod h1:NJZpH+1AfhIcyQsPeuBKsUtYrRnjkyu0 github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= diff --git a/main.go b/main.go index ebf39f5..462b27d 100644 --- a/main.go +++ b/main.go @@ -6,6 +6,7 @@ import ( "os/signal" "github.com/bwmarrin/discordgo" + "github.com/davecgh/go-spew/spew" "github.com/go-redis/redis" "github.com/joho/godotenv" log "github.com/sirupsen/logrus" @@ -81,7 +82,7 @@ func Bot() { panic(err) } data := interaction.ModalSubmitData() - log.Debugf("Submitted: %v", data) + spew.Dump(data) // if !strings.HasPrefix(data.CustomID, "modals_survey") { // return