Remove debug logs from production

This commit is contained in:
toast 2023-10-20 23:43:25 +11:00
parent fb3e0da610
commit e53db2c345

View File

@ -109,7 +109,6 @@ func ListenForCommand(e *events.ApplicationCommandInteractionCreate) {
jsonData := jsonDataStruct{} jsonData := jsonDataStruct{}
jsonDataBytes, _ := json.Marshal(readData) jsonDataBytes, _ := json.Marshal(readData)
json.Unmarshal(jsonDataBytes, &jsonData) json.Unmarshal(jsonDataBytes, &jsonData)
fmt.Println(jsonData)
banRecordsCh, _ := e.SlashCommandInteractionData().OptChannel("ban-records") banRecordsCh, _ := e.SlashCommandInteractionData().OptChannel("ban-records")
googleSheetsURL, _ := e.SlashCommandInteractionData().OptString("google-sheets") googleSheetsURL, _ := e.SlashCommandInteractionData().OptString("google-sheets")
@ -171,7 +170,6 @@ func ListenForCommand(e *events.ApplicationCommandInteractionCreate) {
} }
} }
fmt.Printf("google-sheets: %v\n", googleSheetsURL)
if err := e.CreateMessage(discord.MessageCreate{ if err := e.CreateMessage(discord.MessageCreate{
Embeds: []discord.Embed{{Title: "Config saved!", Color: mainEmbedColor}}, Embeds: []discord.Embed{{Title: "Config saved!", Color: mainEmbedColor}},
}); err != nil { }); err != nil {