From 1e20ff9b459c619b5ec945259fe117e7bfdf5024 Mon Sep 17 00:00:00 2001 From: kageru Date: Wed, 6 Jun 2018 17:44:56 +0200 Subject: [PATCH] remove debug stuff. refactor done \o/ --- command.go | 2 -- main.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/command.go b/command.go index c55e769..7750e55 100644 --- a/command.go +++ b/command.go @@ -69,7 +69,6 @@ func evaluateMessage(s *discordgo.Session, m *discordgo.MessageCreate) { log.Printf(" %s", m.Content) return } - fmt.Println(m.Content) for i, command := range commands { content := m.Content if command.IgnoreCase { @@ -114,7 +113,6 @@ func executeCommand(session *discordgo.Session, message *discordgo.MessageCreate (!command.DMOnly || (getChannel(session.State, message.ChannelID).Type == discordgo.ChannelTypeDM))) { log.Printf("Executed command %s triggered by user %s", command.Trigger, userToString(message.Author)) - fmt.Printf("Executed command %s triggered by user %s", command.Trigger, userToString(message.Author)) if command.Cooldown > 0 { commands[commandIndex].IsOnCooldown = true go removeCooldown(commandIndex) diff --git a/main.go b/main.go index f255c0b..12423ad 100644 --- a/main.go +++ b/main.go @@ -69,7 +69,7 @@ func addCommands() { registerCommand(Command{Trigger: "<@%s> <3", Output: "<@%s> <3", Type: CommandTypeFullMatch, AdminOnly: true, OutputIsReply: true, RequiresMention: true}) // Debug - registerCommand(Command{Trigger: "echo", Type: CommandTypePrefix, Function: echoMessage}) + // registerCommand(Command{Trigger: "echo", Type: CommandTypePrefix, Function: echoMessage}) }